
document.write("<link href=\"../../lib/css/win.css\" REL=\"STYLESHEET\" TYPE=\"text/css\">");

/*****************************************************************************************************************/
// reloads the window if Nav4 resized
function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

/*****************************************************************************************************************/
// Funktion zum Öffnen eines Childwindow an einer bestimmten Position
function popup(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                //if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                        //if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                //if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}
function popPrint(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                window.cc_child.focus();
        }
}
/**************************************************************************************************************/

// Funktion zum Öffnen eines Childwindow an einer bestimmten Position MIT TOOLBAR!
function popupA(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                        if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,toolbar=yes,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}
/**************************************************************************************************************/




function popupB(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                        if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,toolbar=yes,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}
/**************************************************************************************************************/


/**************************************************************************************************************/

// Funktion zum Öffnen eines Childwindow an einer bestimmten Position MIT TOOLBAR!+scroll
function popupB(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                        if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,toolbar=yes,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}
/**************************************************************************************************************/

// Kaskadiertes Popup
function popuptext(PopURL,FName,x,y,posx,posy)
{
        ns=( document.layers )?true:false;
        ie=( document.all )?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");

        if( ! window.cc_child_text )
        {
                if( ie )
                {
                        x = x +20;
                }
                cc_child_text = window.open( PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y );
                if ( posx )
                        cc_child_text.moveTo( posx,posy );
                window.cc_child_text.focus();
                return;
        }
        if (ie && ie4 < 0)
        {
                if( window.cc_child_text.closed )
                {
                        if( ie )
                        {
                                x = x +20;
                        }
                        cc_child_text = window.open( PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y );
                        if ( posx )
                                cc_child_text.moveTo( posx,posy );
                        window.cc_child_text.focus();
                        return;
                }
        }

        if( window.cc_child_text )
        {
                if (ie && ie4 < 0)
                {
                        window.cc_child_text.close();
                }
                cc_child_text = window.open( PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y );
                if( posx )
                        cc_child_text.moveTo( posx,posy );
                window.cc_child_text.focus();
        }
}
/**************************************************************************************************/
// Funktion zum Öffnen eines Childwindow an einer bestimmten Position
function popupmessage(PopURL,FName,x,y,posx,posy)
{       alert ("THIS");
        if (!(posx)) posx=100;
        if (!(posy)) posy=100;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=no,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                        if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}
/**************************************************************************************************/
// Funktion zum Öffnen eines Childwindow an einer bestimmten Position
function popupclose()
{
     top.window.close();
}
/**************************************************************************************************/
function widthSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else {
    if( document.documentElement &&
        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
      myHeight = document.documentElement.clientHeight;
    } else {
      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
      }
    }
  }
  return myWidth;
}

/**************************************************************************************************/
function heightSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else {
    if( document.documentElement &&
        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
      myHeight = document.documentElement.clientHeight;
    } else {
      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
      }
    }
  }
  return myHeight;
}


