/** Standard Variabeln*/var sheight = (screen.availHeight);tmpSelected = "";dsiplen = 44;// open conntection for xmlfunction xmlConnection(){	if(window.XMLHttpRequest) 	{		xmlhttp = new XMLHttpRequest(); // Gecko (Firefox, Moz), KHTML (Konqueror, Safari), Opera, Internet Explorer 7		} else if(window.ActiveXObject) {		try{			xmlhttp = new ActiveXObject("MSXML2.XMLHTTP"); // Internet Explorer 6 		} catch(e) {			 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); // Internet Explorer 4,5		}	} else {		return false;	}}//************************************************* - SFS Locher Referenz Search - ********************************************function getKantonEntries(docid){	var tmpDocID = docid.split("-");	if (tmpDocID[1] == "$$") {		referenzobjEntries(tmpDocID[0], '3');		document.getElementById('select_kanton').innerHTML = "";		document.getElementById('select_kanton').style.display = "none";				document.getElementById('select_unternehmer').innerHTML = "";		document.getElementById('select_unternehmer').style.display = "none";				document.getElementById('select_ingenieur').innerHTML = "";		document.getElementById('select_ingenieur').style.display = "none";	} else {		document.getElementById('select_kanton').style.display = "block";		document.getElementById('select_unternehmer').style.display = "block";		document.getElementById('select_ingenieur').style.display = "block";				kantonEntries(tmpDocID[0]);	}}function kantonEntries(docid) {	xmlConnection();	document.getElementById('wait').style.display = 'block';	document.getElementById('referenzobjEntries').style.display = 'none';		url = basepath + 'aAjax_SFSLRefObj_Entries?OpenAgent&docid='+docid+'&key=1&cache='+Date();	xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange=kantonEntriesData;	xmlhttp.send('null');}function kantonEntriesData() {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			document.getElementById('wait').style.display = 'none';			getdatatxt = xmlhttp.responseText;						document.getElementById('select_kanton').innerHTML = "";			document.getElementById('select_unternehmer').innerHTML = "";			document.getElementById('select_ingenieur').innerHTML = "";						document.getElementById('kantonEntires').innerHTML = getdatatxt;		}	}}//************function unternehmerEntries(docid) {	xmlConnection();	document.getElementById('wait').style.display = 'block';	document.getElementById('referenzobjEntries').style.display = 'none';		url = basepath + 'aAjax_SFSLRefObj_Entries?OpenAgent&docid='+docid+'&key=2&cache='+Date();	xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange=new Function('fx', 'unternehmerEntriesData("'+docid+'")');	xmlhttp.send('null');}function unternehmerEntriesData(docid) {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			document.getElementById('wait').style.display = 'none';			getdatatxt = xmlhttp.responseText;						document.getElementById('select_unternehmer').innerHTML = "";			document.getElementById('select_ingenieur').innerHTML = "";						document.getElementById('unternehmerEntires').innerHTML = getdatatxt;			ingenieurEntries(docid);		}	}}//************function ingenieurEntries(docid) {	xmlConnection();	document.getElementById('wait').style.display = 'block';	document.getElementById('referenzobjEntries').style.display = 'none';		url = basepath + 'aAjax_SFSLRefObj_Entries?OpenAgent&docid='+docid+'&key=3&cache='+Date();	xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange=ingenieurEntriesData;	xmlhttp.send('null');}function ingenieurEntriesData() {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			document.getElementById('wait').style.display = 'none';			getdatatxt = xmlhttp.responseText;			document.getElementById('ingenieurEntires').innerHTML = getdatatxt;		}	}}//************function referenzobjEntries(docid, viewFlag) {		var view = "";		switch (viewFlag){		case "1":			view = "luSFSLAjaxReferenzObjUnternehmer";			break;		case "2":			view = "luSFSLAjaxReferenzObjIngenieur";			break;		case "3":			view = "luSFSLAjaxReferenzObjAlle";			break;		case "4":			view = "luSFSLAjaxReferenzObjTypKantonAlle";			break;		case "5":			view = "luSFSLAjaxReferenzObjTypKanton";			break;				}			xmlConnection();	document.getElementById('wait').style.display = 'block';	url = basepath + 'aAjax_SFSLRefObj_Entries?OpenAgent&docid='+docid+'&key=4&view='+view+'&cache='+Date();	xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange = new Function('fx', 'referenzobjEntriesData("'+viewFlag+'")');	xmlhttp.send('null');}function referenzobjEntriesData(viewFlag) {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			document.getElementById('wait').style.display = 'none';			getdatatxt = xmlhttp.responseText;								switch (viewFlag){				case "1":					document.getElementById('select_ingenieur').innerHTML = "";					break;				case "2":					document.getElementById('select_unternehmer').innerHTML = "";					break;			}									document.getElementById('referenzobjEntries').style.display = 'block';			document.getElementById('referenzobjEntries').innerHTML = getdatatxt;		}	}}function objDetailData(docid, view){	xmlConnection();	document.getElementById('wait'+docid).style.display = 'block';	url = basepath + 'aAjax_SFSLRefObj_Entries?OpenAgent&docid='+docid+'&view='+view+'&key=5&cache='+Date();	xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange=new Function('fx', 'objDetailDataData("'+docid+'")');	xmlhttp.send('null');}function objDetailDataData(docid) {	if (xmlhttp.readyState == 4)	{		if (xmlhttp.status == 200)		{			document.getElementById('wait'+docid).style.display = 'none';			getdatatxt = xmlhttp.responseText;					document.getElementById('dsp'+docid).innerHTML = getdatatxt;		}	}}function openDIV(cssElement, view){			var row = document.getElementById(cssElement);		if (navigator.appName == "Microsoft Internet Explorer") {		var displayType = 'block';	} else {		var displayType = 'table-row';	}		if (row.style.display == 'none'){		row.style.display =  displayType;		objDetailData(cssElement, view);	}else{		row.style.display = 'none';		document.getElementById('dsp'+cssElement).innerHTML = "";	}}//************************************************************************************************************************************function prodgroupEntries(docid,image) {	xmlConnection();	document.getElementById('wait').style.display = 'block';	document.getElementById('selected_product').src = basepathmedien + image;		// Clear ProdFamily Element	document.getElementById('ProdFamily').innerHTML = "";	url = basepath + 'aAjax_ProductGoup_Entries?OpenAgent&action=step1&docid='+docid+'&cache='+Date();		xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange=prodgroupEntriesData;	xmlhttp.send('null');}function prodgroupEntriesData() {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			document.getElementById('wait').style.display = 'none';			getdatatxt = xmlhttp.responseText;			document.getElementById('ProdGroup').innerHTML = getdatatxt;		}	}}//************************************************************************************************************************************function prodfamilyEntries(docid,prodgroupTxt,substructure) {	xmlConnection();	document.getElementById('wait').style.display = 'block';		image = document.getElementsByName("select_group");	for(var i=0;i<image.length;i++){		image[i].src = basepath + "x.gif"	}	document.getElementById(docid).src = basepathmedien + "img/misc/$FILE/selecter_background.jpg"		url = basepath + 'aAjax_ProductGoup_Entries?OpenAgent&action=step2&docid='+docid+'&prodgroupTxt='+prodgroupTxt+'&cache='+Date();		xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange=prodfamilyEntriesData;	xmlhttp.send('null');}function prodfamilyEntriesData() {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			document.getElementById('wait').style.display = 'none';			getdatatxt = xmlhttp.responseText;			document.getElementById('ProdFamily').innerHTML = getdatatxt;		}	}}//************************************************************************************************************************************function prodEntries(docid,visibility,description,icon,entricount,substructure) {	xmlConnection();	document.getElementById('wait').style.display = 'block';		if (substructure == 'False'){		image = document.getElementsByName("select_group");		}else{		image = document.getElementsByName("select_family");	}	for(var i=0;i<image.length;i++){		image[i].src = basepath + "x.gif";	}	document.getElementById(docid).src = basepathmedien + "img/misc/$FILE/selecter_background.jpg"		if (substructure == 'False'){		document.getElementById('ProdFamily').innerHTML = "";	}		document.getElementById('acsearch').value = "";	document.getElementById('tmpDocID').value = docid;	url = basepath + 'aAjax_Product_Entries?OpenAgent&action=&docid='+docid+'&cache='+Date();		xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange=new Function('fx', 'prodEntriesData("'+visibility+'","'+description+'","'+icon+'","'+entricount+'")');	xmlhttp.send('null');}function prodEntriesData(visibility,description,icon,entricount) {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			document.getElementById('wait').style.display = 'none';			getdatatxt = xmlhttp.responseText;			document.getElementById('prodselecter_images').innerHTML = getdatatxt;			document.getElementById('prodFamilyIcon').src = basepathmedien + icon;						var sizeY = document.getElementById('step1').offsetHeight;			var check = navigator.appVersion;			if (check.indexOf("MSIE") != -1)			{				document.getElementById('transON').style.height = sizeY;			}else{				document.getElementById('transON').style.height = sizeY + 150;			}								showProductSelecter(visibility, description,entricount);		}	}}//************************************************************************************************************************************function showProductBasic(docid,action,selecter,counter){	if(action =="open")	{		xmlConnection();		document.getElementById('wait').style.display = 'block';		document.getElementById('contactLink').style.display = 'none';				image = document.getElementsByName("select_product");		for(var i=0;i<image.length;i++){			image[i].src = basepath + "x.gif"		}				/*			Selecter nur einblenden wenn \u00FCber die ProdukteFamilien gesucht wird			Beim Suchen nach Nummern wird dies nicht ben\u00F6tigt		*/		if(selecter == 'True'){			document.getElementById(docid).src = basepathmedien + "img/misc/$FILE/selecter_background.jpg"		}else{						document.getElementById('selected_' + counter).style.color = '#ff3c24';			document.getElementById('selected_' + counter).style.fontWeight = '800';						if (tmpSelected!=""){				document.getElementById(tmpSelected).style.color = 'black';				document.getElementById(tmpSelected).style.fontWeight = 'normal';			}			tmpSelected = 'selected_' + counter;		}			url = basepath + 'aAjax_ProductDetail_Load?OpenAgent&action=basic&docid='+docid+'&cache='+Date();				xmlhttp.open("POST",url, true);		xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");		xmlhttp.onreadystatechange=showProductBasicData;		xmlhttp.send('null');		}else{			document.getElementById('step1').style.display = 'block';			document.getElementById('step2').style.display = 'none';						document.getElementById('ACProductIcon').value = "";			document.getElementById('ACTechnicalDrawing').value = "";	}}function showProductBasicData() {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			getdatatxt = xmlhttp.responseText;			convertToXML(getdatatxt);						// ACProductIcon anzeigen			var ACProductIcon = getChildeNodes('ACProductIcon');			if(ACProductIcon != false){				document.getElementById('ACProductIcon').src = basepathmedien + ACProductIcon;			}else{				document.getElementById('ACProductIcon').src = basepath + "x.gif";				document.getElementById('ACProductIcon').style.height = "150px";			}			// ACTechnicalDrawing anzeigen			var ACTechnicalDrawing = getChildeNodes('ACTechnicalDrawing');			if(ACTechnicalDrawing != false){				document.getElementById('ACTechnicalDrawing').src = basepathmedien + ACTechnicalDrawing;			}else{				document.getElementById('ACTechnicalDrawing').src = basepath + "x.gif";			}			// ACPDF download anzeigen			var ACPDF= getChildeNodes('ACPDF');			if(ACPDF != false){				document.getElementById('ACPDF').href = basepathmedien + ACPDF;				document.getElementById('ACPDFwrap').style.display = 'block';			}else{				document.getElementById('ACPDFwrap').style.display = 'none';			}			// Related Product auslesen			var ACReletedProduct = getChildeNodes('ACRelatedProduct')			if (ACReletedProduct == false){				document.getElementById('acbox2').style.display = 'none';			}else{				document.getElementById('acbox2').style.display = 'block';				relatedProdEntries(ACReletedProduct);						}						setChildeNodes('ACArticleNo','ACArticleNo',false);			setChildeNodes('ACStandardNo','ACStandardNo',false);						/*			// Article No anzeigen			var ACArticleNoCount = getChildeNodes('ACArticleNoCount');			alert(ACArticleNoCount);			if (ACArticleNoCount == 0) {						}			*/						// SelectBox zuklappen			document.getElementById('select_articleno_options').style.display = 'block';			select('select_articleno_options','select_articleno');						document.getElementById('select_standardno_options').style.display = 'block';			select('select_standardno_options','select_standardno');						// Product anzeigen			setChildeNodes('ACProductName','ACProductName',false);			setChildeNodes('ACBody','ACBody',false);						document.getElementById('step1').style.display = 'none';			document.getElementById('step2').style.display = 'block';						document.getElementById('select_articleno').innerHTML = ""			document.getElementById('select_standardno').innerHTML = ""						document.getElementById('wait').style.display = 'none';		}	}}//************************************************************************************************************************************function showProductRelated(docid,action){	if(action =="open")	{		xmlConnection();		document.getElementById('wait').style.display = 'block';		document.getElementById('contactLinkRelated').style.display = 'none';				url = basepath + 'aAjax_ProductDetail_Load?OpenAgent&action=related&docid='+docid+'&cache='+Date();				xmlhttp.open("POST",url, true);		xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");		xmlhttp.onreadystatechange=showProductRelatedData;		xmlhttp.send('null');		}else{			document.getElementById('step2').style.display = 'block';			document.getElementById('step3').style.display = 'none';						document.getElementById('ACProductIconRelated').value = "";			document.getElementById('ACTechnicalDrawingRelated').value = "";	}}function showProductRelatedData() {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			getdatatxt = xmlhttp.responseText;			convertToXML(getdatatxt);								// ACProductIcon anzeigen			var ACProductIcon = getChildeNodes('ACProductIcon');			if(ACProductIcon != false){				document.getElementById('ACProductIconRelated').src = basepathmedien + ACProductIcon;			}else{				document.getElementById('ACProductIconRelated').src = basepath + "x.gif";			}						// ACTechnicalDrawing anzeigen			var ACTechnicalDrawing = getChildeNodes('ACTechnicalDrawing');			if(ACTechnicalDrawing != false){				document.getElementById('ACTechnicalDrawingRelated').src = basepathmedien + ACTechnicalDrawing;			}else{				document.getElementById('ACTechnicalDrawingRelated').src = basepath + "x.gif";			}			// ACPDF download anzeigen			var ACPDF= getChildeNodes('ACPDF');			if(ACPDF != false){				document.getElementById('ACPDFRelated').href = basepathmedien + ACPDF;				document.getElementById('ACPDFwrapRelated').style.display = 'block';			}else{				document.getElementById('ACPDFwrapRelated').style.display = 'none';			}						setChildeNodes('ACArticleNo','ACArticleNoRelated',false);			setChildeNodes('ACStandardNo','ACStandardNoRelated',false);									// SelectBox zuklappen			document.getElementById('select_articlenoRelated_options').style.display = 'block';			select('select_articlenoRelated_options','select_articlenoRelated');						document.getElementById('select_standardnoRelated_options').style.display = 'block';			select('select_standardnoRelated_options','select_standardnoRelated');									// Product anzeigen			setChildeNodes('ACProductName','ACProductNameRelated',false);			setChildeNodes('ACBody','ACBodyRelated',false);						document.getElementById('step3').style.display = 'block';			document.getElementById('step2').style.display = 'none';						document.getElementById('select_articlenoRelated').innerHTML = ""			document.getElementById('select_standardnoRelated').innerHTML = ""			document.getElementById('wait').style.display = 'none';					}	}}//************************************************************************************************************************************function relatedProdEntries(key) {	xmlConnection();	document.getElementById('wait').style.display = 'block';		// Clear ProdFamily Element	url = basepath + 'aAjax_RelatedProduct_Entries?OpenAgent&action=&key='+key+'&cache='+Date();		xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange=relatedProdEntriesData;	xmlhttp.send('null');}function relatedProdEntriesData() {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			document.getElementById('wait').style.display = 'none';			getdatatxt = xmlhttp.responseText;			document.getElementById('ACRelatedProduct').innerHTML = getdatatxt;		}	}}//************************************************************************************************************************************function loadArtStdNo(key,divtag,action) {	xmlConnection();	document.getElementById('wait').style.display = 'block';		// Clear ProdFamily Element	url = basepath + 'aAjax_ArtStdNo_load?OpenAgent&action='+action+'&key='+key+'&cache='+Date();		xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange=new Function('fx', 'loadArtStdNoData("'+divtag+'","'+action+'")');	xmlhttp.send('null');}function loadArtStdNoData(divtag,action) {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			document.getElementById('wait').style.display = 'none';						getdatatxt = xmlhttp.responseText;			convertToXML(getdatatxt);						document.getElementById(divtag).innerHTML = getChildeNodes('ACValue');						// Contact Link steuern			if(divtag.indexOf('Related') > -1)			{				document.getElementById('contactLinkRelated').style.display = 'block';			}else{				document.getElementById('contactLink').style.display = 'block';			}								}	}}//************************************************************************************************************************************function showProductSelecter(visibility,description,entricount){	if (visibility=='block'){		document.getElementById('transON').style.display = 'block';			}else{		document.getElementById('transON').style.display = 'none';	}		// h\u00F6he des ProductSelecters definieren	if (sheight > 768){		document.getElementById('prodselecter_images_container').style.height = "450";	}else{		document.getElementById('prodselecter_images_container').style.height = "320";	}		document.getElementById('product_selecter_container').style.display = visibility;	document.getElementById('prodfamily_description').innerHTML = description;	/*	if (entricount == 0){		document.getElementById('product_selecter_count').style.color = "red";	}else{		document.getElementById('product_selecter_count').style.color = "black";	}	document.getElementById('product_selecter_count').innerHTML = entricount + " Product(s)";	*/	}//************************************************************************************************************************************function showContact(visibility,action){	if (visibility=='block'){		document.getElementById('transON').style.zIndex = 100;		document.getElementById('accontact').style.display = 'block';		document.getElementById('contact_container').style.display = 'block';					var tmpValue = document.getElementById('select_articleno'+action).innerHTML;		document.getElementById('dspArticleNo').value = tmpValue;		document.getElementById('calcArticleNo').value = tmpValue;		var tmpValue = document.getElementById('select_standardno'+action).innerHTML;		document.getElementById('dspStandardNo').value = tmpValue;		document.getElementById('calcStandardNo').value = tmpValue;				var sizeY = document.getElementById('step2').offsetHeight + 35;		var check = navigator.appVersion;		if (check.indexOf("MSIE") != -1)		{			document.getElementById('transON').style.height = sizeY;		}else{			document.getElementById('transON').style.height = sizeY + 150;		}				}else{		document.getElementById('accontact').style.display = 'none';		document.getElementById('transON').style.zIndex = 30;	}	}//************************************************************************************************************************************function sendACContact(form) {	xmlConnection();	var textdetail = replaceIt(form.textdata.value,'\n','Crlf');	url = basepath + 'aAjax_SendACContact?OpenAgent&customerno='+form.kundennummer.value+'&company='+form.company.value+'&name='+ form.name.value + '&email=' + form.email.value +'&articleno='+form.dsparticleno.value+'&standardno='+form.dspstandardno.value+'&text=' + textdetail +'&cache='+ Date();		form.textdata.value="";		xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange=new Function('fx', 'sendACContactData("'+form+'")');	xmlhttp.send('null');}function sendACContactData(form) {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			showContact('none');		} else {			alert("There was a problem retrieving he XML data:n" + xmlhttp.statusText);		}	}}//************************************************************************************************************************************function ACSearch(searchvalue){	xmlConnection();	document.getElementById('wait').style.display = 'block';	document.getElementById('ACSearchResult').value  ="";		var query = document.getElementById('acsearch').value;		url = basepath + 'aAjax_ACSearch?OpenAgent&action=number&query='+query+'&cache='+ Date();	xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange=ACSearchData;	xmlhttp.send('null');}function ACSearchData() {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			getdatatxt = xmlhttp.responseText;			document.getElementById('ACSearchResult').innerHTML = getdatatxt;		} else {			alert("There was a problem retrieving he XML data:n" + xmlhttp.statusText);		}		document.getElementById('wait').style.display = 'none';	}}//************************************************************************************************************************************function ACSearchProductName(searchvalue){	xmlConnection();	document.getElementById('wait').style.display = 'block';	document.getElementById('prodselecter_images').value  ="";		var query = document.getElementById('acsearch').value;	var tmpDocID = document.getElementById('tmpDocID').value;		url = basepath + 'aAjax_ACSearch?OpenAgent&action=product&docid='+tmpDocID+'&query='+query+'&cache='+ Date();	xmlhttp.open("POST",url, true);	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");	xmlhttp.onreadystatechange=ACSearchProductNameData;	xmlhttp.send('null');}function ACSearchProductNameData() {	if (xmlhttp.readyState == 4)	{ 		if (xmlhttp.status == 200)		{			getdatatxt = xmlhttp.responseText;			document.getElementById('prodselecter_images').innerHTML = getdatatxt;		} else {			alert("There was a problem retrieving he XML data:n" + xmlhttp.statusText);		}		document.getElementById('wait').style.display = 'none';	}}//************************************************************************************************************************************function convertToXML(getdatatxt){	if (document.implementation.createDocument){ 		getdataxml = (new DOMParser()).parseFromString(getdatatxt, "text/xml");	 } else if (window.ActiveXObject){ 		getdataxml = new ActiveXObject("Microsoft.XMLDOM") 		getdataxml.async="false"; 		getdataxml.loadXML(getdatatxt);   	} }//************************************************************************************************************************************function setChildeNodes(xmlnode,idTAG,type){	// type = true   -> Field Value	// type = flase -> innerHTML			if (xmlnode != ""){		if (getdataxml.getElementsByTagName(xmlnode)[0].childNodes.length == 1){			if (type == true){				document.getElementById(idTAG).value = getdataxml.getElementsByTagName(xmlnode)[0].firstChild.data;			} else {				document.getElementById(idTAG).innerHTML = getdataxml.getElementsByTagName(xmlnode)[0].firstChild.data;			}			return true			} else {			if (type == true){				document.getElementById(idTAG).value = ""			} else {				document.getElementById(idTAG).innerHTML = ""			}			return false		}	}}//************************************************************************************************************************************function getChildeNodes(xmlnode){	if (xmlnode != ""){		if (getdataxml.getElementsByTagName(xmlnode)[0].childNodes.length == 1)		{			return getdataxml.getElementsByTagName(xmlnode)[0].firstChild.data;		}else{			return false;		}	}}//************************************************************************************************************************************function select(id,changeimage) {	var box = document.getElementById(id);	var image = document.getElementById(changeimage);	if ( box.style.display == "block") 	{		box.style.display = "none";		image.style.backgroundImage = 'url('+basepath+'select_arrow.gif)';	} else {		box.style.display = "block";		image.style.backgroundImage = 'url('+basepath+'select_arrow_on.gif)';	}}//************************************************************************************************************************************function select_write(name,id,box){	var select_box = document.getElementById('select_' + box);	var close_select = document.getElementById('select_' + box + '_options');	var select_hidden_value = document.getElementById('select_' + box +'_hidden_value');					if (name.length > dsiplen){name = name.substring(0,dsiplen)+ '..';}	select_box.innerHTML = name;	select_hidden_value.value = id;	close_select.style.display = "none";	select_box.style.backgroundImage = 'url('+basepath+'select_arrow.gif)';}//************************************************************************************************************************************function go(ort){	ziel = "#" + ort;	window.location.href = ziel;}