function getPlainText(newtext) {		while(newtext.search("<") != -1)		{				x=newtext.indexOf("<");				y=newtext.indexOf(">");				if(y==-1) 			html=newtext.substring(x,newtext.length);			else				html=newtext.substring(x,y+1);								newtext=newtext.replace(html," ");				//alert(newtext);		}				return newtext;}/* Modified to support Opera */function lesezeichen(url,title){if (window.sidebar) // firefox	window.sidebar.addPanel(title, url, "");else if(window.opera && window.print){ // opera	var elem = document.createElement('a');	elem.setAttribute('href',url);	elem.setAttribute('title',title);	elem.setAttribute('rel','sidebar');	elem.click();} else if(document.all)// ie	window.external.AddFavorite(url, title);}function $(elmid) {	return document.getElementById(elmid);}var imgSpacer="/"  + DBName + "/images/spacer.gif";var menucount=0;var menucount2=0;var objContainer=new Array();var memoryStick=new Array();//*******************************//Ebene1//*******************************function SGMenu(_text,_url,_name) {	menucount++;	this.text=_text;	this.url=_url;	this.name=_name;	this.childs=new Array();	this.selected=false;		this.hasChilds=SGMenuHasChilds;	this.addChild=SGMenuAddChild;	this.getHTML=SGMenuWrite;	this.unterMenu=SGMenuUntermenu;	this.setSelected=SGMenuSetSelected;	memoryStick[memoryStick.length]=this;}function SGMenuHasChilds() {	return (this.childs.length>0)?true:false;}function SGMenuAddChild(obj) {	var index=this.childs.length;	obj.parent=this;	this.childs[index]=obj;}function SGMenuSetSelected() {this.selected=true;}function SGEBSetSelected() {this.selected=true; this.parent.selected=true;}//*******************************//Ebene2//*******************************function SGEB2(_text,_url,_name,_target) {	this.text=_text;	this.url=_url;	this.name=_name;	this.childs=new Array();	this.selected=false;	this.parent=null;		if(_target!=undefined)      this.target=_target; 	else			this.target="_self";	this.hasChilds=SGMenuHasChilds;	this.addChild=SGEB2AddChild;	this.getHTML=SGEB2Write;	this.setSelected=SGEBSetSelected;}function SGEB2AddChild(obj) {	var index=this.childs.length;	obj.name="m"+menucount2+"_rub"+index;	obj.parent=this;	this.childs[index]=obj;	if(obj.selected){		this.selected=true;		previousMenuOn=eval('document.getElementById("'+this.name+'")');	}}//*******************************//Ebene3//*******************************function SGEB3(_text,_url,_name) {	this.text=_text;	this.url=_url;	this.name=_name;	this.selected=false;	this.parent=null;			this.getHTML=SGEB3Write;	this.setSelected=SGEBSetSelected;}//HTMLfunction SGEB3Write(){	var cellClass=(this.selected)?" class='aktiv' ":"";		html = '<li>'+"\n"+ '<a href="'+this.url+'" '+cellClass+'>'+this.text+'</a></li>'+"\n";	return html;}//HTMLfunction SGEB2Write(){	var cellClass=(this.selected)?" class='aktiv' ":"";			startId="defaultCellOn";	if(!$('cat' + this.name)) 		html='<li id=\'cat' + this.name + '\'>';	else		html="";	html += '<a href="'+this.url+ '"' + cellClass + ' >'+this.text+'</a>'+"\n";		if(this.selected & this.hasChilds()) {		html +='<ul id="unternavigation">';		for(var i=0;i<this.childs.length;i++) {				html +=this.childs[i].getHTML();		}		html+="</ul>";	}		if(!$('cat' + this.name )) 		html +='</li>';					return html;}function SGMenuUntermenu(){	html="";		if(this.selected & this.hasChilds()) {				for(var i=0;i<this.childs.length;i++) {				html +=this.childs[i].getHTML();		}				$('untermenu').style.display='block';	}	return html;}//HTMLfunction SGMenuWrite(){	var cellClass=(this.selected)?" class='aktiv' ":"";	html2="";		if(!$('cat' + this.name)) 		html='<li id=\'cat' + this.name + '\'>';	else		html="";	html += '<a href="'+this.url+ '"' + cellClass + ' >'+this.text+'</a>'+"\n";	if(!$('cat' + this.name )) 		html +='</li>';			return html;}
