// JavaScript Document
function chkFormular()

{	if (document.Formular.person.value.length<1)
   {alert("Bitte geben Sie Ihren Namen an");
    document.Formular.person.focus();
    return false;
   }

if (document.Formular.person.value.search(/[\§\$\!\"\%\&\=\?\+\.\;\:\*\^\\\(\)\[\]\{\}\|\~\'\#\<\>]/) != -1)

    {
     alert("Ihr Name enthält Sonderzeichen, bitte berichtigen Sie die Eingabe.");
     document.Formular.person.select();
     return false;
    }  

if (document.Formular.email.value.indexOf(' ') != -1)
    {
     alert('Ihre E-Mail-Adresse enthält Leerzeichen, bitte geben Sie eine gültige E-Mail-Adresse ein.');
     document.Formular.email.select();
     return false;
    }  

{	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(Formular.email.value)){
return (true)
}
alert("Ungültige E-Mail Addresse, bitte korrigieren Sie die Eingabe.");
document.Formular.email.select();
return (false)
}
  
 return true
}




var aktuell = 1;

function wechseln(caller){
  if (aktuell == 1) {
    caller.src = "../buttons/" +caller.name +"02.gif";
    aktuell = 2;
  } else {
    caller.src = "../buttons/" +caller.name +"01.gif";
    aktuell = 1;
  }
}

function doBlink() {
var blink = document.all.tags("BLINK")
for (var i=0; i < blink.length; i++)
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "" 
}

function startBlink() {
// Make sure it is IE4
if (document.all)
setInterval("doBlink()",1500)
}

    function fold(feld)
    { obj=document.getElementById(feld);
      if(obj.style.display!='inline') obj.style.display='inline'; else obj.style.display='none'
    }

function neuesfenster(caller,breite,hoehe) 
{ 
top.name = "main_window"; 
var popupURL = "pops/" + caller; 
var popup = window.open(popupURL,"neuesfenster",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width='+breite+',height='+hoehe); 
if( navigator.appName.substring(0,8) == "Netscape" ) 
{ 
popup.location = popupURL; 
popup.opener = self; 
} 
}

function ml(subject)
{ var x='mail';
location.href=x+'to:'+'jpfavier'+'@'+'chez-jeanpaul'+'.'+'com'+'?'+'subject='+subject;
 }


