function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Danke für Deinen Besuch!");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
function newWindow(thewindow) {
thiswindow = window.open(thewindow, "optionwindow", "width=500,height=600,scrollbars,resizable");
thiswindow.focus();
}
function validate(){
var digits="0123456789";
var temp;
for (var i=0;i<document.myForm.zipcode.value.length;i++){
temp=document.myForm.zipcode.value.substring(i,i+1);
if (digits.indexOf(temp)==-1){
alert("Bei der Suche nach PLZ muss eine fünfstellige Zahl eingegeben werden!");
return false;
	  }
   }
if ((document.myForm.zipcode.value == '')&&(document.myForm.zipcode.value.length != 5)){
   alert("Bei der Suche nach PLZ muss eine fünfstellige Zahl eingegeben werden!");
   return false;
}
   return true;
}
function openpopup(popurl){
var winpops=window.open(popurl,"spotlight","width=280,height=500,left = 252,top = 284")
}
function usernamecheck()
{
if (document.account.username.value == "" || 
document.account.username.value.length < 4 || document.account.username.value.length > 20)
	{
	document.account.username.focus();
	alert("Der Profilname sollte mindestens 4 und maximal 20 Zeichen haben");
	return false;
	}
if (document.account.password.value == "" || 
document.account.password.value.length < 5)
	{
	document.account.password.focus();
	alert("Das Passwort sollte mindestens 5 Zeichen haben!");
	return false;
	}
if (document.account.password.value != document.account.password2.value)
	{
	document.account.password.focus();
	alert("Your passwords do not match!");
	return false;
	}
if (!document.account.agree.checked) 
	{
  	alert("Bitte die Checkbox anklicken um bestätigen, daß unsere Bedingungen akzeptiert werden.");
	return false;
	} 

}

