function TesteZeichen (Teststring, Buchstaben)
{
 var AlleZeichenOK=true;
  for (var i=0; i<Teststring.length; i++)
   if (Buchstaben.indexOf(Teststring.charAt(i)) == -1)
    AlleZeichenOK = false;
return AlleZeichenOK;
}
function TesteObEmail (Teststring) {
OK = true;
if ((Teststring.indexOf('@') == -1)
||(Teststring.indexOf('@') == 0)
||(Teststring.indexOf('@') == (Teststring.length-1))
||(Teststring.indexOf('.'), Teststring.indexOf('@') == -1)) OK = false;
return OK;
}
function CheckForm (myForm) {
var testmail = (myForm.email.value);
var check = true
if (myForm.email.value=='')
{
check = false;
alert ('Please Input your email-adress.');
}
else if (myForm.name.value=='')
{
check = false;
alert ('Please input your name.');
}
else if (!TesteObEmail(myForm.email.value))
{
check = false;
alert ('Please input a correct email-adress.');
}
else if (myForm.message.value=='')
{
check = false;
alert ('Please input vour question.');
}

if (check)
{
myForm.submit();
}
}


function CheckReset(myForm)
{
if (confirm('Delete your input?'))
myForm.reset();
}
function PutStatus(myText)
{
window.status = myText;
}
function ClearStatus()
{
window.status ='';
}
