var imglist = new Array
        (
                "./img/wir_an.jpg",
                "./img/objekte_an.jpg",
                "./img/immo_an.jpg",
                "./img/kontakt_an.jpg",
                "./img/impressum_an.jpg"

        );


preimages = new Array();

    if (document.images)
    {
      for (i=0; i<imglist.length; i++)
      {
        preimages[i]                = new Image();
                preimages[i].src        = imglist[i];
      }
    }


function rollover(name,status)
        {
                if (document.images)
                {
                        document.images[name].src = eval('"./img/"+name+"_"+status+".jpg"');
                }
        }

function doSubmit () {


        if (document.forms[0].anrede.value == "") {
         alert ("Bitte geben Sie die Anrede an.");
         return false;
         }

      if (document.forms[0].name.value == "") {
         alert ("Bitte geben Sie Ihren Namen an.");
         return false;
         }

        if (document.forms[0].ort.value == "") {
         alert ("Bitte geben Sie Ihren Ort an.");
         return false;
         }

        if (document.forms[0].telefon.value == "") {
         alert ("Bitte geben Sie Ihren Telefonnummer an.");
         return false;
         }

      return true;
}


function FensterZeigen(w_1,w_2,w_3,w_4) {
   bild = w_1;
   titel = w_2;
   breite = w_3;
   hoehe = w_4;
   if(navigator.appName == "Netscape") // Navigator stellt die Grafik nur mit Rand links und oben dar.
      {
      fensterhoehe = hoehe + 15;
      fensterbreite = breite + 15;
      }
   else
      {
      fensterhoehe = hoehe;
      fensterbreite = breite;
      }
   bedingungen = 'toolbar=0,location=0,menubar=0,scrollbars=0,resizable=0,height='+fensterhoehe+',width='+fensterbreite;
   fenster = open("","",bedingungen)
   fenster.document.open();
   with (fenster)
      {
      document.write('<html><head><title>' + titel + '</title></head>');
      document.write('<body onblur="window.close()" leftmargin="0" topmargin="0">');
      document.write('<img src="'+ bild +'" width="'+ breite +'" height="'+ hoehe +'" border="0" alt="'+ titel+'">');
      document.write('</body></html>');
      }
     fenster.document.close();
}



function schnellkontakt(x) {
   window.open(x,'Test','width=400,height=500,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1,top=10,left=10');
}
