<!--

function OpenHelp2 (num)
{
	popupWin = window.open("http://partner.verivox.de/popup/help.a" + "s" + "p?Lang=0&item=" + num, "HelpWindow","width=400,height=400,toolbar=0,scrollbars=1,resizable=1,left=0,top=0");
	if (!document.all && window.focus) popupWin.focus();
}

function OpenHelp (num)
{
	popupWin = window.open("http://partner.verivox.de/popup/help.a" + "s" + "p?Lang=0&item=" + num, "HelpWindow","width=400,height=400,toolbar=0,scrollbars=1,resizable=1,left=0,top=0");
	if (!document.all && window.focus) popupWin.focus();
}

function OpenFAQ (num)
{
	popupWin = window.open("http://partner.verivox.de/power/faq/index.a" + "s" +"p", "HelpWindow","width=450,height=500,toolbar=0,scrollbars=1,resizable=1,left=0,top=0");
	if (!document.all && window.focus) popupWin.focus();
}

function OpenRegionInfo (num, file)
{
	popupWin = window.open (file + "?ID=" + num, "Zeitangaben","width=400,height=400,toolbar=0,scrollbars=1,resizable=1,left=0,top=0")
	if (!document.all && window.focus) popupWin.focus();
}

function updateWMTT(e) {
	var seitenHoehe
	if (self.pageYOffset) // all except Explorer
	{
	seitenHoehe = self.pageYOffset;
	}
	else if (document.documentElement && document.documentElement.scrollTop)
		// Explorer 6 Strict
	{
		seitenHoehe = document.documentElement.scrollTop;
	}
	else if (document.body) // all other Explorers
	{
		seitenHoehe = document.body.scrollTop;
	}

	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	if (document.all) {
		y= window.event.y + seitenHoehe;
	} else {
		y = e.pageY;
	}
	if (wmtt != null) {
		if (x > 420) {
			wmtt.style.left = (x - 370) + "px";
		} else {
			wmtt.style.left = (x + 20) + "px";
		}
		wmtt.style.top 	= (y + 1) + "px";
	}
}

function showWMTT(id) {
	wmtt = document.getElementById(id);
	wmtt.style.top 	= 0 + "px";
	wmtt.style.display = "block"; 
	if (id == "tt_options" && document.getElementById("flashad")) {
		document.getElementById("flashad").style.visibility = 'hidden'; /* hide flash ad (regio targeting) */
	}
}

function hideWMTT() {
	wmtt.style.display = "none"; 
	if (document.getElementById("flashad")) {
		document.getElementById("flashad").style.visibility = 'visible'; /* show flash again */
	}
}

wmtt = null;
document.onmousemove = updateWMTT;

function check()
{
	if(document.calc.plz.value.length != 5 || isNaN(document.calc.plz.value) == true)
		{
			alert("Bitte geben Sie Ihre f&uuml;nfstellige Postleitzahl (PLZ) ein.");
			document.calc.plz.focus();
			return false;
		} 
		
	if(document.calc.verbrauch.value < 1 || isNaN(document.calc.verbrauch.value) == true)
		{
			alert("Bitte geben Sie Ihren Jahresverbrauch in Kilowattstunden (kWh) ein.");
			document.calc.verbrauch.focus();
			return false;
		}
}

//  -->