function over(id)
{
	document.getElementById(id).src="../basic_pics/kreuz_te_o.gif";
}

function out(id)
{
	document.getElementById(id).src="../basic_pics/kreuz_te_n.gif";
}

function popup_team(x)
{
	x = x + ".php";
	window.open(x,"Team","toolbar=no,status=no,scrollbars=no,width=746,height=452").focus();
}

function popup_orte(y)
{
	y = y + ".php";
	window.open(y,"Orte","toolbar=no,status=no,scrollbars=no,width=746,height=450").focus();
}

function popup_training(z)
{
	z = z + ".php";
	window.open(z,"Training","toolbar=no,status=no,scrollbars=no,width=746,height=480").focus();
}

function popup_projektbeispiele(a)
{
	window.open(a,"projektbeispiele","toolbar=no,status=no,scrollbars=yes,width=746,height=500").focus();
}

function download_help()
{
	document.getElementById("download_help").style.display = "block";
}

function show_palette(id)
{
	if(window.palette_timeout)
	{
		clearTimeout(palette_timeout);
	}
	new_palette = document.getElementById(id);
	if (window.palette && new_palette != palette)
	{
		window.palette.style.display = "none";
	}
		palette = new_palette;
		palette.style.display = "block";
}

function hide_palette(id)
{
	palette_timeout = setTimeout("palette.style.display='none'",200);
}

function test()
{
	var mail = "";
	mail = document.getElementById("kontakt_form").email.value;

	if(document.getElementById("kontakt_form").name.value == "")
	{
		alert("Bitte tragen Sie Ihren Namen ein.");
		return;
	}
	if(document.getElementById("kontakt_form").firma.value == "")
	{
		alert("Bitte tragen Sie Ihre Firma ein.");
		return;
	}
	if (/^[\w]+([\.-][\w]+)*@[\w]+([\.-][\w]+)*\.[\w]+$/.test(mail) == false)
	{
		alert("Bitte überprüfen Sie Ihre E-Mail-Adresse.");
		return;
	}
	if(document.getElementById("kontakt_form").mitteilung.value == "")
	{
		alert("Bitte überprüfen Sie Ihre Mitteilung.");
		return;
	}
	document.getElementById("kontakt_form").submit();	
}

function test_e()
{
	var mail = "";
	mail = document.getElementById("kontakt_form").email.value;

	if(document.getElementById("kontakt_form").name.value == "")
	{
		alert("Please enter your name.");
		return;
	}
	if(document.getElementById("kontakt_form").firma.value == "")
	{
		alert("Please enter your company name.");
		return;
	}
	if (/^[\w]+([\.-][\w]+)*@[\w]+([\.-][\w]+)*\.[\w]+$/.test(mail) == false)
	{
		alert("Please confirm your e-mail address.");
		return;
	}
	if(document.getElementById("kontakt_form").mitteilung.value == "")
	{
		alert("Please enter your message.");
		return;
	}
	document.getElementById("kontakt_form").submit();	
}
