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("SVP Completer votre prenom !");
     document.Formular.Vorname.focus();
     return false;
    }

    if(document.Formular.Nachname.value == "")
    {
     alert("SVP Completer votre nom !");
     document.Formular.Nachname.focus();
     return false;
    }
   if(document.Formular.Strasse.value == "")
    {
     alert("SVP Indiquez votre rue !");
     document.Formular.Strasse.focus();
     return false;
    }
   if(document.Formular.PLZ.value == "")
    {
     alert("SVP Indiquez votre code postal !");
     document.Formular.PLZ.focus();
     return false;
    }
   if(document.Formular.Ort.value == "")
    {
     alert("SVP Indiquez votre ville !");
     document.Formular.Ort.focus();
     return false;
    }
    if(document.Formular.Telefon.value == "")
    {
     alert("SVP Indiquez votre numero de telephone !");
     document.Formular.Telefon.focus();
     return false;
    }
   if(document.Formular.email.value == "")
    {
     alert("SVP Ecrivez votre adresse electronique completement !");
     document.Formular.email.focus();
     return false;
    }
  if (matchArray==null) {
  alert("SVP Ecrivez votre adresse electronique completement !");
     document.Formular.email.focus();
  return false
  }
  var user=matchArray[1]
  var domain=matchArray[2]

  if (user.match(userPat)==null) {
    alert("Verifiez le libelle de l'utilisateur dans l'adresse electronique ! (martine@, bureau@)")
     document.Formular.email.focus();
    return false
  }

   var domainArray=domain.match(domainPat)
   if (domainArray==null) {
	alert("Verifiez le domaine dans l'adresse electronique ! (@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("Verifiez l'adresse de l'email ! (.fr, .com)")
     document.Formular.email.focus();
   return false
   }
   if (len<2) {
   alert("Verifiez l'adresse electronique !")
     document.Formular.email.focus();
   alert(errStr)
   return false
   }

       if(document.Formular.code.value == "")
    {
     alert("Please enter the text of the captcha!");
     document.Formular.code.focus();
     return false;
    }


   return true;
   }



