/***********************************************

    <!--DATE-->28.08.2007<!--/DATE-->
    ©   yellowlabel.de für shop.klick-germany.de

    **  AUFGABEN DIESES SCRIPTS:
        Projektweite JS-Funktionen            **

    **  This program is protected by
        german copyright law (2003)           **

***********************************************/

function setActiveStyleSheet(title)
{
    var i, a, main;
    for (i = 0; (a = document.getElementsByTagName("link")[i]); i++) {
        if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
            a.disabled = true;
            if(a.getAttribute("title") == title) a.disabled = false;
        }
    }
}


function windowPos0()
{
    window.scrollTo(0, 0);
}

function openWindowFull(url) {
    var w = (Math.floor(screen.width  * 0.9));  //  Fensterbreite = 95% Schirmbreite
    if (w > 900) w = 900;                       //  jedoch max. 900px
    var h = (Math.floor(screen.height * 0.8));  //  Fensterhöhe   = 95% Schirmhöhe
    var x = (screen.width - w) / 2;             //  Fenster       = hor. mittig
    var y = 10;                                 //  Fenster       = 10px von oben

    var windowprops  = "dependent=yes,location=yes,menubar=no,resizable=yes,scrollbars=yes,";
        windowprops += "status=no,toolbar=no,width=" + w + ",height=" + h;
    agbPU = window.open(url,'preview',windowprops);
  //agbPU.moveTo(x,y)
    agbPU.focus()
}