jetzt = new Date();

function d2r(wert)
{var wert = wert*Math.PI/180; return(wert);}

function r2d(wert)
{var wert = wert*180/Math.PI; return(wert);}


var day = new Object();
var mon = new Object();
datenow = new Date();
var y2000 = datenow.getFullYear();
day[0]="Sonntag"; day[1]="Montag"; day[2]="Dienstag"; day[3]="Mittwoch"; day[4]="Donnerstag"; day[5]="Freitag"; day[6]="Samstag"; day[7]="Sonntag"; day[8]="Montag"; day[9]="Dienstag"; day[10]="Mittwoch"; day[11]="Donnerstag"; day[12]="Freitag"; day[13]="Samstag"; day[14]="Sonntag"; day[15]="Montag"; day[16]="Dienstag"; day[17]="Mittwoch"; day[18]="Donnerstag"; day[19]="Freitag"; day[20]="Samstag"; mon[0]="Januar"; mon[1]="Februar"; mon[2]="März"; mon[3]="April"; mon[4]="Mai"; mon[5]="Juni"; mon[6]="Juli"; mon[7]="August"; mon[8]="September"; mon[9]="Oktober"; mon[10]="November"; mon[11]="Dezember";
jahr=datenow.getFullYear();


Rollpics = new Array();
Rollpics[0] = " ";
Rollpics[1] = "px/passbild_ss_01.jpg";
Rollpics[2] = "px/passbild_ss_02.jpg";
Rollpics[3] = "px/passbild_ss_03.jpg";
Rollpics[4] = "px/passbild_ss_04.jpg";
Rollpics[5] = "px/passbild_ss_05.jpg";
Rollpics[6] = "px/passbild_cs_01.jpg";
Rollpics[7] = "px/passbild_cs_02.jpg";
Rollpics[8] = "px/passbild_cs_03.jpg";
Rollpics[9] = "px/passbild_cs_04.jpg";
Rollpics[10] = "px/passbild_cs_05.jpg";
Rollpics[11] = "px/passbild_cs_06.jpg";

function SwitchPic(counter,imgName,PicNumber,HowLongBetweenPic){
//imgName : name of the Pic to switch in the page for example <img src="/img/product/a300_a310/anim/01.jpg" name="roll1">
//PicNumber : pic to start at
//HowLongBetweenPic : time between pics switching in secs
//Number of pics:
var NumberOfPictures=5;
if(counter < HowLongBetweenPic){
counter++;
document.images[imgName].src = Rollpics[PicNumber];
CallSwitchPic=window.setTimeout("SwitchPic("+counter+",'"+imgName+"','"+PicNumber+"','"+HowLongBetweenPic+"')",2000);
}
else{
//if its not the last picture goto the next picture
if(PicNumber < NumberOfPictures){
PicNumber++;
SwitchPic(0,imgName,PicNumber,HowLongBetweenPic);
}
//its the last picture go to the first one
else{
PicNumber=1;
SwitchPic(0,imgName,PicNumber,HowLongBetweenPic);}
}
}


function openFenster(theURL,winName,features)
{window.open(theURL,winName,features);}


function gaestebuch()
{
top.name = "gaestebuch";
var popupURL = "http://www.arcor.de/tp/home/gaestebuch/guest.php3?pagename=3503493";
var popup = window.open(popupURL,"Gaestebuch",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=643,height=580,left=50,top=50');
if( navigator.appName.substring(0,8) == "Netscape" )
{
 popup.location = popupURL;
 popup.opener = self;
}
}


function PktKomma(Text)
{
var Suche = ",";
var Ersetze = ".";
var Neutext = "";
var i = 0;
while(i < Text.length)
  {
   if(Text.substring(i,i + Suche.length) == Suche)
    {
     Neutext = Neutext + Ersetze;
     i = i + Suche.length - 1;
    }
   else
    Neutext = Neutext + Text.substring(i,i + 1);
   i++;
  }
 return Neutext;
}


function drucken() {
var wert = document.all["begincontent"].innerHTML;
self.name = wert;
self.location.href="drucken.html";
}