if(top.frames.length > 0) top.location.href=self.location;

function Browser()
{
    if(((parseInt(navigator.appVersion) >= 3)) && ((navigator.appName.indexOf("Netscape") >= 0))
    || ((parseInt(navigator.appVersion) >= 4)) && ((navigator.appName.indexOf("Microsoft") >= 0)))
    {
        return true;
    }
}

function BW(BildID,Bildobjekt)
{
    if(Browser())
    {
        window.document.images[BildID].src = Bildobjekt.src;
    }
    return true;
}

function OW(datei, breite, hoehe)
{
    new_window = window.open(datei, 'PopUp', 'width='+breite+',height='+hoehe+',resizable=yes,menubar=no,scrollbars=yes,toolbar=no,locationbar=no,screenx=20,screeny=20,top=20,left=20,status=no,innerwidth=0,innerheight=0');
    new_window.resizeTo(breite, hoehe);
    new_window.focus();
}

function OpenWindow(datei, breite, hoehe)
{
    new_window = window.open(datei, 'PopUp', 'width='+breite+',height='+hoehe+',resizable=yes,menubar=no,scrollbars=no,toolbar=no,locationbar=no,screenx=20,screeny=20,top=20,left=20,status=no,innerwidth=0,innerheight=0');
    new_window.resizeTo(breite, hoehe);
    new_window.focus();
}

function FO(n,d)
{
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=FO(n,d.layers[i].document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function SH()
{
    var i,p,v,obj,args=SH.arguments;
    for(i=0; i<(args.length-2); i+=3) if((obj=FO(args[i]))!=null)
    {
        v=args[i+2];
        if(obj.style)
        {
            obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v;
        }
        obj.visibility=v;
    }
}
