////////
// PLEASE NOTE:
// This include is used in Salon Solutions.
////////


////////
// Functions for opening the Popup calendar
////////
function GetDate(CtrlName, CtrlValue){
	/* Use Javascript method (window.open) to PopUp a new window    
		which contain a Calendar Control. In the meantime, we'll    
		pass the Parent Form Name and Request Control Name in the QueryString!      
	*/        
	ChildWindow = window.open('/inc/Calendar.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName + '&CtrlValue=' + CtrlValue, "PopUpCalendar", "width=240,height=241,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");    
}

function GetConstrainedDate(CtrlName, CtrlValue){
	ChildWindow = window.open('/inc/CalendarCurrentMonth.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName + '&CtrlValue=' + CtrlValue, "PopUpCalendar", "width=270,height=300,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");    
}  


function CheckWindow(){
	ChildWindow.close();   
}
