//// declare java script variables
var newCal			// handler to new calendar window
var dateField 		// to store the date field to get or put date from calendar
var curDateValue	// to initialize calendar with current entered date

// This function will open newcalendar.htm in new Modeless Dialog box
function popNewCalendarUp(txtFrom)
{
	var myPath = "../";
	if (arguments.length >= 2) myPath = arguments[1];
	
	dateField = txtFrom;
	curDateValue = txtFrom.value;		
	newCal = window.showModelessDialog(myPath + "javascript/newcalendar.html" ,window, 'dialogHeight: 220px; dialogWidth: 178px; dialogTop: px; dialogLeft: px; edge: Raised; center: Yes; help: No; resizable: No; status: No;')
} 
