function openWin(site,frameName,width,height,resz,scrlb)
{  
    var y = (Math.round((screen.availHeight-height)/2))
    var x = (Math.round((screen.availWidth-width)/2))

showWin = open(site,frameName,"width="+width+",height="+height+",top="+y+",left="+x+",scrollbars="+scrlb+",status=0,resizable="+resz+",location=0,menubar=0,toolbar=0,fullscreen=0");
	
  showWin.focus();

}
 function anzeigen(das){
 if(document.getElementById(das).style.display=='none') 
 document.getElementById(das).style.display='block'; 
 else document.getElementById(das).style.display='none';}
 
function mail2Recipient(toUser, toDomain){
user = toUser;
domain = toDomain;
document.write('<a class=\"contNav\" href=\"mailto:' + user + '@' + domain + '\">');
document.write(user + '@' + domain + '</a><br>');
}


function checkMail()
{
  var checked=true;
  var pattern=/.*\@.*\..*/;
       
                    if (checked)
          {
            if (document.contact.name.value=="")
        {
                  document.contact.name.focus();
                  document.contact.name.select();
          alert ("Bitte füllen Sie das Pflichtfeld *Name* aus.");
          checked=false;
        }
          }
			 
       
		                      if (checked)
          {
            if ((pattern.test(document.contact.email.value))==false)
        {
                  document.contact.email.focus();
                  document.contact.email.select();
          alert ("Bitte geben Sie eine gültige E-Mail-Adresse ein.");
          checked=false;
        }
          }

      	             if (checked)
          {
            if (document.contact.nachricht.value=="")
        {
                  document.contact.nachricht.focus();
                  document.contact.nachricht.select();
          alert ("Bitte füllen Sie das Pflichtfeld *Nachricht* aus.");
          checked=false;
        }
          }
        
  return checked;
} //endFunctinCheck

