// © 2004 Werb'Office R.&F. Müller GmbH http://www.werboffice.de/
//-------------------------------------------------------------------------
function CSSRollover(theObject, theAction){ // wechselt Hintergrundfarbe bei Hauptnavigation (Rollover)
	if(theAction == 'in'){
		theObject.style.background = 'url(pics/shared/b_bg01.gif)';
	}else{
		theObject.style.background = 'url(pics/shared/b_bg02.gif)';
	}
}

function PopWin(theURL,winName,features) {
  nWindow = window.open(theURL,winName,features);
  nWindow.focus();
}

//	Dekodierung © Werb'Office 2004
var refA="29805DqSEFGBÄ634ÖMNXüßYZO1HImnorJAÜPRVW";
var refB="+: -ibjkTUlvw7CKLxp.acQhyzds@äötuefg";
var refC = Array(4,3,2,5,7,6,9,8,1);

function dc(text,val) {
    ref=refA+refB;
    nStr="";

    for(i=0; i<text.length; i++) {
        sStr=text.substring(i, i+1);
        num=ref.indexOf(sStr);

		if((num-val)<0){
			nVal = num - val;
			aStr = ref.substring(ref.length+nVal, (ref.length+nVal)+1);
        }else{
			aStr=ref.substring(num -val,num-val+1);
		}
       	nStr += aStr;
     }
	return nStr;
}

gaebwindow = false
function gaeb_download(gaeb_pw){
url    = "gaeb.php?gaeb_pw=" + gaeb_pw
breite = "800"
hoehe  = "520"
if (gaebwindow && gaebwindow.closed == false){
gaebwindow.close()
}
var l = ((screen.availWidth - breite) / 2) - 44
var t = (screen.availHeight - hoehe) / 2
gaebwindow = window.open(url,"gaebwindow","scrollbars,width=" + breite +
                                       ",height=" + hoehe +
                                       ",left=" + l +
                                       ",top=" + t + ";")
gaebwindow.focus()
}

