function ShopFenster(datei)

{

var hoehe = screen.height-20;

var breite = screen.width-10;

SFenster = window.open(datei,"SFenster","width="+breite+",height="+hoehe+",toolbar=0,menubar=0,scrollbars=1,alwaysRaised=Yes,hotKeys=Yes,status=0,location=0,resizable=1,left=0,top=0,fullscreen=yes");

//xwert=screen.width-806;

//ywert=screen.height-500;

//window.SFenster.moveTo(-2,-5);

SFenster.focus();

}



function showdate()

{

        var jetzt = new Date();

        var Tag = jetzt.getDate();

        var Jahresmonat = jetzt.getMonth();

        var Jahr = jetzt.getYear();

        Jahr = "" + Jahr;

        var laenge=Jahr.length;

//      alert(Jahr.length);

        Jahr = Jahr.substr(laenge-2,laenge);

        Jahr = "20" + Jahr;

//      alert(Jahr);

        var Monat = new

        Array("01","02","03","04","05","06",

"07","08","09","10","11","12");

        var dateValue = ((Tag < 10) ? "0" : "") + Tag;

        dateValue += ("." + Monat[Jahresmonat]);

        dateValue += ("." + Jahr);



//      document.write(dateValue);

        document.forms["datum"].datumfeld.value=dateValue

        return dateValue;

}









// Planetcrazy Uhr----------------------



var timerID = null;



var timerRunning = false;



var Datumaktiv = false;



var Datum;







function stopclock ()



{



        if(timerRunning);



        clearTimeout(timerID);



        timerRunning = false;







}



//###################



function showtime ()



{







        var now = new Date();



        var hours = now.getHours();



        var minutes = now.getMinutes();



        var seconds = now.getSeconds();



        if(hours >24)



        hours = 0;



        timeValue = ((hours < 10) ? "0" : "");



        timeValue += (hours);



        timeValue += ((minutes < 10) ? ":0" : ":") + minutes;



        timeValue += ((seconds < 10) ? ":0" : ":") + seconds;



      //  document.uhr.zeitfeld.value=timeValue;



        document.forms["datum"].zeitfeld.value=timeValue;



        timeValue1 = "Uhrzeit: " + timeValue;











//        if(timeValue=="00:00:00")



//        {



        Datum=showdate();



        Datumaktiv = true;



//        }







        if(Datumaktiv == false)



        {



        Datum=showdate();



        Datumaktiv = true;



        }







        window.status = timeValue1 + "     <---  Herzlich willkommen auf Neuhaus-Elbe.de  --->      " + "Datum: " + Datum;



        timerID = setTimeout("showtime()",1000);



        timerRunning = true;



}







function startclock ()



{







        stopclock();







        showtime();



}











//###################



function BildFenster(Datei)
{
BFenster = window.open("","BildFenster","width="+screen.width+",height="+screen.height+",toolbar=0,menubar=0,scrollbars=1,alwaysRaised=Yes,hotKeys=Yes,status=0,location=0,resizable=1,left=0,top=0,fullscreen=yes");
//xwert=screen.width-650;
//ywert=screen.height-530;
//window.BFenster.moveTo(0,ywert-5);
BFenster.focus();

window.BFenster.document.write("<div align=\"center\"><br>Es kann ein paar Sekunden dauern bis sich das Bild aufbaut.<br><br><a href=\"Javascript:self.close();\" title=\"Hier klicken um das Fenster zu schliessen !\"><img src=\""+Datei+"\"  border=\"2\"  alt=\"Hier klicken um das Fenster zu schliessen !\" style=\"border-width:5px;border-style:ridge;border-color:#0060FF;background-color:#C8E0F2;font-weight:600;padding:5px;\"></a><br><br>Auf das Bild klicken um das Fenster zu schliessen !<br><a href=\"http://www.profi-internetseiten.de\" target=\"_blank\">Copyright &copy; 2002 by www.Profi-Internetseiten.de</a><br><\/div>");

}



//###################





function WebFenster(Datei)



{

WebFenster = window.open(Datei,"WebFenster","width=800,height=520,toolbar=1,menubar=1,scrollbars=1,alwaysRaised=Yes,hotKeys=Yes,status=1,location=1,resizable=1,left=0,top=0,fullscreen=no");



xwert=screen.width-680;

ywert=screen.height-500;

window.WebFenster.moveTo(xwert/2,ywert/2);

WebFenster.focus();



}



//###################



function MeldungsFenster(Datei)

{

MFenster = window.open(Datei,"Meldungsfenster","width=600,height=570"+",toolbar=0,menubar=0,scrollbars=1,alwaysRaised=Yes,hotKeys=Yes,status=0,location=0,resizable=1,left=0,top=0,fullscreen=no");

xwert=screen.width-600;

MFenster.moveTo(xwert/2,-2);

MFenster.focus();

}



//###################







function Maximieren(Datei)



{



// haltbarkeit: (Tag * Stunden * minuten * sekunden * Millisekunden)



        var haltbarkeit = 1 * 24 * 60 * 60 * 1000;



        var verfallzeitpunkt = new Date();



        verfallzeitpunkt.setTime(verfallzeitpunkt.getTime() + haltbarkeit)



        Moduswert=2;



        setCookie("Modus", Moduswert, verfallzeitpunkt)







//---------------------------------



  if (document.all)



  {



    var hoehe = screen.availHeight - 25;



    var breite = screen.availWidth - 9;



    neu = window.open(Datei,'vollbild','width='+breite+',height='+hoehe+',toolbar=0,menubar=0,scrollbars=1,alwaysRaised=Yes,hotKeys=Yes,status=0,location=0,resizable=0,left=0,top=0,fullscreen=no');



  }



  else



   neu = window.open(Datei,'vollbild','toolbar=0,menubar=0,scrollbars=1,status=0,location=0,resizable=0');







}







function standardmodus()



{



// haltbarkeit: (Tag * Stunden * minuten * sekunden * Millisekunden)



        var haltbarkeit = 1 * 24 * 60 * 60 * 1000;



        var verfallzeitpunkt = new Date();



        verfallzeitpunkt.setTime(verfallzeitpunkt.getTime() + haltbarkeit)



        Moduswert=1;



        setCookie("Modus", Moduswert, verfallzeitpunkt)



//---------------------------------



top.setTimeout('window.close()',200)



}







function wechselbildmodus()



{







   if (top.name=='startfenster')



   {



        if (navigator.appName=="Netscape")



        Maximieren('index1_netscape.html')



        else



        Maximieren('index1.html')



   }



   else



   {



        if (top.name=='vollbild')



        {



        standardmodus();



        }



   }



}



//###################







function startclock ()



{



        stopclock();



        showtime();



}



//###################







function exit()



{



if (top.name=='startfenster')



   {



   top.location.href="planetcrazyexit.html";



   }



   else



   {



   top.setTimeout('window.close()',200);



   }



}



//###################







function suchen()



{



         var suchbegriff=document.forms["suche"].suchfeld.value;







         switch(suchbegriff)



         {



         case 'basketball':



         parent.frames[1].location.href = "basketball_frameset1.html";



         break;



         case 'musik':



         parent.frames[1].location.href = "musik.html";



         break;



         case 'mp3':



         parent.frames[1].location.href = "download.html";



         break;



         case 'download':



         parent.frames[1].location.href = "download.html";



         break;



         case 'kontakt':



         parent.frames[1].location.href = "kontakt.html";



         break;



         case 'neuhaus':



         parent.frames[1].location.href = "neuhaus.html";



         break;



         case 'tv-neuhaus':



         parent.frames[1].location.href = "basketball_frameset1.html";



         case 'sport':



         parent.frames[1].location.href = "basketball_frameset1.html";



         break;



         case 'tv-1860 neuhaus':



         parent.frames[1].location.href = "basketball_frameset1.html";



         break;



         case 'kino':



         parent.frames[1].location.href = "kino.html";



         break;



         case 'radio':



         parent.frames[1].location.href = "radio.html";



         break;



         case 'hilfe':



         parent.frames[1].location.href = "help.html";



         break;



         case 'e-mail adresse':



         parent.frames[1].location.href = "e-mail_kontaktformular.html";



         break;



         case 'kinoprogramm':



         parent.frames[1].location.href = "kino.html";



         break;



         case 'amt-neuhaus':



         parent.frames[1].location.href = "neuhaus.html";



         break;



         case 'amt neuhaus':



         parent.frames[1].location.href = "neuhaus.html";



         break;



         case 'games':



         parent.frames[1].location.href = "games.html";



         break;



         case 'spiele':



         parent.frames[1].location.href = "games.html";



         break;



         case 'chat':



         parent.frames[1].location.href = "chat_start.html";



         break;



         case 'sms':



         parent.frames[1].location.href = "http://www.sms-kostenlos.de/";



         break;



         case 'gästebuch':



         parent.frames[1].location.href = "http://guestbook.topsubmit.de/contents.php?id=2638";



         break;



         case 'forum':



         parent.frames[1].location.href = "forum/index.html";



         break;



         case 'newsletter':



         parent.frames[1].location.href = "http://www.interweb.ch/cgi/emailinglist.exe?ShowListEntries&ListNo=6926019391";



         break;



         case 'help':



         parent.frames[1].location.href = "help.html";



         break;



         case 'telefonnummern':



         parent.frames[1].location.href = "kontakt.html";



         break;



         case 'kontaktadressen':



         parent.frames[1].location.href = "kontakt.html";



         break;



         case 'Schnellsuche':



         alert("Bitte erst deinen Suchbegriff in Kleinbuchstaben eingeben !\n\nHier noch ein Tip:\nMit einem Doppelklick ins Eingabefeld wird alles markiert.         :-)");



         break;







         default:



         alert("Suchbegriff nicht vorhanden !\n\nAchtung nur Kleinbuchstaben verwenden !\n---------------------------------------------------------------------------------------\n\nUm unsere Suche weiter auf Eure Bedürfnisse\nabzustimmen brauchen wir Euch.\n\nWonach sucht ihr?\n\nEinfach ins Kontaktfeld auf der Startseite eingeben,\nStichwort \"Suchbegriff\" und absenden.\n---------------------------------------------------------------------------------------\n\nDas Planetcrazy-Team, dankt Euch für Eure Unterstützung!");



         break;



         }



}











function suchhilfe()



{



alert("Suchbegriff in das Feld eingeben und auf \"Go\" klicken.\nAchtung nur Kleinbuchstaben verwenden !\n---------------------------------------------------------------------------------------\n\nUm unsere Suche weiter auf Eure Bedürfnisse\nabzustimmen brauchen wir Euch.\n\nWonach sucht ihr?\n\nEinfach ins Kontaktfeld auf der Startseite eingeben,\nStichwort \"Suchbegriff\" und absenden.\n---------------------------------------------------------------------------------------\n\nDas Planetcrazy-Team, dankt Euch für Eure Unterstützung!");







}







function testHallo()



{







   //#############



   function HalloFenster(Datei)



   {



   MFenster = window.open(Datei,"Hallofenster","width=540,height=280"+",toolbar=0,menubar=0,scrollbars=1,alwaysRaised=Yes,hotKeys=Yes,status=0,location=0,resizable=1,left=0,top=0,fullscreen=no");



   xwert=screen.width-600;



   MFenster.moveTo(xwert/2,230);



   MFenster.focus();



   }







//#############



// haltbarkeit: (Tag * Stunden * minuten * sekunden * Millisekunden)



        var haltbarkeit = 300 * 24 * 60 * 60 * 1000;



        var verfallzeitpunkt = new Date();



        verfallzeitpunkt.setTime(verfallzeitpunkt.getTime() + haltbarkeit)







var Moduswert = getCookie("HalloFenster");







//Testoption Start



//Moduswert=0;



//Testoption Ende







if(Moduswert!=1)



{



Moduswert=1;



HalloFenster('news.html')



setCookie("HalloFenster", Moduswert, verfallzeitpunkt)



}



else



setCookie("HalloFenster", Moduswert, verfallzeitpunkt)



}











//###################



function BilderbuchFenster(Datei)



{



MFenster = window.open(Datei,"Meldungsfenster","width=500,height=500"+",toolbar=0,menubar=0,scrollbars=1,alwaysRaised=Yes,hotKeys=Yes,status=0,location=0,resizable=1,left=0,top=0,fullscreen=no");



ywert=screen.height-430;



MFenster.moveTo(1,1);



MFenster.focus();



}















































//###################







function tmt_print() {



    if (document.all) {



        var OLECMDID_PRINT = 6;



        var OLECMDEXECOPT_DONTPROMPTUSER = 2;



        var OLECMDEXECOPT_PROMPTUSER = 1;



        var WebBrowser = "<OBJECT ID='WebBrowser1' WIDTH=0 HEIGHT=0 CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></OBJECT>";



            document.body.insertAdjacentHTML("beforeEnd", WebBrowser);



            WebBrowser1.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER);



            WebBrowser1.outerHTML = "";



    } else {



        self.print();



    }



}
