// dom function to return an objectfunction getObj(name) {   if (document.getElementById)  {  	return( document.getElementById(name));  }  else if (document.all)  {	return(document.all[name]);  }  else if (document.layers)  {   	return(document.layers[name]);  }}function passwordDialog(docid) {	var allpath=location.pathname;	var len=allpath.length;	var result=allpath.lastIndexOf(".nsf");	var pathtext=allpath.substring(result,0);	var define = pathtext + ".nsf" + "/(dialogpassword)?OpenForm&" + docid;	var app=navigator.appName;	if (app=="Netscape") {		var win = window.open( define,"keywords", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=150" );	} else {		var win = window.open( define,"keywords", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=150" );	} }function hwtjswindow(w, x, y, z, formpagename,argtype,wintitle) {   // w = screen width   // x = screen height   // y = screen cord   // z = screen cord   // formpagename = page or form name or url = case sen   // argtype = 1 = Lotus page or form ; 2 = url   // wintitle = window title   var pathname = (window.location.pathname); // left and top were added to this function for IE compatibilty,  y=left, z=top      if(argtype == "1")        {         window.open(pathname.substring(0,(pathname.lastIndexOf('.nsf')+5))+formpagename,wintitle,'scrollbars=no,resizable=no,screenX=' + y +',screenY=' + z + ',width=' + w + ',height=' + x + ',left=' + y +',top=' + z);       }     else if(argtype == "2")        {         window.open(formpagename,wintitle,'scrollbars=no,resizable=no,screenX=' + y +',screenY=' + z + ',width=' + w + ',height=' + x + ',left=' + y +',top=' + z);       }   return;}function hwtjsclosewindow() {   window.opener.close();return;}function hwtSwitchUrl(x) {       window.location=x;return;}function hwtChangeWindowStatus(x) {   window.status = x;  return true;} // end functionfunction hwtBookmarkThisPage() {	// this function will attempt to bookmark the page, only works in IE v 4 and higher	if(window.external)	  {		var thisURL = window.location.href;		var thisTITLE = document.title;		window.external.AddFavorite(thisURL,thisTITLE);	  }	else if(navigator.appName == "Netscape") 	  {		alert("To bookmark this page: click Bookmarks, Add Bookmark or press ( CTRL + D )")	  }	else	  {	     alert("This feature is not supported by the current browser \n You can add this page to your bookmarks \n using the Bookmark menu option");	  }}function hwtEmailThisPage() {  // function is used in footer  open("mailto:?body="+self.location,"","")return;}function checkKey(e){	var keypressed = (navigator.appName == "Netscape") ? e.which : e.keyCode;	var pkey = parseInt(keypressed);		if(pkey == 13)		{			try { e.returnValue = false; }			catch(err) { }			try { e.cancel = true; }			catch(err) {}			try { e.preventDefault(); }			catch(err) { }			return false;		}	  else          {          	return true;		}	}function searchquickwebsiteenter(e){   if(checkKey(e) == false)      {		searchquickwebsitenow() ;              }}function searchquickwebsitenow() {  var objSearchText = getObj("search");  var objCDBPath = getObj("cdbpath");  var ignoretext = "Search"       if( (objCDBPath != null) && (objSearchText  != null) )     {		if( (objSearchText .value == "") || (objSearchText .value == ignoretext) )      	{	     	 alert("Your Search cannot be processed, please enter a valid search text.");     	  	objSearchText .focus();           }    		else     	{		       var strNewPath = "/" + objCDBPath.value + "/SearchV?SearchView&Query=" + objSearchText .value		       window.location.href = strNewPath;		}	} }function searchadvancedwebsitenow() {  var doc=document.forms[0];   var objQuery1 = doc.query1;   var objQuery2 = doc.query2;   var objQuery3 = doc.query3;      if( (objQuery1 != null) && (objQuery2 != null) && (objQuery3 != null) )   { 	  if( (objQuery1.value == "") && (objQuery2.value == "") && (objQuery3.value == "") )     	{       	 alert("Your Search cannot be processed, at least one search condition must contain a value.");        	 objQuery1.focus();     	}    	else     	{       	doc.submit();		}	}  else  {     alert('Error processing the advance search, please try again later.');   } }function searchadvancedwebsitereset() {  var doc=document.forms[0];   doc.query1.value = "";   doc.query2.value = "";   doc.query3.value = "";   doc.qsortflag1.selectedIndex = 0;   doc.qsortflag2.selectedIndex = 0;   doc.qsortby.selectedIndex = 0;   doc.qsortvariants.checked = false;   doc.qsortfuzzy.checked = false;   doc.qsortmaxr.selectedIndex = 2;return;}function openCalendarDatePicker(fieldx){ var pathname = (window.location.pathname); pathname = pathname.toLowerCase();  var newpath = pathname.substring(0,(pathname.lastIndexOf('.nsf')+5))+'CalendarDateSelect?OpenForm&field=' + fieldx; return window.open( newpath, '', 'width=200,height=210,top=120,left=120' )}function openCreditCardSecurityCodeHelp(y, z) {var pathname = (window.location.pathname);pathname = pathname.toLowerCase();// left and top were added to this function for IE compatibilty,  y=left, z=topwindow.open(pathname.substring(0,(pathname.lastIndexOf('.nsf')+5))+'wDialogCCSC?OpenForm','Help','scrollbars=no,resizable=no,screenX=' + y +',screenY=' + z + ',width=450,height=450' + ',left=' + y +',top=' + z);return;}function hwtViewSelectionJump(strFieldID) {    var objDDL = getObj(strFieldID);    	if(objDDL == null) 	{ 		alert("Error: Unable to locate the HTML item in the document.");		return;	}    else if(objDDL.selectedIndex > 0)    {        window.location = objDDL[objDDL.selectedIndex].value;    }   return;}