// main.js var is = new BrowserCheck() ; 			// BrowserInfo geholt var ThisDBurl = GetThisDBurl() ;var ThisDBdir = GetThisDBdir();var isdocbeingsaved = false; var curX = 0;var curY = 0;var Langu = "DE";//+++++++++++++++ FotoDownload +++++++ Startfunction doFotoDownload() {	alert("doFotoDownload");}//+++++++++++++++ FotoDownload +++++++ Endefunction go(url) {	window.location.href = url; }function goRegio(regio, url) {	// alert("goRegio regio=" + regio );	if( regio == null ) {regio = ""; }			setRegioCookie(regio) ;		window.location.href = url; 	}function setRegioCookie(regio) {	if( regio == null ) {regio = ""; }			var never = new Date()	never.setTime(never.getTime() + 2000*24*60*60*1000);	var expString = never.toGMTString();		var expires = expString;	setCookie( "PSRegio", regio, expires, "/", "", "") ;		}//-------------------------------------------------------------------------------------------------------------------------------function setDisplayAktuellDiv() {	//alert("setDisplayAktuellDiv" );		var cb = document.getElementById("SearchInAktuell");	if( !cb ) {return;}		var show = cb.checked;	var o = document.getElementById("SearchInAktuellDiv");	if(o) {		if( show == true ) {			o.style.display = "block";		}		else {			o.style.display = "none";		}	}}function setDisplayArchivDiv() {	//alert("setDisplayArchivDiv");		var cb = document.getElementById("SearchInArchiv");	if( !cb ) {return;}		var show = cb.checked;	var o = document.getElementById("SearchInArchivDiv");	if(o) {		if( show == true ) {			o.style.display = "block";		}		else {			o.style.display = "none";		}	}}function toggleDisplay(id, dispType) {	//alert("toggleDisplay id=" + id );		if( dispType == null || dispType == "" ) {dispType = "block"; }	var o = document.getElementById(id);	if(o) {		if( o.style.display == "none" ) {			o.style.display = "block";		}		else {			o.style.display = "none";		}	}}function acceptNLAbo() {var unid = document.forms[0].ThisUNID.value;var retURL = "" ;// Agent macht Reload auf aktuelle Seitevar url = ThisDBurl + "/wSetStatusDoc?OpenAgent&UNID=" + unid + "&DB=" + ThisDBurl ;		// Agent gibt JS zur\u00FCckwindow.location.href = url ;}function setField(fieldName, valu) {ThisForm = document.forms[0];// Input Felder auslesenvar countFields = ThisForm.elements.length;if (countFields==0) {	return;}for (z=0; z< countFields; z++) {	field = ThisForm.elements[z];	if ( field.name == fieldName ) {		// Hier haben wir das richtiges Feld zu fassen		field.value = valu;		return;	}}}function submitBroschOrder0() {ViewForm = document.forms[0];// Input Felder auslesenvar countFields = ViewForm.elements.length;if (countFields==0) {	return;}var id = "";var res = "" ;for (z=0; z< countFields; z++) {	field = ViewForm.elements[z];	// Die Namen aller InputFelder der View fangen mit "inp_" an	id = field.name.substring(0,3);	fldname = field.name.substring(4);	if ( id == "inp" ) {					// Hier haben wir ein richtiges Feld zu fassen		if( field.value != "" ) {			res = res + field.value + "*" + fldname + "+" ;					}	}}if ( res == "") {	alert('Sie haben keine Brosch\u00FCre gew\u00E4hlt');	return;}// ViewForm.SelectedValues.value = res;//alert(res);var url = ThisDBurl + "/inpBroschOrder1?OpenForm&Choice=" + res  ;document.location.href=url;}function createLeseliste(noteid, unid) {	//alert("createLeseliste");	if( unid == null ) {unid = ""; }			var never = new Date()	never.setTime(never.getTime() + 2000*24*60*60*1000);	var expString = never.toGMTString();	var ThisForm = document.forms[0];	var id = ThisForm.NewLeselisteID.value;	var expires = expString;	var path = "/";	var domain = "";	var secure = "";	setCookie( "LeselisteID", id, expires, path, domain, secure) ;	if ( noteid )  {		addToLeseliste( noteid, unid ) 	}	else {		document.location.href = document.location.href ;	}}function addToLeselisteView( noteid, unid ) {  	var msg = "";	if( unid == null ) {unid = ""; }	var LeselisteID = getCookie( "LeselisteID" );		if (LeselisteID == "") {		msg = "Sie haben noch keine Merkliste angelegt.\nM\u00F6chten Sie das jetzt tun?\nDabei wird ein Cookie gesetzt.";		if ( confirm(msg) ) {			createLeseliste(noteid, unid) ;		}		else {			return;		}}	addToLeseliste(noteid, unid)}function addToLeseliste(noteid, unid) {	//alert("addToLeseliste unid=" + unid );	if( unid == null ) {unid = ""; }		var imgname = "addToLeseliste" + noteid + "Img" ;	// AgentImage + Link bestimmen	for(i=0;i<document.images.length ;i++) {		if( document.images[i].id.indexOf( imgname ) != -1)  { 			AgentImg = document.images[i];		}	}	// Agent gibt retimgname zur\u00FCck	var url = ThisDBurl + "/addThisToLeselisteView?OpenAgent&NOTEID=" + noteid  ;		AgentImg.src = url ;	//document.location.href=url;			//AgentImg.name = "AufMerkliste";	//AgentImg.alt = "Der Artikel steht auf Ihrer Merkliste";	// UNID zu LeselisteUNIDArr hinzuf\u00FCgen	var thisArr = LeselisteUNIDArr ;	//alert("thisArr1=" + thisArr );	//alert("unid=" + unid );			if( thisArr[0] == "" ) {		thisArr[0] = unid ;	} 	else {		thisArr[thisArr.length] = unid;	}	//alert("thisArr2=" + thisArr );					// Links markieren	window.setTimeout("markLeseliste()", 100);		return;}function markLeseliste() {	//alert("markLeseliste");	//alert("LeselisteID=" + LeselisteID );	try {		var thisArr = LeselisteUNIDArr ;		//alert("thisArr=" + thisArr );		if( thisArr[0] != "" ) {				for (var i=0; i<thisArr.length; i++) {				// divs pr\u00FCfen ung ggf markieren				var id = "LL" +  thisArr[i] + "Div";				//alert("id=" + id);				o = document.getElementById( id );				if(o) {					//o.style.backgroundColor = "#EFF3F4";					//alert("o.className=" + o.className );					var className = strLeft(o.className,"hot") ;					if( right(o.className,3) != "hot" ) {						o.className = className + "hot";										}					// o.innerText ="STEHT AUF MERKLISTE";					//  o.innerHTML = '<span style="height:22px;padding-top:5px;padding-left:9px;color:#FF660A;">STEHT AUF MERKLISTE</span>';					 	//alert("o.innerText =" + o.innerText  );					o.innerHTML = "STEHT AUF MERKLISTE";				}								//var id = "LL" +  thisArr[i] + "Link";				//o = document.getElementById( id );				//if(o) {							//	o.title = "Steht auf Ihrer Merkliste";				//	//o.className = o.className + "hot";				//}															}		}	}	catch(e) {		alert( "Debug in main.js - markLeseliste:\n" + e.message );		return;	}}function delFromLeseliste(unid) {	//alert("delFromLeseliste");	var ReturnAddress = ThisDBurl + "/showLeseliste?Open" ;	var url = ThisDBurl + "/deleteThisFromLeseliste?Open&UNID="  + unid  + "&ReturnAddress=" + ReturnAddress ;	// alert(url);	window.location.href = url;}function delLeseliste(cnt) {	//alert("delLeseliste");			var go = confirm("Komplette Merkliste l\u00F6schen?\nZur Zeit stehen " + cnt + " Artikel auf des Merkliste.");	if( !go ) {	return;}		var url = ThisDBurl + "/deleteLeseliste?Open" ;	// alert(url);	window.location.href = url;}function createPNU() {	var never = new Date()	never.setTime(never.getTime() + 2000*24*60*60*1000);	var expires = never.toGMTString();	var path = "/";	var domain = "";	var secure = "";		var ThisForm = document.forms[0];	var day = ThisForm.Today.value;	cookieVal = day	//today.toGMTString()	//alert( day )		setCookie( "LastVisit", cookieVal , expires, path, domain, secure) ;	setCookie( "ThisVisit", cookieVal , expires, path, domain, secure) ;	//window.history.go(0) ;	document.location.href = document.location.href ;}function refreshPNU() {	var Zeitraum = getSelectedValue(document.forms[0].Zeitraum);	var LastVisit = getCookie( "LastVisit" );	var datum = new Date() ;	ThisMonat = datum.getMonth();	if ( Zeitraum == "LastVisit") {		dateString = LastVisit ;	}	else if ( Zeitraum == "M3") {		datum.setMonth(datum.getMonth() - 3 );	}	else if ( Zeitraum == "M1") {		datum.setMonth(datum.getMonth()- 1 );	}	else if ( Zeitraum == "W2") {		datum.setDate(datum.getDate() - 14 );	}	else if ( Zeitraum == "W1") {		datum.setDate(datum.getDate() - 7 );	}	if ( Zeitraum != "LastVisit") {		ThisTag = datum.getDate() ;		ThisMonat = datum.getMonth() +1;		ThisJahr = datum.getYear();		var dateString = ThisTag + "." + ThisMonat + "." + ThisJahr ;	}	url = ThisDBurl + "/showPnu?OpenForm&Zeit=" + Zeitraum + "&Dat=" +  dateString ;	document.location.href = url ;	return;}function CheckLastVisit()   {	//alert("CheckLastVisit 1");	var LastVisit = getCookie( "LastVisit" );	var ThisVisit = getCookie( "ThisVisit" );	var ThisForm = document.forms[0];	var Today = ThisForm.Today.value;	var never = new Date()	never.setTime(never.getTime() + 2000*24*60*60*1000);	var expires = "; expires=" + never.toGMTString();	var path = ThisDBdir ;	var domain = "";	var secure = "";	if (LastVisit != "") {	// Hat PNU-Cookie		if ( ThisVisit != Today ) {			setCookie( "LastVisit", ThisVisit , expires, path, domain, secure) ;			setCookie( "ThisVisit", Today , expires, path, domain, secure) ;			//		document.history.go(0);			window.location.href = window.location.href;		}	}}// Normale Volltextsuche +++++++++++++++++++++++++++++++++function trySearch(e, str , ViewName) {	//alert("trySearch" + e);	var code = "" ;		//alert("str1=" + str );						if(window.event) {			// IE		code = e.keyCode;	}	else if(e.which) {					// Netscape/Firefox/Opera		//alert("Firefox");		code = e.which ;	}	try {			if(code == "13") {							// Return				//alert("code=" + code );				//alert("str1=" + str );				FTSearch(str , ViewName);				e.cancelBubble = true;				if (e.stopPropagation) e.stopPropagation();				e.returnValue=false;				  			}	}	catch(ex) {		alert("trySearch: " + ex.message);		return;	}  		//window.status = "checkInputKey done";}function FTSearch( str , ViewName ) {	// Ruft Maske SeachResult auf, die im wqo die Suche startet	//alert("FTSearch");	//alert("FTSearch str=" + str );	//str = escape(str);	//alert("FTSearch str=" + str );	if (str == "") {		alert( 'Bitte geben Sie einen Suchbegriff ein.');		return ;	}	// wg. XSS	str = escape(str);		// Loading.... eingblenden	ShowSearchMsg();	var qry = "&SAK=1&SA=1&SF=1"	//	var SearchQueryURL =  ThisDBurl + "/" + "SearchResult?openform&Query=" + str + "&View=" + ViewName + "&Start=1&Count=100";	var SearchQueryURL =  ThisDBurl + "/" + "SearchResult?openform&Query=" + str + qry + "&Start=1&Count=50";	//alert("SearchQueryURL=" + SearchQueryURL );	//alert("window.location.href= " + window.location.href);	window.location.href=SearchQueryURL ;			}// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++// Neue Detail-Suche +++++++++++++++++++++++++++++++++++++++++++++++++++// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++function tryDetSearch(e, str ) {	//alert("tryDetSearch" + e);	var code = "" ;				if ( is.safari == true ) {				//alert("nix");		//return false;	}		if(window.event) {				// IE		code = e.keyCode;	}	else if(e.which) {					// Netscape/Firefox/Opera		code = e.which ;	}	try {			if(code == "13") {		// Return				StartDetSearch();  			}	}	catch(ex) {		alert("tryDetSearch: " + ex.message);		return;	}  	}function StartDetSearch() {	// Ruft Maske SeachResult auf, die im wqo die Suche startet	//alert("StartDetSearch");	var str = document.getElementById("DetString").value;	if (str == "") {		alert( 'Bitte geben Sie einen Suchbegriff ein.');		return ;	}	//alert("str=" + str );	// construct qry 	var qry = "";			var allViewCBs = ""		// Aktuelle Bereiche ++++++++++++++++++++++++++++++++		allViewCBs = allViewCBs + "1"	qry += "&SAK=1"  ;		// Search in aktuell	qry += "&SA=1"  ;		// Search in archive		var cb1 = document.forms[0].SearchLevel2 ;	if(cb1) {		var vals = ReadCheckbox(cb1); 		if( vals != "") {			qry += "&L2=" + vals ;		}	}	// vals f\u00FCr Archiv aufbereiten			//alert("vals=" + vals );			if( vals != "") {			var newVals = "";		var valsArr = vals.split(";");				for (var i=0; i<valsArr.length; i++) {			//valsArr[i] = "Archiv" + valsArr[i] ;			if(newVals == "" ) {				newVals = "Archiv" + valsArr[i] ; 			}			else {				newVals += ";Archiv" + valsArr[i] ; 					}		}		qry += "&L2A=" + newVals ;		//alert("newVals=" + newVals );				}		// SinceYear	var cb1 = document.forms[0].SinceYear ;	if(cb1) {		var vals = ReadCheckbox(cb1);		if( vals != "") {			qry += "&J=" + vals ;			qry += "&JA=" + vals ;		}	}		// Fotos ++++++++++++++++++++++++++++++	var cb = document.forms[0].SearchInFoto ;	if(cb) {		var flag = ReadBit(cb);		if( flag) {			allViewCBs = allViewCBs + "1"			qry += "&SF=1" ;		}		else {			qry += "&SF=0"  ;		// No Search in fotos		}	}				// Radio ++++++++++++++++++++++++++++++	var cb = document.forms[0].SearchInRadio ;	if(cb) {		var flag = ReadBit(cb);		if( flag) {			allViewCBs = allViewCBs + "1"			qry += "&SR=1" ;		}		else {			qry += "&SR=0"  ;		// No Search in radio		}	}					if( allViewCBs == "" ) {		alert("Bitte w\u00E4hlen Sie mindestens einen Bereich.");		return;	}			// Loading.... eingblenden	ShowSearchMsg();	// var url =  ThisDBurl + "/" + "SearchResult?openform&Query=" + escape(str)  + qry + "&Start=1&Count=50";	var url =  ThisDBurl + "/" + "SearchResult?openform&Query=" + str  + qry + "&Start=1&Count=50";		//alert("url=" + replacestring(url,"&"," &", false ) ); 	//alert("url=" + url );	//document.location.href=url ;	//LoadInNewWindow(  url );	window.location.href = url ;	}function StartDetSearchOLD() {	// Ruft Maske SeachResult auf, die im wqo die Suche startet	//alert("StartDetSearch");	var str = document.getElementById("DetString").value;	if (str == "") {		alert( 'Bitte geben Sie einen Suchbegriff ein.');		return ;	}	//alert("str=" + str );	// construct qry 	var qry = "";			var allViewCBs = ""		// Aktuelle Bereiche ++++++++++++++++++++++++++++++++	var cb = document.forms[0].SearchInAktuell ; 	if(cb) {		var flag = ReadBit(cb);		if( flag) {			allViewCBs = allViewCBs + "1"			qry += "&SAK=1"  ;		// Search in aktuell				var cb1 = document.forms[0].SearchLevel2 ;			if(cb1) {				var vals = ReadCheckbox(cb1); 				if( vals != "") {					qry += "&L2=" + vals ;				}			}						// SinceYear			var cb1 = document.forms[0].SinceYear ;			if(cb1) {				var vals = ReadCheckbox(cb1);				if( vals != "") {					qry += "&J=" + vals ;				}			}			}		else {			qry += "&SAK=0"  ;		// No Search in aktuell		}	}				// Archiv +++++++++++++++++++++++++++++++++	var cb = document.forms[0].SearchInArchiv ; 	if(cb) {		var flag = ReadBit(cb);		if( flag) {			allViewCBs = allViewCBs + "1"			qry += "&SA=1"  ;		// Search in archive			var cb1 = document.forms[0].SearchLevel2Archiv ;			if(cb1) {				var vals = ReadCheckbox(cb1);				//alert("vals=" + vals);				if( vals != "") {					qry += "&L2A=" + vals ;				}			}			// 			var cb1 = document.forms[0].SinceYearArchiv  ;			if(cb1) {				var vals = ReadCheckbox(cb1);				//alert("vals=" + vals);				if( vals != "") {					qry += "&JA=" + vals ;				}			}								}		else {			qry += "&SA=0"  ;		// No Search in archive		}	}		// Fotos ++++++++++++++++++++++++++++++	var cb = document.forms[0].SearchInFoto ;	if(cb) {		var flag = ReadBit(cb);		if( flag) {			allViewCBs = allViewCBs + "1"			qry += "&SF=1" ;		}		else {			qry += "&SF=0"  ;		// No Search in fotos		}	}				// Radio ++++++++++++++++++++++++++++++	var cb = document.forms[0].SearchInRadio ;	if(cb) {		var flag = ReadBit(cb);		if( flag) {			allViewCBs = allViewCBs + "1"			qry += "&SR=1" ;		}		else {			qry += "&SR=0"  ;		// No Search in radio		}	}					if( allViewCBs == "" ) {		alert("Bitte w\u00E4hlen Sie mindestens einen Bereich.");		return;	}			// Loading.... eingblenden	ShowSearchMsg();	// var url =  ThisDBurl + "/" + "SearchResult?openform&Query=" + escape(str)  + qry + "&Start=1&Count=50";	var url =  ThisDBurl + "/" + "SearchResult?openform&Query=" + str  + qry + "&Start=1&Count=50";		//alert("url=" + replacestring(url,"&"," &", false ) ); 	//alert("url=" + url );	//document.location.href=url ;	//LoadInNewWindow(  url );	window.location.href = url ;}// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++function tryFinetuneDetSearch(e ) {	//alert("tryFinetuneDetSearch" + e );	var code = "" ;				if ( is.safari == true ) {				//alert("nix");		//return false;	}		if(window.event) {				// IE		code = e.keyCode;	}	else if(e.which) {					// Netscape/Firefox/Opera		code = e.which ;	}	try {			if(code == "13") {		// go				FinetuneDetSearch();				e.cancelBubble = true;				if (e.stopPropagation) e.stopPropagation();				e.returnValue=false;		  			}	}	catch(ex) {		alert("tryFinetuneDetSearch: " + ex.message);		return;	}  	}function FinetuneDetSearch() {	//alert("FinetuneDetSearch 1" );	//qry = "&" & Strleft(Strright(webdoc.PATH_INFO(0),"&"),"&Start=")	var inp = document.forms[0].SearchString2.value ;	if (inp == "") {		alert( 'Bitte geben Sie einen weiteren Suchbegriff ein.');		return ;	}	//var str = document.forms[0].curFTQuery.value + " AND " + inp;	//var str = "(" + document.forms[0].curFTQuery.value + ") AND " + inp;	var str = document.forms[0].curFTQuery.value + " AND " + inp;	//alert("str=" + str); 	// ggf. QueryParameter aus alter URL extrahieren+ an neue URL anh\u00E4ngen	var origURL = document.location.href;				var paramList = new ParamList(document.location.href); 		var SAK = paramList['SAK'];		var J = paramList['J'];			var L2 = paramList['L2'];			var SA = paramList['SA'];		var JA = paramList['JA'];				var L2A = paramList['L2A'];			var SF = paramList['SF'];									var qry = "";		if( SAK && SAK !="0" && SAK !="" ) {			qry += "&SAK=" + SAK ;		}		if( J && J !="0" && J !="" ) {			qry += "&J=" + J ;		}						if( L2 && L2 !="0" && L2 !="" ) {			qry += "&L2=" + L2 ;		}				if( SA && SA !="0" && SA !="" ) {			qry += "&SA=" + SA ;		}				if( JA && JA !="0" && JA !="" ) {			qry += "&JA=" + JA ;		}		if( L2A && L2A !="0" && L2A !="" ) {			qry += "&L2A=" + L2A ;		}		if( SF && SF !="0" && SF !="" ) {			qry += "&SF=" + SF ;		}	// Loading.... eingblenden	ShowSearchMsg();	var url =  ThisDBurl + "/" + "SearchResult?openform&Query=" + escape(str) + qry + "&Start=1&Count=50";		//alert("url=" + replacestring(url,"&"," &", false ) );	//alert("url=" + url );	document.location.href=url ;}function LoadInNewWindow(  url , width , height ) {  	var OptionString =   'status=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height + ',location=yes'	dlgwin = window.open(url, 'NewWindow' , OptionString )	//x=dlgwin.location.href;	dlgwin.focus()   }function LoadInNewWindow0(  url , width , height ) {  	var OptionString =   'menubar=no,scrollbars=no,resizable=yes,width=' + width + ',height=' + height + ',toolbar=no,location=no,'	dlgwin = window.open(url, 'NewWindow0' , OptionString )	//x=dlgwin.location.href;	dlgwin.focus()   }function LoadInNewWindow1(  url , width , height ) {  	var OptionString =   'menubar=yes,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height + ',toolbar=no,location=no,'	dlgwin = window.open(url, 'NewWindow' , OptionString )	//x=dlgwin.location.href;	dlgwin.focus()   }function LoadInNewWindow2(  url , width , height ) {  	var OptionString =   'menubar=yes,scrollbars=no,resizable=yes,width=' + width + ',height=' + height + ',toolbar=yes,location=no,'	dlgwin = window.open(url, 'NewWindow' , OptionString )	//x=dlgwin.location.href;	dlgwin.focus()   }function ShowPreviewWindow(  url ) {  	var OptionString =   'menubar=yes,scrollbars=yes,toolbar=no,resizable=yes,width=550,height=550,location=no'	dlgwin = window.open(url, 'Info_Window' , OptionString )	//x=dlgwin.location.href;	dlgwin.focus()   }// TV-Footagefunction ShowFootagePreview(  unid,  format, width , height  ) {  	if( unid  == null ) { alert('Keine UNID im Aufruf');return; }	if( format  == null || format  == "" ) { format = 'WMV'; }		if( width  == null ) { width = 600; }	if( height  == null ) { height = 600; }		//if( width  == null ) { width = 700; }	//if( height  == null ) { height = 700; }		var url = ThisDBurl + "/showFootagePreview?OpenForm&ParentUNID=" + unid + "&Format=" + format ; 	LoadInFootageWindow( url,  width , height );	}function LoadInFootageWindow(  url,  width , height  ) {  	var OptionString =   'status=yes, menubar=yes,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height + ',toolbar=yes,location=no,'	dlgwin = window.open(url, 'FootageWindow' , OptionString ) ;	window.setTimeout("dlgwin.focus()", 50);	}function LoadInDownloadWindow(  url , width , height ) {  	var OptionString =   'status=yes, menubar=yes,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height + ',toolbar=yes,location=no,'	dlgwin = window.open(url, 'DownloadWindow' , OptionString ) ;	window.setTimeout("dlgwin.focus()", 50);}function LoadInPrintWindow(  url ) {  	var width = 700;	var height = 400;	var OptionString =   'menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height + ',location=no'	dlgwin = window.open(url, 'PrintWindow' , OptionString ) ;	x=dlgwin.location.href;	dlgwin.focus() ;}// - - -// - - -function LoadSeiteNetto(  url ) {  var width = 630;var height = 500;var OptionString = 'menubar=yes,toolbar=yes,scrollbars=yes,status=yes,resizable=yes,width=' + width + ',height=' + height + ',location=no'dlgwin = window.open(url, 'NettoWindow' , OptionString ) ;x=dlgwin.location.href;dlgwin.focus() ;}// - - -// GetLevel1------------------------------------------------------------------var curLevel1 = "Info"function GetLevel1( str ) {x = str.indexOf( "GoTo=" )if (x < 0 ) {	curLevel1="Info"}else {	curLevel1=str.substring(x+5,str.length)  	 // von GoTo= bis Ende	x = curLevel1.indexOf( "&" ) 	if ( x>=0 ) {			// &  in url		curLevel1=curLevel1.substring(0,x-2) ;	}	else {		curLevel1=curLevel1.substring(0, curLevel1.length-2) 	}//	curLevel1=str.substring(x+5,str.length-2) }}// GetLDocUNID------------------------------------var DocUNID = ""function GetDocUNID( str ) {x = str.indexOf( "GoTo=" )if (x < 0 ) {	DocUNID = ""}else {	DocUNID=str.substring(x+5,str.length)  	 // von GoTo= bis Ende	x = DocUNID.indexOf( "&DocUNID=" ) 	if ( x>=0 ) {						// &  in url vorhanden, also soll ein doc ge\u00F6ffnet werden		DocUNID=DocUNID.substring(x+9,DocUNID.length) ;	}	else {		DocUNID=""	}}}// GetLevel2------var curLevel2 = "00"function GetLevel2( str ) {			// Nimmt die letzten beiden Zahlen der URL ggf vor dem &x = str.indexOf( "GoTo=" )	if (x < 0 ) {		curLevel2="00"	}	else {		curLevel2=str.substring(x+5,str.length) 	// GoTo raus		x = curLevel2.indexOf( "&" ) 		// & suchen, ggf links davon		if ( x>=0 ) {			// &  in url			curLevel2=curLevel1.substring(0,x) ;		}		var LastTwo = "00" + curLevel2.substr(curLevel2.length-2,curLevel2.length) ;		var LastTwoNr = parseFloat(LastTwo) ;		LastTwo = "00" + LastTwoNr ;		curLevel2 = LastTwo.substr(LastTwo.length-2,curLevel2.length) ;	}}function imgResOVER(  imgName )   {if (is.ns3) return;var ThisForm = document.forms[0] ;if (imgName != "" )   {	if (ThisForm.curImgName.value != imgName) {		ThisForm[imgName].src = "/" + ThisForm.ThisDBWeb.value + "/" + imgName + "H" 	}    }}// - - -function imgResOUT( imgName )   {if (is.ns3) return;var ThisForm = document.forms[0] ;if ( imgName != "" )    {	if (ThisForm.curImgName.value != imgName) {			ThisForm[imgName].src = "/" +  ThisForm.ThisDBWeb.value  + "/" + imgName +  "L" ;	} }}function getXY(e) {alert(window.Event);alert(window.Event.pageX);	var x = (window.Event) ? e.pageX : event.clientX;  	var y = (window.Event) ? e.pageY : event.clientY;	alert( "x=" + x + " - y="  + y);	  // Use x and y to do what ever you want}	function getThisPos(evnt){	// Cursor-Position	// curX + curY sind globale Variablen	try {		if( window.Event ) {			curX = evnt.pageX;			curY = evnt.pageY ;				}		else if( window.event){			curX=evnt.x+document.body.scrollLeft;			curY=evnt.y + document.body.scrollTop;		}		//alert(evnt);		//alert( "curX:" + curX + " ||| curY:"  + curY);	}	catch(e) {		alert(e.message);		return;	}	// Groesse des Fensters	//winX = document.body.offsetWidth ;	//winY = document.body.offsetHeight;	//alert( "winX=" + winX + " - winY="  + winY);}	/********************* navOVER **********************/function subnavOVER( evt, id, curID )   {	//alert("navOVER id=" + id + " - curID=" + curID );	if (id == curID) return ; 	var color = "#EFF3F4";	//var backgroundColor = "#F6672B";	var backgroundColor = "#B4C6CE";			var o = document.getElementById(id + "Div");	if(o) {		o.style.color = color ;				o.style.backgroundColor = backgroundColor ;			}		// Image	var o = document.getElementById(id + "Img");	if(o) { 		rOVER( o.id ) ;	}	return;	// Helptext	getThisPos(evt )	//var msg = "curX=" + curX + " - curY="  + curY;		//alert(msg);	var o = document.getElementById(id + "AbstractDiv");	if(o) { 		o.style.display = "block";		o.style.left = curX + 30;		o.style.top = curY  + 0;	}		// 	} function subnavOUT(evt, id, curID )   {	//alert("navOUT id=" + id + " - curID=" + curID );	if (id == curID) return ; 	var backgroundColor = "#EFF3F4";	var color = "#F6672B";			var o = document.getElementById(id + "Div");	if(o) {		o.style.color = color ;				o.style.backgroundColor = backgroundColor ;			}		// Image	var o = document.getElementById(id + "Img");	if(o) { 		rOUT( o.id ) ;	}return;		// Helptext	var o = document.getElementById(id + "AbstractDiv");	if(o) { 		o.style.display = "none";	}	}/*********** Verk\u00FCrzter Aufruf von imgOVER + imgOUT **********************/function rOVER( imgName )   {	//alert("rOVER");	imgOVER( imgName, "" , '' ) ;}function rOUT( imgName )   {	imgOUT( imgName, '', '' ) ;}/*F\u00FCr ungleichnamige Images d.h. ImgName != ResourceName, wie ViewBullets*/function imgOVER( imgName, resName, curImgName )   {	//alert("imgOVER:" + imgName +"-"+ resName+"-"+ curImgName ) 	if (is.ns3) return;	if (imgName == curImgName) return ; 	if (imgName == "" ) return ;	var tmpdoc = document;	var o = tmpdoc.getElementById(imgName);	if(o) {		var ssrc = replacestring( o.src, "L.gif","H.gif", false);		o.src = ssrc ;	}	/********************************			for(i=0;i<tmpdoc.images.length ;i++) {			if( (tmpdoc.images[i].name.indexOf( imgName ) != -1))  { 				//var ssrc = ThisDBurl + "/" + resName + "H" ;				//alert(tmpdoc.images[i].src);				var ssrc = replacestring( tmpdoc.images[i].src, "L.gif","H.gif", false);				//alert(ssrc);				tmpdoc.images[i].src= ssrc;				return			}; 					}********************************/		}function imgOUT( imgName, resName, curImgName )   {	//alert("imgOUT:" + imgName +"-"+ resName+"-"+ curImgName ) ;		if (is.ns3) return;	if (imgName == curImgName) return ; 	if (imgName == "" ) return ;	var tmpdoc = document;	var o = tmpdoc.getElementById(imgName);	if(o) {		//alert(tmpdoc.images[i].src);		var ssrc = replacestring( o.src, "H.gif","L.gif", false);		o.src = ssrc ;	}/***************		for(i=0;i<tmpdoc.images.length ;i++) {			if( (tmpdoc.images[i].name.indexOf( imgName ) != -1))  { 				//var ssrc = ThisDBurl + "/" + resName + "L" ;				var ssrc = replacestring( tmpdoc.images[i].src, "H.gif","L.gif", false);					tmpdoc.images[i].src= ssrc;				return			}; 		}***************/}function imgOVER2( imgName, resName, curImgName )   {var ThisForm = document.forms[0]ThisDBurl = "http://" + window.location.host + "/" + ThisForm.ThisDBWeb.valueif (imgName != "" )   {	ThisForm[imgName].src = ThisDBurl + "/" + resName +  "H" ;    }}function imgOUT2( imgName, resName, curImgName )   {var ThisForm = document.forms[0]ThisDBurl = "http://" + window.location.host + "/" + ThisForm.ThisDBWeb.valueif (imgName != "" )   {	if (curImgName != imgName) {	ThisForm[imgName].src = ThisDBurl + "/" + resName +  "L" ;	}    }}function LoadInHelpWindow( key ) {  var ThisForm = document.forms[0]//ThisDBurl = "http://" + window.location.host + "/" + ThisForm.ThisDBWeb.value//alert( window.location)var url =  ThisDBurl + "/RefHelp/" + key + "?OpenDocument" dlgwin = window.open(url, 'HelpWindow' , 'scrollbars=yes,resizable=yes,width=680,height=500')x=dlgwin.location.href;dlgwin.focus()   }// fix resize bug in NS4//var is = new BrowserCheck(); 			// BrowserInfo holenif(is.ns4) {  var origWidth = innerWidth;  var origHeight = innerHeight;  onresize=repaint;}function repaint() {  if (innerWidth!=origWidth || innerHeight!=origHeight) { window.status="Repaint"   location.href = location.href;   }}function searchAndReplace(theString,oldChar,newChar) { var browser = (navigator.appName == "Microsoft Internet Explorer")?"Explorer":"Netscape"; var gen = parseInt(navigator.appVersion); if ((browser == "Netscape" && gen >= 3) || (gen >= 4)) { var words = theString.split(oldChar); var newString = words.join(newChar); return newString } else { var words = new Object(); var placeHolder = theString.indexOf(oldChar); var counter = 0; words[counter] = theString.substring(0,placeHolder); var remainder = theString.substring(placeHolder + 1, theString.length); while (remainder.indexOf(oldChar) >= 1){counter = counter + 1; placeHolder = remainder.indexOf(oldChar); words[counter] = remainder.substring(0,placeHolder); remainder = remainder.substring(placeHolder + 1,remainder.length); } counter = counter + 1; words[counter] = remainder; var newString = "%"; for (prop in words){newString = newString + newChar + words[prop]; } newString = newString.substring(2,newString.length); return newString } }function left(inpStr, pos ) {var inp = inpStr;if (pos >= inp.length ) {	return inpStr ;}else {return inp.substring(0,pos);		 // von Anfang bis Divider}}function strLeft(inpStr, divider ) {var inp = inpStr;i = inp.indexOf( divider )if (i < 0 ) {				// Divider nicht gefunden	return inpStr ;}else {					// Divider gefunden	return inp.substring(0,i);		 // von Anfang bis Divider}}function getSelectedValue(select) {var selIndex = select.selectedIndex ;if ( selIndex == -1 ) {	return "";}	return select.options[select.selectedIndex].value}function getSelectedValueText(select) {var selIndex = select.selectedIndex ;if ( selIndex == -1 ) {	return "";}	return select.options[select.selectedIndex].text}function ReadRadio(radio) {var RadioValue = "";for (i=0; i<radio.length; i++) {	if (radio[i].checked) {		RadioValue = radio[i].value;	}}return RadioValue}function BrowserCheck() {	if (navigator.appName=="Netscape") this.name = "ns";	else		if (navigator.appName=="Microsoft Internet Explorer") this.name = "ie";		else this.name = navigator.appName;		this.version = parseInt(navigator.appVersion);	this.ns = (this.name == "ns" && this.version >= 4);	this.ns3 = (this.name == "ns" && this.version == 3);	this.ns4 = (this.name == "ns" && this.version == 4);	this.ns5 = (this.name == "ns" && this.version == 5);	this.ns6 = (navigator.userAgent.indexOf('Netscape6')>0);		if (this.ns6) {		this.version = 6;		this.ns5 = false;	}		this.ie = (this.name == "ie" && this.version >= 4);	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0);	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);	this.ie6 = (navigator.userAgent.indexOf('MSIE 6')>0);		if (this.ie5) this.version = 5;	this.win = (navigator.userAgent.indexOf('Win')>0);	this.mac = (navigator.userAgent.indexOf('Mac')>0);	this.safari = (navigator.userAgent.indexOf('Safari/')>0);	//alert( "this.mac=" + this.mac );	//alert( "this.safari=" + this.safari );	this.dhtml = (this.ns||this.ie);	this.css = (this.ns||this.ie);}function GetThisDBurl() {str = window.location.href;xstr = window.location.href.toLowerCase();x = str.indexOf( ".nsf" )if (x < 0 ) {	res = window.location.hostname + "<Computed Value>"}else {	res=str.substring(0,x+4)  	 // von Anfang bis .nsf}return res}function GetThisDBdir() {str = window.location.pathname ;xstr = str.toLowerCase();x = xstr.indexOf( ".nsf" )if (x < 0 ) {	res = "/"}else {	res=str.substring(0,x) ; 	 	// alles links von .nsf	x = res.lastIndexOf( "/" ) ;	res=res.substring(0,x+1) ; 	 	// alles incl. letztem slash}return res}function GetDBdir(str) {//str = window.location.pathname ;xstr = str.toLowerCase();x = xstr.indexOf( ".nsf" )if (x < 0 ) {	res = "/"}else {	res=str.substring(0,x) ; 	 	// alles links von .nsf	x = res.lastIndexOf( "/" ) ;	res=res.substring(0,x+1) ; 	 	// alles incl. letztem slash}return res}function DownloadFile(unid,filename) {url = ThisDBurl + "/DownloadFile?OpenAgent&unid=" + unid + "&file=" + filename ;window.location.href = url ;return true;}// COOKIES ######################################## ANFANGfunction setCookie(name, value, expires, path, domain, secure) {document.cookie = name + "=" + escape(value) +((expires) ? "; expires=" + expires : "") +((path) ? "; path=" + path : "/") +((domain) ? "; domain=" + domain : "") +((secure) ? "; secure" : "");}function getCookie(Name){var search = Name + "=";var RetStr = null;var offset = 0;var end = 0;offset = (document.cookie.indexOf(search));if (offset != -1) {offset += search.length;end = document.cookie.indexOf(";", offset);if (end == -1) {end = document.cookie.length;}RetStr = unescape(document.cookie.substring(offset, end));}if (RetStr == null) RetStr = "";return (RetStr);}// COOKIES ######################################## ENDEfunction RememberUserData(ThisForm)  {if (ThisForm == null) {	ThisForm = document.forms[0];}var never = new Date()never.setTime(never.getTime() + 2000*24*60*60*1000);var expString = never.toGMTString();var expires = expString;var path = "/";var domain = "";var secure = "";// Felder im Array definierenvar Felder = new Array("Sex","Vorname","Nachname","ReplyTo","Redaktion","Funktion","Strasse","PLZ","Ort","Telefon","Fax");var CookieNames = new Array();	for (i=0; i < Felder.length; ++i) {CookieNames[i] = Felder[i]	;	// Namen der Cookies festlegen}var count = 0;for (i=0; i < Felder.length; ++i)					// Durch die Felder schleifen{		if ( eval('ThisForm.' + Felder[i] ) ) 			// Gibt es das Feld auf der Form?	{		if ( Felder[i] == "Sex" ) {			nr = ThisForm.Sex.options.selectedIndex  ;			CookieVal = ThisForm.Sex.options[nr].text ;		}		else	{			CookieVal = eval('ThisForm.' + Felder[i] + '.value');		}				window.status = "Setze: " + CookieNames[i] + " = " + CookieVal;		setCookie(CookieNames[i],CookieVal,expires,path,domain,secure)	} ;} return }function ReadUserData(ThisForm)  {if (ThisForm == null) {	ThisForm = document.forms[0];}// Felder im Array definierenFelder = new Array("Sex","Vorname","Nachname","ReplyTo","Redaktion","Funktion","Strasse","PLZ","Ort","Telefon","Fax");CookieNames = new Array();	for (i=0; i < Felder.length; ++i)		// Namen der Cookies festlegen	{		CookieNames[i] = Felder[i]	}for (i=0; i < Felder.length; ++i)					// Durch die Felder schleifen{		if ( eval('ThisForm.' + Felder[i] ) ) {			// Gibt es das Feld auf der Form?		CookieVal = getCookie(CookieNames[i] ) ;		ThisFeld = eval( 'ThisForm.' + Felder[i] ) ;		if ( Felder[i] == "Sex" ) {			if (CookieVal == "Herr") {				ThisForm.Sex.options.selectedIndex = 0 ;							}			else {				ThisForm.Sex.options.selectedIndex = 1 ;			}		}		else	{			 ThisFeld.value = CookieVal ;		}	};}}function DeleteUserData()  {var Namen = new Array("Sex","Vorname","Nachname","ReplyTo","Redaktion","Funktion","Strasse","PLZ","Ort","Telefon","Fax","LastVisit","ThisVisit","LeselisteID");var CookieNames = new Array();for (i=0; i < Namen.length; ++i) {	CookieNames[i] = Namen[i]	;	// Namen der Cookies festlegen}var expires = "";var path = "/";var domain = "";var secure = "";var CookieVal = "" ;for (i=0; i < Namen.length; ++i) {// window.status = "L\u00F6sche Cookie: " + CookieNames[i] ;// alert("L\u00F6sche Cookie: " + CookieNames[i] ) ;setCookie(CookieNames[i],CookieVal,expires,path,domain,secure);}}function preload(imgObj,imgSrc) {		 if (document.images) {//alert("preloading: " + imgSrc );		 		 eval(imgObj+' = new Image()')		 		 eval(imgObj+'.src = "'+imgSrc+'"')		 }}//  PopNav---------------------------------------------------------------------------------------------------------var oldnav = null;function ShowSearchMsg() {	menuToggle('ShowSearchMsg','233','238');}function menuToggle(name,LeftVal,TopVal) {	//alert("main.jsmenuToggle");	if (LeftVal == 	"") { LeftVal = "200";}	if (TopVal == "") { TopVal = "200";}	if (oldnav == name) {			// Men\u00FC ist eingeblendet		navOff(name);	}	else {				// Dieses Men\u00FC ist nicht eingeblendet		if (oldnav != null ) {		 	navOff(oldnav);		// Anderes Men\u00FC ist eingeblendet		 }		navOn(name,LeftVal,TopVal);	}}function navOn(name,LeftVal,TopVal){	//alert("navOn: " + name);	var o = document.getElementById("NAV" + name );	if(o) {		o.style.left = LeftVal ;		o.style.top = TopVal ;		o.style.display = "block" ;	}		oldnav = name;}	function navOff(name){	//alert("navOff: " + name);	var o = document.getElementById("NAV" + name );	if(o) {		o.style.display = "none" ;	}		window.clearTimeout();	oldnav = null;}function old_navOn(name,LeftVal,TopVal){if (is.ns) {	if ( is.version < 99 ) {		eval("document.NAV" + name + ".left =" + LeftVal);		eval("document.NAV" + name + ".top =" + TopVal);		eval("document.NAV" + name + ".zIndex =0");		eval("document.NAV" + name + ".visibility='show'");	}	else {		// Hier muss noch NS6 kompatibel gemacht werden		eval("document.NAV" + name + ".left =" + LeftVal);		eval("document.NAV" + name + ".top =" + TopVal);		eval("document.NAV" + name + ".zIndex =0");		eval("document.NAV" + name + ".visibility='visible'");	}}else {	eval("document.all.NAV" + name + ".style.pixelLeft =" + LeftVal);	eval("document.all.NAV" + name + ".style.pixelTop =" + TopVal);	eval("document.all.NAV" + name + ".style.zIndex =0");	eval("document.all.NAV" + name + ".style.visibility='visible'");	}oldnav = name;}function old_navOff(name){if (is.ns) {	eval("document.NAV" + name + ".visibility = 'hidden'");	window.clearTimeout();	eval("document.NAV" + name + ".zIndex = 0");}else if (is.ie) {	document.all("NAV" + name).style.visibility = 'hidden';	window.clearTimeout();	eval("document.all.NAV" + name + ".style.zIndex = 0");}oldnav = null;}//  PopupNav------------------------------------------------------------------------------------------function replacestring(str_normal,str_find,str_replace,int_case_insensitive) {	if (arguments.length<3 || str_find=="" || str_normal=="" || typeof("".split)!="function")		return(str_normal);	//no parm means default, "case SENSITIVE"...	if(!(int_case_insensitive))		return(str_normal.split(str_find)).join(str_replace);	str_find=str_find.toLowerCase();	var rv="";	var ix=str_normal.toLowerCase().indexOf(str_find);	while(ix>-1)	{		rv+=str_normal.substring(0,ix)+str_replace;		str_normal=str_normal.substring(ix+str_find.length);		ix=str_normal.toLowerCase().indexOf(str_find);	};	return(rv+str_normal);}// ****************************************************************************function strLeft(inpStr, divider ) {	var inp = inpStr;	var i = inp.indexOf( divider )	if (i < 0 ) {				// Divider nicht gefunden		return inpStr ;	}	else {					// Divider gefunden		return inp.substring(0,i);		 // von Anfang bis Divider	}}function strLeftBack(inpStr, divider ) {	var inp = inpStr;	var i = inp.lastIndexOf( divider )	if (i < 0 ) {				// Divider nicht gefunden		return inpStr ;	}	else {					// Divider gefunden		return inp.substring(0,i);		 // von Anfang bis Divider	}}function strRight(inpStr, divider ) {	var inp = inpStr;		var i = inp.indexOf( divider )	if (i < 0 ) {				// Divider nicht gefunden		return inpStr ;	}	else {					// Divider gefunden		return inp.substring(i+divider.length);		 // von Divider bis Ende	}}function strRightBack(inpStr, divider ) {	var inp = inpStr;		var i = inp.lastIndexOf( divider )	if (i < 0 ) {				// Divider nicht gefunden		return inpStr ;	}	else {					// Divider gefunden		return inp.substring(i+1);		 // von Divider bis Ende	}}function right(inpStr, pos ) {	var inp = inpStr;	if (pos >= inp.length ) {		return inpStr ;	}	else {	startpos = inp.length - pos ;		return inp.substring(startpos );		 // von Divider bis Ende	}}function left(inpStr, pos ) {	var inp = inpStr;	if (pos >= inp.length ) {		return inpStr ;	}	else {		return inp.substring(0,pos);		 // von Anfang bis Divider	}}/****************************** Einbabefelder auslesen + schreiben ***********************************/function ReadRadio(radio) {var ReturnValue = "";for (var i=0; i<radio.length; i++) {	if (radio[i].checked ) {		ReturnValue = radio[i].value;	}}return ReturnValue;}function ReadSelect(select) {//alert(select);//alert("ReadSelect " + select.name);var ReturnValue = "";if (select) { 	for (var i=0; i<select.length; i++) {		if (select.options[i].selected) {			if ( ReturnValue == '' ) {				ReturnValue = select.options[i].value;			}			else {				ReturnValue = ReturnValue + ";" + select.options[i].value;			}		}	}}return ReturnValue;}function ReadSelectText(select) {//alert(select);var ReturnValue = "";if (select) { 	//alert("ReadSelectText " + select.name);	for (var i=0; i<select.length; i++) {		if (select.options[i].selected) {			if ( ReturnValue == '' ) {				ReturnValue = select.options[i].text;			}			else {				ReturnValue = ReturnValue + ";" + select.options[i].text;			}		}	}}return ReturnValue;}function ReadCheckbox(checkbox) {	//alert("ReadCheckbox id=" + checkbox.id + " - checkbox.length=" + checkbox.length );	var ReturnValue = "";	for (var i=0; i<checkbox.length; i++) {		if (checkbox[i].checked ) {			if ( ReturnValue == '' ) {				ReturnValue = checkbox[i].value;			}			else {				ReturnValue = ReturnValue + ";" + checkbox[i].value;			}		}			}	//alert("ReturnValue=" + ReturnValue);	return ReturnValue;}function ReadBit(checkbox) {// F\u00FCr einzelne Checkboxen true or false// alert("ReadBit")return checkbox.checked;}// Eingabefelder auslesen - ENDE// Eingabefelder schreiben - Startfunction setSelect(select, val ) {var ReturnValue = "";for (var i=0; i<select.length; i++) {	if (select.options[i].value == val ) {		// Dieser soll gesetzt werden		select.options[i].selected=true ;	}	else {		select.options[i].selected=false ;	}}return ReturnValue;}function setSelectText(select, val ) {var ReturnValue = "";for (var i=0; i<select.length; i++) {	if (select.options[i].text == val ) {		// Dieser soll gesetzt werden		select.options[i].selected=true ;;	}	else {		select.options[i].selected=false ;	}}return ReturnValue;}function setCheckbox(cbox, valArr ) {	//alert("setCheckbox " + cbox.id);	var i = 0 ;	var n = 0 ;	for( i = 0; i < cbox.length; ++i) {		//alert(cbox[i].value);		cbox[i].checked = false;	}	for( n = 0; n < valArr.length; ++n) {		var val = valArr[n] ;		for( i = 0; i < cbox.length; ++i) {			if ( cbox[i].value == val ) {				cbox[i].checked = true;			}		}				}}function setTextField(fldID,valu) {	fld = document.getElementById(fldID);	if( fld) { fld.value=valu; }}// Eingabefelder schreiben - ENDEfunction ParamList(querystring) {  if(querystring == '') return;//  var wertestring = decodeURI(querystring);  var wertestring = querystring;  wertestring = wertestring.slice(1);  var paare = wertestring.split("&");  for (var i=0; i < paare.length; i++) {    var name = paare[i].substring(0, paare[i].indexOf("="));    var wert = paare[i].substring(paare[i].indexOf("=")+1, paare[i].length);    this[name] = wert;  }}function toggleObject(id) {// Toggles object specified by id//alert("toggleObject " + id);  var o = document.getElementById(id);  if (o ) {  	if( o.style.display == "none" ) { 		o.style.display = "block";   		//o.style.display = "run-in";  	} 	else { 		o.style.display = "none"; 	}   }		}function hideObject(id) {// Hides object specified by id//alert("hideObject " + id);  var o = document.getElementById(id);  if (o ) {  o.style.display = "none";  }		}function showObject(id) {// Shows object specified by id//alert("showObject " + id);  var o = document.getElementById(id);  if (o ) {  o.style.display = "block";  }		 //if (o ) {  o.style.display = "run-in";  }  }function showObjectInline(id) {// Shows object specified by id inline//alert("showObject " + id);  var o = document.getElementById(id);  if (o ) {  o.style.display = "inline";  }		}
