function doLogin(){s=document.location.search;if(s.toLowerCase().indexOf("&login")==-1){a=(s=="")?"?Open&Login":"&Login";document.location.href+=a;}} function doSearch(t,s){var regExp1=/\bfield\b/;var regExp2=/[=,%,<,>,\\,",\[,\]]/;var str=s.value;if(str==""){alert("Please enter something to search for.");s.focus();} else{if(typeof regExp1.source!='undefined') if(regExp1.test(str)||regExp2.test(str)){var alrt="Please note that you can not include:";alrt+="\n\nThe reserved word 'field'\nthe characters \", \', \\, %, =, [, ], < or >";alrt+="\n\nin your search query!";s.focus();return alert(alrt);} openDbRelativeURL("content/Search?OpenDocument&SearchType="+t+"&SearchQuery="+escape(str));}} function doAdvancedSearch(t,Country,City,CompanyName,Department,FirstName,LastName){openDbRelativeURL("content/Search?OpenDocument&SearchType="+t+"&Country="+Country+"&City="+City+"&CompanyName="+CompanyName+"&Department="+Department+"&FirstName="+FirstName+"&LastName="+LastName);} function returnFalse(s){s=(s==null)?document.forms[0].Query:s;doSearch("all",s);return false;} function openDbRelativeURL(url,target){target=(target==null)?window:target;if(location.pathname.indexOf('.nsf')>-1){path=location.pathname.split('.nsf')[0]+'.nsf/';} else{path=location.pathname.toLowerCase().split('content')[0];} target.location.href=path+url;} var pathName=leftOf('/',location.pathname);function ReplaceViewTwisties(){for(var i=0;i=0;i--){comp=lrgstring.substring(i-1,strlen2) comp=comp.substring(0,strlen1) if(comp==smstring){foundat=i break}} return lrgstring.substring(foundat,255)} function imgSkift(imgDocID,imgObjName){document.images[imgDocID].src=imgObjName;} function popupList(type,field,openURL){ReturnTo(type,field);window.open(openURL);} function windowOpener(target,width,height){controlWindow=window.open(target,"","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+"");} function popupImages(openURL){windowOpener(openURL,'800','600');} function openWinNav(tt){win2=window.open(tt,"Navigation","width=715,height=520,scrollbars=no,status=no");} function ReturnTo(returnType,returnName){SetCookie('ReturnTo','','/','',returnType+'|'+returnName);} function rightlinksPopup(mylink,windowname){if(!window.focus) return true;var href;if(typeof(mylink)=='string') href=mylink;else href=mylink.href;window.open(href,windowname,'width=600,height=400, scrollbars=no');return false;} function clink(person){var u1='../vCard.v';var u2='cf?ReadForm&person='+person;document.write('');document.write(' Download vCard');} function timer(v){GMT=v;var gmt=new Date();var now=new Date();var set=now.getTimezoneOffset();gmt.setTime(now.getTime()+(set/60+parseFloat(GMT))*60*60*1000);hor=gmt.getHours();if(hor<10) hor="0"+hor;min=gmt.getMinutes();if(min<10) min="0"+min;sec=gmt.getSeconds();if(sec<10) sec="0"+sec;document.getElementById('citytime').value=" "+hor+":"+min+":"+sec;hor=now.getHours();if(hor<10) hor="0"+hor;min=now.getMinutes();if(min<10) min="0"+min;sec=now.getSeconds();if(sec<10) sec="0"+sec;document.getElementById('yourtime').value=" "+hor+":"+min+":"+sec;setTimeout("timer(GMT)",999);}