

function home(){
	window.location.href = "../Default.asp";	
}
	

function mover(name) {
	if (document.images) {
		document.images[name].src = '../images/' + name + 'x.gif';}}

function mout(name) {
	if (document.images) {
		document.images[name].src = '../images/' + name + '.gif';}}

if (document.images) {
	var pic = new preload('button_1', 'button_2', 'button_3', 'button_4', 'button_5', 'button_6', 'button_7', 'home')}              

function preload() {
	this.length = preload.arguments.length;
	for (var i = 0; i < this.length; i++) {
	this[i+1] = new Image();
	this[i+1].src = '../images/navigation/' + preload.arguments[i] + 'x.gif';}}

function checkIfEmpty(field){
	if (field.value == ""){
    	return (true);} 
	return (false);}
	
function checkEintrag(theForm){
	if (checkIfEmpty(theForm.Name) == true){
    	alert("Bitte füllen Sie das \"Name\" Feld aus.");
    	theForm.Name.focus();
    	return (false);}

	if (checkIfEmpty(theForm.EMail) == true){
    	alert("Bitte füllen Sie das \"E-Mail\" Feld aus.");
    	theForm.EMail.focus();
    	return (false);}

	if (checkIfEmpty(theForm.Kommentar) == true){
    	alert("Bitte füllen Sie das \"Kommentar\" Feld aus.");
    	theForm.Kommentar.focus();
    	return (false);}

	if (checkIfEmpty(theForm.checkNumber) == true){
	    	alert("Bitte geben Sie die Prüfungsnummer ein.");
    		theForm.checkNumber.focus();
	    	return (false);}

	return (true);}

function showDetail(bildname) {
       url="popup_galerie.asp?image=chor_popup.jpg";
       params="status=no,toolbar=no,resizable=no,scrollbars=no,width=600,height=400";
       structure=window.open(url,"",params);}

