  function changePage() {
  	document.writeln("<a href='"+absoluteWebRoot+"link.cfm?display_page="+document.location+"'><b>Load Menu</b></a>");
  }
  
	function openNewWindow(fileName,windowName,theWidth,theHeight,theScroll) {
		if (document.all) {
		showLeft = parent.document.body.clientWidth - theWidth - 40;
		} else {
		showLeft = 	parent.main.document.width - theWidth - 40;
		}
		window.open(fileName,windowName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+theScroll+",resizable=0,left="+showLeft+",top=10,width="+theWidth+",height="+theHeight);
	}
var TimeOutWaitMilliseconds = 120000; // 2 minutes
var timerID, timeoutUrl, resetTimeoutURL="";

function writeToTimeoutWin(curTimeOut) {
	 var timeout_option = "toolbar=0" + ",location=0" + ",directories=0"
             + ",status=0" + ",menubar=0" + ",scrollbars=0"
             + ",resizable=0"  + ",width=300" + ",height=200";
	var timeout_win = window.open(timeoutPopUpUrl, "TimeOut", timeout_option, true );
}
	
function clearGoToTimeout()  {
 	clearTimeout(timerID);
 	if(this["UITimeoutMilliseconds"] != null) {
		curTimeOut=UITimeoutMilliseconds;
	}
 	setupTimeout(curTimeOut);
}

function goToTimeout(curTimeOut) {
	self.location=timeoutUrl;
	return;
}

function setupTimeout(curTimeOut) {
	window.setTimeout('writeToTimeoutWin(curTimeOut)', curTimeOut);
	timerID=window.setTimeout('goToTimeout(curTimeOut)', curTimeOut+TimeOutWaitMilliseconds); 
}

function showHelp(hlp) {
	window.open(absoluteWebRoot+'../help/help.cfm?h='+hlp,"Help","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,left=0,top=0,width=320,height=275");
}

	function ListFind(list,val,del) {
		if (!del) del=",";
		listArr = list.split(del);
		fnd=0;
		for (l=0; l < listArr.length; l++) {
			if (listArr[l] == val) {
				fnd=l+1;
				break;
			}
		}
		return fnd;
	}

	function ListDeleteAt(list,ind,del) {
		if (!del) del=",";
		listArr = list.split(del);
		list="";
		for (l=0; l < listArr.length; l++) {
			if (l == (ind-1)) txt = "";
			else txt = listArr[l];
			if (txt != "") {
				list += (list.length>0)?del+txt:""+txt;
			}
		}
		return list;
	}

	function ListAppend(list,val,del) {
		if (!del) del=",";
		list += (list.length>0)?del+val:""+val;
		return list;
	}


window.focus();
window.status = '';
