var zHeight;
var zWidth;

function init(){
	setTimeout('preload()', 1500);
}
function select(option)
{
	var check = option.text;
	switch (check)
	{
	 case "ADHS":{
	 	location.href="projekte-adhs.php";
		break;
	 } 
	 case "Miniphänomenta":{
	 	location.href="projekte-miniphaenomenta.php";
		break;
	 } 
	  case "Haus der kleinen Forscher":{
	 	location.href="projekte-haus_der_kleinen_forscher.php";
		break;
	 }
	  case "Kinderchemielabor":{
	 	location.href="projekte-kinderchemielabor.php";
		break;
	 }
	  case "Haus der Sinne":{
	 	location.href="projekte-haus_der_sinne.php";
		break;
	 }   
	 
	}
}

function getVars(){
	zHeight = window.outerHeight;
	zWidth = window.outerWidth;
}

function preload(){
	var pl = document.getElementById('pl');
	pl.innerHTML = "<img src='images/home_1.gif' width='1px' height='1px' /><img src='images/stifter_1.gif' width='1px' height='1px' /><img src='images/uns_1.gif' width='1px' height='1px' />";
	pl.innerHTML += "<img src='images/projekte_1.gif' width='1px' height='1px' /><img src='images/helfen_1.gif' width='1px' height='1px' /><img src='images/fragen_1.gif' width='1px' height='1px' />";
	pl.innerHTML += "<img src='images/steuer_1.gif' width='1px' height='1px' /><img src='images/satzung_1.gif' width='1px' height='1px' /><img src='images/brief_1.gif' width='1px' height='1px' />";
}

function validateSend(objForm){
	if(objForm.betreff.value.length < 1){
		alert('Bitte füllen Sie das Feld "Betreff" aus!');
		return false;
	}
	if(objForm.absender.value.length < 1){
		alert('Bitte füllen Sie das Feld "Ihr Name" aus!');
		return false;
	}
	if(objForm.email.value.length < 1){
		alert('Bitte füllen Sie das Feld "Ihre Email" aus!');
		return false;
	}
	if(objForm.text.value.length < 1){
		alert('Bitte füllen Sie das Feld "Text" aus!');
		return false;
	}
	objForm.submit();
}
