var is_clicked = "init"
function change( obj, name, action ) {
	obj != is_clicked ? document.images[obj].src = "Bilder/navigation/" + name + "_" + action + ".gif"  : ""
}

function zenwin(mypage,myname,w,h,scroll) {
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+''
	win = window.open(mypage,myname,settings)
	if(win.window.focus){win.window.focus();}
}

function jumpCombo(x) {
 if(x == "nothing") {
 }
 else {
   parent.location.href = x;
 }
}

function checkform_contact () {

	// check nachname
	var abc = document.kontaktform.lastname.value;
	if (abc == ""){      
		alert("\nBitte tragen Sie Ihren Nachnamen ein.");
		document.kontaktform.lastname.focus();
		return false;      
	}
	
	// check vorname
	var abc = document.kontaktform.firstname.value;  
	if (abc == ""){
		alert("\nBitte tragen Sie Ihren Vornamen ein.");
		document.kontaktform.firstname.focus();
		return false;      
	}
		
	// check email   
	if (document.kontaktform.email.value == ""){
		alert("\nBitte tragen Sie Ihre email-Adresse ein.")
		document.kontaktform.email.focus();
		return false;
	}
	// Die Adresse muss die Zeichen '@' und '.' enthalten.   
	if (document.kontaktform.email.value.indexOf ('@',0) == -1 || document.kontaktform.email.value.indexOf ('.',0) == -1) {
		alert("\nDies ist keine korrekte eMail-Adresse!" + "\nBitte korregieren Sie Ihre Eingaben.")
		document.kontaktform.email.select();      
		document.kontaktform.email.focus();
		return false;
	} else {
		return true;
	}
	
}

function mailSuccess () {
	alert("Ihre Anfrage wurde erfolgreich versendet.\nWir setzen uns umgehend mit Ihnen in Verbindung.");
}
