//------------------------------------------------------------------------------------------
// Functions to make the Calendar Popup functional:
//	NOTE:  before calling these functions, two variables must be set;
//				formname	- the name of the form for the control that calls the calendar popup
//				control		- the name of the control that the date is to be set
//
//  get_startdate 	- sets the value = "" for the control that calls the calendar popup
//  datechange		- sets the date for the control that initiated the calendar popup\
//
//------------------------------------------------------------------------------------------


	var formname;
	var control;
	
	function get_startdate()
	{
	  window.dateField = eval('document.' + formname + '.' + control);
	  calendar = window.open("../../shared/calendar_pop.cfm","cal","WIDTH=250,HEIGHT=275,top=200,left=300,resizable=yes");}
	

	function datechange(valued)
	{
	//Note: this function called from the calendar pop-up!

		eval('document.' + formname + '.' + control + '.value = ' + "'" + valued + "'");
		
	}
	
