
function GetDate(ActID, TgID, CtrlName, defaultDate) {
	/****************************************************

	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!

	*****************************************************/

	var newPosX = 0, newPosY = 0;

	if (document.all) {
		newPosX = window.screenLeft + 400;
		newPosY = window.screenTop + 100;
	}
	else if (document.layers) {
		newPosX = window.screenX + 400;
		newPosY = window.screenY + 100;
	}

	ChildWindow = window.open('Popup_Calendar.aspx?ActID=' + ActID + '&TgID=' + TgID + '&FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName + '&defaultDate=' + defaultDate, 'PopUpCalendar', 'width=270,height=270,top=' + newPosY + ',left=' + newPosX + ',screenX=' + newPosX + ',screenY=' + newPosY + ',toolbars=no,scrollbars=no,status=no,resizable=no');
}

function GetHotelInfoDate(CtrlName, defaultDate) {
	/****************************************************

	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!

	*****************************************************/

	var newPosX = 0, newPosY = 0;

	if (document.all) {
		newPosX = window.screenLeft + 400;
		newPosY = window.screenTop + 100;
	}
	else if (document.layers) {
		newPosX = window.screenX + 400;
		newPosY = window.screenY + 100;
	}

	ChildWindow = window.open('Popup_Calendar.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName + '&defaultDate=' + defaultDate, 'PopUpCalendar', 'width=270,height=270,top=' + newPosY + ',left=' + newPosX + ',screenX=' + newPosX + ',screenY=' + newPosY + ',toolbars=no,scrollbars=no,status=no,resizable=no');
}

