﻿function checkForm()
{
	name=document.forms[0].Name.value;
	email=document.forms[0].Email.value;
	telefon=document.forms[0].Telefon.value;
	anfrage=document.forms[0].Anfrage.value;

	errortext="";
	if (name=="") errortext+="*) Name\n";
	if (email=="" && telefon=="") errortext+="*) E-Mail oder Telefon\n";
	if (anfrage=="") errortext+="*) Anfrage\n";
	
	if (errortext=="") return true;

	alert("Bitte füllen Sie folgende Felder aus:\n\n"+errortext);
	return false;

}


function startMotion()
{
setTimeout("fading(0)", 500);
}


function fading (transparency)
{
var opacityFx = new Fx.Style('contentarea', 'opacity').start(0,0.9);

/*
if (navigator.appName=="Microsoft Internet Explorer") document.all.contentarea.style.filter="alpha(opacity="+transparency+")";
else document.getElementById("contentarea").style.opacity=transparency/100;

if (transparency<=90) 
	{
	transparency+=10;
	setTimeout("fading("+transparency+")", 20);
	}
else fading (90);
*/
}

