	function vxPopup(file)
	{
		popupWin = window.open(file, "FAZ_Tarifrechner","width=400,height=400,toolbar=no,scrollbars=yes,resizable=yes,left=0,top=0");
		if (!document.all && window.focus) popupWin.focus();
	}

	
	function vxCheckPowerForm()
	{
		if(isNaN(document.getElementById('vxUsage').value) == true)
			{
				alert("Verbrauch muss eine Zahl sein!");
				document.getElementById('vxUsage').focus();
				return false;
			}

		if(document.getElementById('vxUsage').value < 10)
			{
				alert("Verbrauch in Kilowattstunden pro Jahr eingeben!");
				//document.getElementById('vxUsage').focus();
				return false;
			}

			
		if(document.getElementById('vxPostcode').value.length < 5)
			{
				alert("Bitte eine fünfstellige Postleitzahl eingeben");
				document.getElementById('vxPostcode').focus();
				return false;
			} 
			
		if(isNaN(document.getElementById('vxPostcode').value) == true)
			{
				alert("Bitte eine fünfstellige Postleitzahl eingeben");
				document.getElementById('vxPostcode').focus();
				return false;
			}
		
}
