
function timeStamp() {
	// Create a unique timeStamp --->
	var now = new Date()	// make a unique id for an href to force browser to reload it
							// (otherwise, browser may try to reload this page from cache)
	return "tstamp=" + now.getTime()
}

function popUp3 ( url, width, height, windowTitle, reloadWin ) {	
			// reloadWin = 1 means to reload this popup window, otherwise = 0
	if (url.indexOf("?") == -1)
		url = url + "?" + timeStamp()
	else
		url = url + "&" + timeStamp()

   var newWind = window.open( url ,'remote', 'height='+height+',width='+width+  'toolbar=no,location=no,dependent=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,left=50,top=50');
	if (!newWind) {
		alert('ERROR: Unable to open ' + windowTitle + ' window.')
		return;
	}
	if (newWind.opener == null ) newWind.opener = window;    
	if (newWind) {
		//newWind.location.href=url
		newWind.focus()
		if (reloadWin) newWind.location.reload(1)
	}
   //return newWind
}

function displayDateCalc() {
	popUp3("dateCalc.cfm", 650, 220, "Date Calculator", 0)
}	

function selectGoTo (menu) {
	var i = menu.selectedIndex
	if (i > 0) {	// 0 = "goto:" label
		gotoLoc = menu[i].value
		menu.selectedIndex = 0
		window.location.href = gotoLoc
	}
}
