function openCompany(companyId){var path = companyDisplayTemplate + "?openDocument&companyid=" + companyId + "&lang=" + languageol(path)}function ol(sLink,sTargetFrame){//if(sTargetFrame.indexOf( "_blank") == 0){var link = "";if(key != "") {	link =sLink}else{	link = CONTENTPathWeb + "/vwAllbyKey/" + sLink} if(sTargetFrame !=  "_blank"){	document.location = link}else{	window.open(link)}}function submitForm(){if (!validateDocument()){return false}else{document.forms["contactSheet"].submit();}}function validateDocument(){	i = 0;	focustoelement = "";	form = document.forms["contactSheet"];	alertmessage = eval("alert_" + language)//alertMessage =	fixlist = new String;	for (e in eval("messages_" + language))	{		isOk = true;		switch (eval("form." + e + ".type"))		{			case "text":			{      			if (eval("form." + e + ".value") == "")      				isOk = false;      			break;			}			case "select-one":			{				if (eval("form." + e + ".options.selectedIndex") == -1)					isOk = false;				break;			}			case "select-multiple":			{				isOk = true;				break;			}		}		if (! isOk) 		{			if (i == 0)				focustoelement = e;			fixlist = fixlist + eval("messages_" + language + "[e]") + "\n"			i = i + 1;		} 	}  	if (fixlist == "")		return true;	else	{		alert(alertmessage + fixlist);		eval("form." + focustoelement + ".focus()");		return false	}}function changeClassLeft(item, over){	if(over){		if(item.className.indexOf("-activ") > 0){			return false;		}else{			item.className = item.className + "-moused"//			alert(item.className)		}	}else{		if(item.className.indexOf("-activ") > 0){			return false;		}else{ 			item.className = item.className.replace("-moused", "");		}		}}function openPrintVersion(){	window.open(dbPath + "/vwContentPrint/" + key + "|" + language, "", "width=690,height=500,resizable=yes,menubar=yes,scrollbars=yes");}function submitSearch(){	if (validateSearch()){		document.forms["SEARCH"].submit()	}} function validateSearch(){	document.forms["SEARCH"].Query.value = trimString(document.forms["SEARCH"].Query.value);	if (document.forms["SEARCH"].Query.value == "")		return false;	else		return true;}function trimString(str) {  str = this != window? this : str;  return str.replace(/^\s+/g, '').replace(/\s+$/g, '');}function getCookie(NameOfCookie){// First we check to see if there is a cookie stored.// Otherwise the length of document.cookie would be zero.if (document.cookie.length > 0) { // Second we check to see if the cookie's name is stored in the// "document.cookie" object for the page.// Since more than one cookie can be set on a// single page it is possible that our cookie// is not present, even though the "document.cookie" object// is not just an empty text.// If our cookie name is not present the value -1 is stored// in the variable called "begin".begin = document.cookie.indexOf(NameOfCookie+"="); if (begin != -1) // Note: != means "is not equal to"{ // Our cookie was set. // The value stored in the cookie is returned from the function.begin += NameOfCookie.length+1; end = document.cookie.indexOf(";", begin);if (end == -1) end = document.cookie.length;return unescape(document.cookie.substring(begin, end)); } }return null; // Our cookie was not set. // The value "null" is returned from the function.}function openDownloadList(){//dLang = document.forms[1].selectDownloadLang.value//catChoice = document.forms[2].CategoryChoice.valuedLangElement = document.getElementById("selectDownloadLang")if(dLangElement == null){dLang = "all"}else{dLang = dLangElement.value}catChoice = document.getElementById("CategoryChoice").valuevar url = document.URLvar strToReplace = "&listKey="newURL= url.split(strToReplace);newURL = newURL[0] + strToReplace +  "|" + catChoice +  "|" + dLangdocument.location= newURL}function openRestrictedDownloadList(){//catChoice = document.forms[2].CategoryChoice.valuecatChoice = document.getElementById("CategoryChoice").valuevar url = document.URLvar strToReplace = "&listKey="newURL= url.split(strToReplace);newURL = newURL[0] + strToReplace + catChoicedocument.location= newURL}function isIE(){	IE='\v'=='v';	return IE;}function openLang(lang){var url = document.URL// catch special languagelight selection and redirect to contentdoc specified in aliaslanguageLightFound = true;// regular languagesvar langs = languagesAlias.split(",");var arLen=langs.length;for ( var i=0, len=arLen; i<len; ++i ){   alias = langs[i].split("|")[1];   if (alias == lang){   		languageLightFound = false; // regular language found = no light found   }}if (languageLightFound == true){	var to = 0;	if (isIE() == true){		to = url.lastIndexOf("%7C");	} else {		to = url.lastIndexOf("|");	}    	var from = url.lastIndexOf("/"); 	TargetDocToReplace = url.substring(from+1, to);   	urlNew = url.replace(TargetDocToReplace, lang);   } else {   		var strToReplace = "|" + language //for normal content		var strToReplace2 = "lang=" + language //for contact sheet		var strToReplace3 = "%7C" + language //for contact sheet		urlNew = url.replace(strToReplace, "|" + lang);		urlNew = urlNew.replace(strToReplace2, "lang=" + lang);		urlNew = urlNew.replace(strToReplace3, "|" + lang);   }	document.location = urlNew}function openDownloadLang(lang){//Download Language:qString = "&downloadlang="//dllanguage=document.forms[2].DownloadLanguage.valuedllanguage = document.getElementById("DownloadLanguage").valuevar url = document.URLif (url.indexOf("downloadlang") == -1) {	urlNew = url + qString + lang}else{	var strToReplace = qString + dllanguage //for normal content	urlNew = url.replace(strToReplace, qString + lang);	}		//Download Language:qString = "&selectedCat="selectedCat = document.forms[2].CategoryChoice.valueselectedCatOld = document.forms[2].SelectedCategory.valuevar url = urlNewif (url.indexOf("selectedCat") == -1) {	urlNew = url + qString + selectedCat}else{	var strToReplace = qString + selectedCatOld//for normal content	urlNew = url.replace(strToReplace, qString + selectedCat);	}		document.location = urlNew}function MM_reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);// -->function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_findObj(n, d) { //v4.0  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && document.getElementById) x=document.getElementById(n); return x;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}NS4 = (document.layers) ;IE4 = (document.all);mac=((IE4)&&(navigator.appVersion.indexOf ("Mac")!=-1));DOM=document.documentElement&&!NS4&&!IE4;mswnd=(navigator.appVersion.indexOf("Windows")!=-1||navigator.appVersion.indexOf("WinNT")!=-1);if(IE4)	{	av=navigator.appVersion;	avi=av.indexOf("MSIE");	if (avi==-1)		version = parseInt (av) ;	  else		version = parseInt(av.substr(avi+4)) ;	}if (NS4 || IE4 || DOM)	{	imgFolder = "";	maxlev = 4;	popupWidth = 169;	levelOffset = -1;	bord = 1;	vertSpace = 3;	sep = 1;	sepFrame = false;	openSameFrame = false;	cntFrame = "content";	contentFrame = "content";	mout = true;	iconSize = 8;	closeDelay = 300;	tlmOrigBg = "";	tlmOrigCol = "#000000";	bBitmapScheme = false;	bBitmapPopups = false;	popupOpenHeight = 0;	popupLeftPad = 0;	popupRightPad = 0;	tlmHlBg = "#000fff";	tlmHlCol = "#000000";	borderCol = "#7A7A7A";	menuHorizontal = true;	scrollHeight=6;	selected_ID = "<Computed Value>";	}