

//**************************************

function LoadFuncs () {
//werbung()
//start_ticker()
//ba()
//startscroll()
//werbefenster('sonnenstern/werbung.htm',300,370)
//dauerfenster('weihnachten/kalender1/advent.htm',680,480)
}







// ****************************************************************************

function werbefenster(URL,Breit,Hoch){
        win = window.open(URL, "newWin", "toolbar=no,left=100,top=100, location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,copyhistory=no,width="+Breit+",height="+Hoch+"")
        startTime()
}

function openWink()
 {
window.open("","neuk","width=600,height=480,resizable=yes,left=50,top=50,scrollbars=yes,menubar=yes,location=no,directories=no,toolbar=no,location=no,status=no");
}

function openWin(w,h)
 {
test = window.open("","neu","width="+w+",height="+h+",resizable=yes,left=50,top=50,scrollbars=yes,menubar=no,location=no,directories=no,toolbar=no,location=no,status=no");
test.focus();
}

function dauerfenster(URL,Breit,Hoch){

if (monat==12){

win = window.open(URL, "newWin", "toolbar=no,left=100,top=100, location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,copyhistory=no,width="+Breit+",height="+Hoch+"")
   }
}



function startTime(){

        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=20;        //*** Zahl in Sekunden
        Timer();
}

function Timer(){
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        curTime=hours*3600+mins*60+secs
        if (curTime>=closeTime){
                if (win.closed == false){
                        win.close()}}
        else{
                window.setTimeout("Timer()",1000)}
}


//**************wird für 2_alle.js und 3_alle.js benötigt *********
function openWink()
 {
window.open("","neuk","width=600,height=480,resizable=yes,left=50,top=50,scrollbars=yes,menubar=yes,location=no,directories=no,toolbar=no,location=no,status=no");
}
//******************************************************************

//***************** Rechte Maustaste *******************************
//function right(e) {
//if (navigator.appName == 'Netscape' &&
//(e.which == 3 || e.which == 2))
//return false;
//else if (navigator.appName == 'Microsoft Internet Explorer' &&
//(event.button == 2 || event.button == 3)) {
//alert("Die Fa. MayKoNet hat ein Copyright auf  diese Seiten.");
//return false;
//}
//return true;
//}
//
//document.onmousedown=right;
//if (document.layers) window.captureEvents(Event.MOUSEDOWN);
//window.onmousedown=right;
//******************************************************************


function start()
{
window.moveTo(0, 0);
window.resizeTo (800, 600);
}

function noframe ()
{
if(window!= window.top)
top.location.href = location.href;
}

var w1URL = "werbung/werbung.html";
function werbung ()
{
window.open(w1URL, 'neu', 'toolbar=0, location=0, directories=0, status=0, menubar=0, width=370,height=370,resizable=yes,scrollbars=no')
}
