



// oeffnet Popup start popup 
function centerPopup(URL,w,h) {
	xpos = screen.availWidth/2 - 410;
	ypos = screen.availHeight/2 - 335;
	
	if (is_nav4 || is_nav4up)
		index = window.open(URL,'index','width='+w+',height='+h+',scrollbars=no,location=no,resizable=no,directories=no,status=0,menubar=0,toolbar=no');
	else
		index = window.open(URL,'index','width='+w+',height='+h+',scrollbars=no,location=no,resizable=no,directories=no,status=0,menubar=0,toolbar=no');
	
	index.moveTo(xpos, ypos);
}
/*function centerPopup(URL,w,h) {
	xpos = screen.availWidth/2 - 410;
	ypos = screen.availHeight/2 - 335;
	
	if (is_ie || is_nav5up)
		index = window.open(URL,'index','width='+w+',height='+h+',scrollbars=no,location=no,resizable=no,directories=no,status=0,menubar=0,toolbar=no');
	else
		index = window.open(URL,'index','width='+w+',height='+h+',scrollbars=no,location=no,resizable=no,directories=no,status=0,menubar=0,toolbar=no');
	
	index.moveTo(xpos, ypos);
}*/


// oeffnet Popup fuer netscape meldung & ...
function openPopup(URL,w,h) {
	popup = window.open(URL,'','width='+w+',height='+h+',scrollbars=no,location=no,resizable=no,directories=no,status=0,menubar=0,toolbar=no');
}


 //rechte maustaste deaktivieren
function disableRightMouse() {	
	if (is_ie || is_nav5up) document.oncontextmenu =  function () { return false; };
	
	if (is_nav4){
		document.captureEvents(Event.MOUSEDOWN);
  		document.onmousedown = function (evt) { if (evt.which == 3) return false;};
	}	
}

onload=disableRightMouse;

// pwd query 

function check_me(wert)
{
	if(wert==unescape("%43%68%69%6E%61%7a%61%2D%49%6E%66%6F"))
	{

		return true;
	}
	else{

		alert('Falsche Passworteingabe');
		document.frmpwd.pswd.select();
		document.frmpwd.pswd.focus();
		
	
		return false;
		}
}

// Functions for Layer Menu

function show(id) {
	if (document.layers) {
		document.layers[id].visibility = "show";
	}
	else if (document.all) {
		document.all[id].style.visibility = "visible";
	}
	else {
		document.getElementById(id).style.visibility = "visible";
	}
}

function hide(id) {
	if (document.layers) {
		document.layers[id].visibility = "hide";
	}
	else if (document.all) {
		document.all[id].style.visibility = "hidden";
	}
	else {
		document.getElementById(id).style.visibility = "hidden";
	}
}
