function subme(){

//alert('hallo');
  mama=document.forms[0];
  var x = mama.mail.value;
  var filter =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  ook=true;
/*****************************************************************/
if (mama.email.value=="") {
    document.getElementById("mail").style.backgroundColor="#CC3333";
    ook=false;
  }
else if(!filter.test(x)){
    document.getElementById("mail").style.backgroundColor="#CC3333";
       ook=false;
  }
else{
   document.getElementById("mail").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/
if (mama.firstname.value=="") {
    document.getElementById("fname").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("fname").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/
if (mama.lastname.value=="") {
    document.getElementById("lname").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("lname").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/
if (mama.street.value=="") {
    document.getElementById("street").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("street").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/
if (mama.streetnr.value=="") {
    document.getElementById("streetnr").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("streetnr").style.backgroundColor="#f1f1ed";
  }
/*******************************************************************/
if (mama.zip.value=="" || isNaN(mama.zip.value)) {
    document.getElementById("zip").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("zip").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/
if (mama.city.value=="") {
    document.getElementById("city").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("city").style.backgroundColor="#f1f1ed";
  }
/***************************************************************/
if (mama.country.value=="") {
    document.getElementById("country").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("country").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/
if (mama.bday.value=="") {
    document.getElementById("bday").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("bday").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/
if (mama.bmonth.value=="") {
    document.getElementById("bmonth").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("bmonth").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/
if (mama.byear.value=="") {
    document.getElementById("byear").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("byear").style.backgroundColor="#f1f1ed";
  }
  
  
  
  /**************/
if(ook)
  {	  
   mama.submit();
  };

}

function ContSubme(){


  mama=document.forms[0];
  
  var x = mama.mail.value;
  var filter =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  ook=true;
  
/*****************************************************************/
if (mama.email.value=="") {
    document.getElementById("mail").style.backgroundColor="#CC3333";
    ook=false;
  }
else if(!filter.test(x)){
    document.getElementById("mail").style.backgroundColor="#CC3333";
       ook=false;
  }
else{
   document.getElementById("mail").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/
if (mama.firstname.value=="") {
    document.getElementById("fname").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("fname").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/
if (mama.lastname.value=="") {
    document.getElementById("lname").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("lname").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/
if (mama.subject.options.selectedIndex==0) {
    document.getElementById("subject").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("subject").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/ 
if (mama.message.value=="") {
    document.getElementById("message").style.backgroundColor="#CC3333";
    ook=false;
  }
else{
   document.getElementById("message").style.backgroundColor="#f1f1ed";
  }
/*****************************************************************/
/*****************************************************************/
if(ook)
  {	

   mama.submit();
	
  };
/*****************************************************************/
/*****************************************************************/
}