var speed=2000;
function changeImages() {
	var ranBild;
	ranBild=Math.round(Math.random()*23);
	var txt;
	txt="document.b0.src='webgalerie/images/";
	txt+=ranBild+".jpg'";
	eval(txt);
	myVerzoegerung=setTimeout("changeImages()",speed);
	}
changeImages();

function test() {
	alert("Hallo!");
}

function init() {						// wenn am Ende aller Pruefungen check immer noch 0 ist, dann ist alles richtig
	check=0;
	checkField="";
	
	checkData();
	if(check!=0) setCursor();
	if(check==0) {
		document.TALOSKONTAKT.submit(); 			// schickt Daten
		alert("Ihre Nachricht wurde gesendet!");
		document.TALOSKONTAKT.NACHNAME.value="";
		document.TALOSKONTAKT.VORNAME.value="";
		document.TALOSKONTAKT.STRASSE.value="";
		document.TALOSKONTAKT.PLZ.value="";
		document.TALOSKONTAKT.ORT.value="";
		document.TALOSKONTAKT.LAND.value="";
		document.TALOSKONTAKT.EMAIL.value="";
		document.TALOSKONTAKT.KOMMENTAR.value="";
		}
	return false;
	}
	
function checkData() {
	var txt;
	// schaut, ob was in den Feldern drinsteht
	txt=document.TALOSKONTAKT.NACHNAME.value;	if(txt=="") { check=1; if(checkField=="") checkField="NACHNAME"; }
	txt=document.TALOSKONTAKT.VORNAME.value;	if(txt=="") { check=1; if(checkField=="") checkField="VORNAME"; }
	txt=document.TALOSKONTAKT.STRASSE.value;	if(txt=="") { check=1; if(checkField=="") checkField="STRASSE"; }
	txt=document.TALOSKONTAKT.PLZ.value;		if(txt=="") { check=1; if(checkField=="") checkField="PLZ"; }
	txt=document.TALOSKONTAKT.ORT.value;		if(txt=="") { check=1; if(checkField=="") checkField="ORT"; }
	txt=document.TALOSKONTAKT.LAND.value;		if(txt=="") { check=1; if(checkField=="") checkField="LAND"; }
	txt=document.TALOSKONTAKT.EMAIL.value;		if(txt=="") { check=1; if(checkField=="") checkField="EMAIL"; }
	}
	
// wenn ein Feld nicht ausgefuellt ist, soll er mit dem Cursor dort stehen bleiben und Meldung bringen:
function setCursor() {
	var text="document.TALOSKONTAKT."+checkField+".focus()";
	alert("Sie haben das Feld "+checkField+" nicht ausgefüllt!");
	eval(text);
	}
