function openNewWindow(bilder,w,h) {
newWindow = window.open(bilder,"","scrollbars=yes,resizable=no,menubar=no,width=" + w + ",height=" + h );
newWindow.focus();
}

function closeWindow() {
        top.close();
}


  var name1;
  function keine(Name)
  {
   name1=Name;
   setTimeout("window.status=name1;",0);
   return true;
  }
  
BroW = parseInt(navigator.appVersion)
if (BroW >= 4) {Vs = true} else {Vs = false}
if (Vs == true) {
  Wid = screen.availWidth - 30
  Hei = screen.availHeight + 50
  Left = Math.floor((Wid - 350) / 2) ; Top = Math.floor((Hei - 100) / 2)
  if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN)
  }
  document.onmousedown = noClick
}

function noClick (e) {
  flag = false
  if (document.layers) {which = e.which ; if (which == 3) {flag = true}
  } else {which = event.button ; if (which == 2) {flag = true}}
  if (flag) {
    alert('Zugriff verweigert! Copyright by w3x.de')
    return false
  }
}

function set_focus(){
document.Formular.von.focus();
}
function chkFormular(){
     if(document.Formular.von.value == "Vor- und Nachname"){
       alert("Bitte Füllen Sie das Feld \"Ihr Name\" aus!");
       document.Formular.von.focus();
       return false;
      }
     if(document.Formular.email.value == "Bitte geben Sie ihre wahre E-mail Adresse an!"){
       alert("Bitte Füllen Sie das Feld \"Ihr E-Mail Adresse\" aus!");
       document.Formular.email.focus();
       return false;
      }
     if(document.Formular.betreff.value == "Bitte einen Betreff angeben"){
       alert("Bitte Füllen Sie das Feld \"Betreff\" aus!");
       document.Formular.betreff.focus();
       return false;
      }
     if(document.Formular.nachricht.value == "Ihre Nachricht an Uns"){
       alert("Bitte Füllen Sie das Feld \"Hier bitte Ihre Nachricht an uns eingeben\" aus!");
       document.Formular.nachricht.focus();
       return false;
      }
     if(document.Formular.email.value.indexOf('@') == -1){
       alert("Bitt gültige E-Mail-Adresse eingeben!");
       document.Formular.email.focus();
       return false;
  }
return (true);
}

