//window.onerror=fehler;
//function fehler(){return true;}
function showXmass(browser)
{
XM=window.open("","XM","status=0,location=0,menubar=0,scrollbars=0,toolbar=0,height=402,width=800");
//XM.blur();
doc=XM.document;
doc.open();
doc.writeln("
groninger");
doc.writeln("");
doc.writeln("");
doc.close();
XM.focus();
}
///////////////////////////
// Funktionen zum Drucken
// von Seiten
function preparePrint(URL)
{
//newURL="http://www.groninger.de/templates/printPage.php4?URL="+URL+"&UID=";
printWin=window.open("","Print","status=0,location=0,menubar=1,scrollbars=1,toolbar=0,height=705,width=850");
printWin.document.location=URL;
printWin.print();
}
///////////////////////////
// Funktionen für das Encoden
// von Bildern
function showImage(imgURL)
{
IMG=window.open("","IMG","resizable=1,status=0,location=0,menubar=0,scrollbars=0,toolbar=0,height=800,width=800");
IMG.document.location="http://www.groninger.de/templates/show_image.php5?IMG="+imgURL+"&DOMAIN_HTTP_ROOT=aHR0cDovL3d3dy5ncm9uaW5nZXIuZGUvaG9tZS8=&SHARED_HTTP_ROOT=aHR0cDovL3d3dy5ncm9uaW5nZXIuZGUv&LANG=fr"
IMG.focus();
}
///////////////////////////
// Funktionen für Resize
// von Fenstern
function resizeWindow()
{
height=document.images.bild.height;
width=document.images.bild.width;
if (navigator.appName.indexOf("Netscape")!=-1 && ((navigator.appVersion.indexOf("5.")!=-1) || (navigator.appVersion.indexOf("6.")!=-1))){
width=width+10;
height=height+200;
}
else{
width=width+12;
height=height+180;
}
if (width<800)
width=800;
self.resizeTo(width,height);
self.focus();
}
////////////////////////////
// Liefert die Layer
// mit dem übergebenen Namen zurück
function get_Layer(name)
{
tmp="";
if (BROWSER=="OP" || (BROWSER=="NS" && VERSION>=6))
tmp="ELEM=document.getElementById('"+name+"');";
if (BROWSER=="IE" && VERSION>=4)
tmp="ELEM=document.all['"+name+"'];";
if (BROWSER=="NS" && VERSION<6)
tmp="ELEM=document.layers['"+name+"'];";
eval(tmp);
return ELEM;
}
////////////////////////////
// Ändert die Sichtbarkeit der übergebenen Ebene
function set_visibility(ELEM,visibility)
{
tmp="";
if (BROWSER=="OP" || (BROWSER=="NS" && VERSION>=6))
tmp="ELEM.style.visibility='"+visibility+"';";
if (BROWSER=="IE" && VERSION>=4)
tmp="ELEM.style.visibility='"+visibility+"';";
if (BROWSER=="NS" && VERSION<6)
tmp="ELEM.visibility='"+visibility+"';";
eval(tmp);
return true;
}
////////////////////////////
// Ändert die Sichtbarkeit der übergebenen Ebene
function setbgColor(ELEM,color)
{
tmp="";
if ((BROWSER=="NS" && VERSION>=6))
tmp="ELEM.style.backgroundColor='"+color+"';";
if ((BROWSER=="OP" && VERSION>=5) || (BROWSER=="IE" && VERSION>=4))
tmp="ELEM.style.background='"+color+"';";
if ( (BROWSER=="NS" && VERSION<6))
tmp="ELEM.background='"+color+"';";
eval(tmp);
return true;
}
///////////////////////////
// Funktionen für das Submenü
// unten
function setFlexSub2()
{
ELEM=get_Layer("FlexSub2");
set_visibility(ELEM,"hidden");
contentWidth=780;
if ((BROWSER == 'NS' && VERSION<6))
{
WDWidth=window.innerWidth;
ELEM.width=WDWidth-contentWidth;
}
if ((BROWSER == 'NS' && VERSION>=6) || (BROWSER=="OP" && VERSION>=5))
{
WDWidth=window.innerWidth;
ELEM.style.width=WDWidth-contentWidth-20;
}
if ((BROWSER == 'IE' && VERSION>=4) )
{
ELEM_Height=ELEM.clientHeight;
WDWidth=document.body.clientWidth;
ELEM.style.width=WDWidth-contentWidth;
}
set_visibility(ELEM,"visible");
}