function replaceLinks(){	if (!document.getElementsByTagName) return false;		var srchFor = "&language=";	var lenSrch = srchFor.length;	var qs = location.search + "&";	qs = qs.toLowerCase();	var lang = "";		if (qs.indexOf( srchFor ) > -1) {		lang = Left( qs.substring( qs.indexOf( srchFor ) + lenSrch ), 2);	} else		return true; 	var links = document.getElementsByTagName("a");	for(i=0;i<links.length;i++){		var theLink = links[i].href;				if (theLink.indexOf( srchFor ) == -1) {			links[i].href = links[i].href + srchFor + lang;			//alert( theLink );		}			} }var divwin;function copyLink( theURL, htmlName ) {	newCont = '<br>URL to copy: <input style="width:500px;border:1px solid grey" name="copyArea" value="' + theURL + '">';	htmlName = htmlName.replace(/'/g," ");     divwin=dhtmlwindow.open('inline1', 'inline', newCont, htmlName, 'width=510px,height=20px,left=200px,top=150px,resize=0,scrolling=0,center=1',"recal"); }function showCalEvent( html) {	//config.Width = 120;	var popBGcol = document.getElementById("popBGcol").innerHTML;	if (popBGcol=="") popBGcol = '#9370db';	Tip(html, WIDTH, 300, PADDING, 6, BGCOLOR, popBGcol,FADEIN, 400,FADEOUT, 300)}function showCalEventClose( html) {	//config.Width = 120;	var popBGcol = document.getElementById("popBGcol").innerHTML;	if (popBGcol=="") popBGcol = '#E1FFEB';	Tip(html, WIDTH, 300, PADDING, 6, BGCOLOR, popBGcol,FADEIN, 400,FADEOUT, 300, CLICKCLOSE, true, CLICKSTICKY, true)}function showHelp( html ) {	var dbpath = document.getElementById("dbpath").innerHTML;	var inp = html;	inp = inp.replace(/'/g,"\\'");	inp = inp.replace(/<p>/g,"");	inp = inp.replace(/<\/p>/g,"<br>");	document.write( "<a onmouseout='UnTip()' href='javascript:void(0);' onmouseover=\"showPopHelp('" + inp + "')\"><img src='/" + dbpath + "/info.gif!openimageresource'></a>")}function showHelpClose( html ) {	var dbpath = document.getElementById("dbpath").innerHTML;	var inp = html;	inp = inp.replace(/'/g,"\\'");	inp = inp.replace(/<p>/g,"");	inp = inp.replace(/<\/p>/g,"<br>");	document.write( "<a onmouseout='UnTip()' href='javascript:void(0);' onmouseover=\"showPopHelpClose('" + inp + "')\"><img src='/" + dbpath + "/info.gif!openimageresource'></a>")}function showDHTMwin( url, w, h) {	ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", url, "Map", "width=" + w + "px,height=" + h + "px,resize=1,scrolling=1")}function getLangExt() {	try {		var wObj = document.getElementById("langEditing")		var workLang = wObj[wObj.selectedIndex].value;		if (workLang =="en") workLang = "";		document.cookie = "workLang=" + workLang + "; path=/"; 		if (workLang !="") return "&lang=" + workLang;	}	catch (e){	}	return "";}function inPlaceEdit(theURL){	try {		theURL = theURL.toLowerCase();		if (theURL.indexOf("&lang=")>-1) {			var rightofLang = strRight(strRight(theURL, "&lang="), "&")			theURL = strLeft(theURL, "&lang=") + getLangExt() + rightofLang;			location.href = theURL;		} else			location.href = theURL + getLangExt();	}	catch (e) {		location.href = theURL;	}}
