function emailCheck (emailStr)

 {
  var emailPat=/^(.+)@(.+)$/
  var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
  var validChars="\[^\\s" + specialChars + "\]"
  var quotedUser="(\"[^\"]*\")"
  var atom=validChars + '+'
  var word="(" + atom + "|" + quotedUser + ")"
  var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
  var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
  var matchArray=emailStr.match(emailPat)

   if(document.Formular.Vorname.value == "")
    {
     alert("Please enter your first name!");
     document.Formular.Vorname.focus();
     return false;
    }
   if(document.Formular.Nachname.value == "")
    {
     alert("Please enter your name!");
     document.Formular.Nachname.focus();
     return false;
    }
   if(document.Formular.Strasse.value == "")
    {
     alert("Please enter your Street!");
     document.Formular.Strasse.focus();
     return false;
    }
   if(document.Formular.PLZ.value == "")
    {
     alert("Please enter your Post / Zip Code!");
     document.Formular.PLZ.focus();
     return false;
    }
   if(document.Formular.Ort.value == "")
    {
     alert("Please enter your city!");
     document.Formular.Ort.focus();
     return false;
    }


   if(document.Formular.email.value == "")
    {
     alert("Please enter YOUR CORRECT email address!");
     document.Formular.email.focus();
     return false;
    }
  if (matchArray==null) {
  alert("Please enter YOUR CORRECT email address!")
     document.Formular.email.focus();
  return false
  }
  var user=matchArray[1]
  var domain=matchArray[2]

  if (user.match(userPat)==null) {
    alert("Please check the username of the email address! (john@, office@)")
     document.Formular.email.focus();
    return false
  }

   var domainArray=domain.match(domainPat)
   if (domainArray==null) {
	alert("Please check your domain! (@microsoft.)")
     document.Formular.email.focus();
    return false
   }
   var atomPat=new RegExp(atom,"g")
   var domArr=domain.match(atomPat)
   var len=domArr.length
   if (domArr[domArr.length-1].length<2 ||
    domArr[domArr.length-1].length>4) {
   alert("Please check your address! (.net, .com)")
     document.Formular.email.focus();
   return false
   }
   if (len<2) {
   var errStr="Please check your address! (.net, .com)"
     document.Formular.email.focus();
   alert(errStr)
   return false
   }




   return true;
   }


