function setDateText(field, date) 
	{
	var sTemp = date.toString();
	var sMonth = sTemp.substring(0,2);
	var sDay = sTemp.substring(2,4);
	var sYear = sTemp.substring(4,8);
	if(document.Form1.elements[field].disabled == false)
		document.Form1.elements[field].value = sMonth + "/" + sDay + "/" + sYear;
	}
	
function newWindow(file, window, width, height) 
	{
	var params = "resizable=yes,status=no,width=" + width + ",height=" + height;
  msgWindow=open(file, window, params);
  if (msgWindow.opener == null)
		msgWindow.opener = self;
	msgWindow.focus();
	}
function showCalendar(field) 
	{
	var url = "../calendar.aspx?field=" + field;
	newWindow(url, "calendar", "280", "205");
	}
