

function Uhr() {
         var Uhr=new Date();
         var std=Uhr.getHours();
             if(std<10)
                {
                 std="0"+std;
                }
         var min=Uhr.getMinutes();
             if(min<10)
                {
                 min="0"+min;
                }
         var sek=Uhr.getSeconds();
             if(sek<10)
                {
                 sek="0"+sek;
                }
         window.document.Uhr.uhrzeit.value=std+":"+min+":"+sek;
}


function Datum() {
         var Datum=new Date();
         var wtag=Datum.getDay();
         var mtag=Datum.getDate();
             if(mtag<10)
                {
                 mtag="0"+mtag;
                }
         var monat=Datum.getMonth();
         var jahr=Datum.getFullYear();
         var wochentag=new Array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag",
                                 "Freitag", "Samstag");
         var Monat=new Array("Januar", "Februar", "März", "April", "Mai", "J5ni", "Juli",
                             "August", "September", "Oktober", "November", "Dezember");
         window.document.Uhr.datum.value=wochentag[wtag]+", "+"der "+mtag+". "+Monat[monat]+" "+jahr;

}


function Abg() {
 AbgFenster=
 window.open("agb.html", "Zweitfenster", "height=500, width=439, scrollbars");
 AbgFenster.focus();

}


function Rent() {
 RentFenster=
 window.open("rent.html", "Zweitfenster", "height=650, width=550, left=10, top=10, scrollbars");
 RentFenster.focus();

}



function Partner() {
 PartnerFenster=
 window.open("partner.html", "Zweitfenster", "height=500, width=439, scrollbars");
 PartnerFenster.focus();
}

function gesamt() {

 if(document.Formular.Name.value == "")  {
   alert("Bitte Ihren Namen eingeben!");
   document.Formular.Name.focus();
   return false;
  }
 if(document.Formular.Vorname.value == "") {
   alert("Bitte Ihren Vorname eingeben!");
   document.Formular.Vorname.focus();
   return false;
  }
 if(document.Formular.Mail.value == "") {
   alert("Bitte Ihre E-Mail-Adresse eingeben!");
   document.Formular.Mail.focus();
   return false;
  }
 if(document.Formular.Mail.value.indexOf('@') == -1) {
   alert("Keine gültige E-Mail-Adresse!");
   document.Formular.Mail.focus();
   return false;
  }
 if(document.Formular.Mail.value.indexOf('.') == -1) {
   alert("Keine gültige E-Mail-Adresse!");
   document.Formular.Mail.focus();
   return false;
  }
 if(document.Formular.Text.value == "") {
   alert("Leere Mails können nicht abgeschickt werden!");
   document.Formular.Text.focus();
   return false;
  }

 sendFenster =
 window.open("send.html", "Zweitfenster", "height=100, width=200");
 sendFenster.focus();
}


function Map() {
 MapFenster=
 window.open("map.html", "Zweitfenster", "height=670, width=810, left=10, top=10, scrollbars");
 MapFenster.focus();

}


function Mietbed() {
 MietFenster=
 window.open("mietbed.html", "Mietbedingungen", "height=500, width=439, left=10, top=10, scrollbars");
 MietFenster.focus();
}
function mail() {
 mailFenster =
 window.open("mail.html", "mail");
 mailFenster.focus();
}


function sended () {
 alert ("Vielen Dank für Ihre Mail");
 self.location.href="mail.html" ;


}




function MakeStatus() {
         Text=window.document.uebergabe.variable.value;
         TextLaenge =window.document.uebergabe.laenge.value;
}

 var Text="";
 var Geschwindigkeit = 75;
 var Breite = 150;
 var TextLaenge =""
 var Position = 1 - Breite;


function StatusLauftext()
{
Position++
var Textzustand = "";
if (Position == TextLaenge)
{
Position = 1 -Breite;
}
if (Position < 0)
{
for (var Zaehler = 1; Zaehler <= Math.abs(Position); Zaehler++)
{
Textzustand = Textzustand + " ";
}
Textzustand = Textzustand + Text.substring(0,Breite - Zaehler + 1);
}
else
{
Textzustand = Textzustand + Text.substring(Position,Breite + Position);
}
window.status = Textzustand;
setTimeout("StatusLauftext()",Geschwindigkeit);
}



function StatusAdmin() {
         alert(Text=window.document.uebergabe.variable.value);
}

function OpenNews() {
 NewsFenster =
 window.open("news.html", "news", "height=210, width=180, left=10, top=10");
 NewsFenster.focus();
}