

function switchStyle(){
  // return array of all DIV elements
  var divs = document.getElementsByTagName("table");
  // Iterate through all DIVs in array
  for(var i = 0; i < divs.length; i++){
    // If current DIV is using "textDefault" styling,
    // change it to use "textAlternate" styling
    if(divs[i].className == "textDefault")
      divs[i].className = "textAlternate";
    // If current DIV is using "textAlternate" styling,
    // change it back to use "textDefault" styling
    else if(divs[i].className == "textAlternate")
      divs[i].className = "textDefault";
  }
}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,2)=="__") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}
if (!pass) {
shortFieldName=tempobj.name.substring(2,40).valueOf();
alert("Bitte alle Felder ausfüllen !");
return false;
}
else
return true;
}



function FrontPage_Form1_Validator(theForm)
{

  if (theForm.Email.value == "")
  {
    alert("Geben Sie einen Wert in das Feld \"Email\" ein.");
    theForm.Email.focus();
    return (false);
  }
  return (true);
}



function FrontPage_Form1_Validator(theForm)
{

  if (theForm.out_Email.value == "")
  {
    alert("Geben Sie einen Wert in das Feld \"Email\" ein.");
    theForm.out_Email.focus();
    return (false);
  }

  if (theForm.Alter.selectedIndex < 0)
  {
    alert("Wählen Sie eine der \"Email\"-Optionen.");
    theForm.Alter.focus();
    return (false);
  }
  return (true);
}