function GetDate(CtrlName, txtField) {
	/****************************************************
	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('calendar.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName + '&txtField=' + txtField, "PopUpCalendar", "width=210,height=180,toolbars=no,scrollbars=no,status=no,resizable=no");
}

function CheckWindow() {
	ChildWindow.close();
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function DatePicker(thisForm,thisControl) 
		{		
			var url = "../UserControls/Calendar.aspx?FormName="+thisForm+"&ControlName="+thisControl;
			var w   = 252;
			var h   = 229; 
			if (document.all)var xMax = screen.width, yMax = screen.height;
			else
			{ if (document.layers) var xMax = window.outerWidth, yMax = window.outerHeight;
			else      var xMax = 640, yMax=480;
			}
				if (w>xMax) w = xMax * .9;
					if (h>yMax) h = yMax * .9;
					var l = (xMax - w)/2, t = (yMax-h)/2;
						handle_PUH = window.open(url,"DatePicker",'screenX='+l+',left='+l+',screenY='+t+',top='+t+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,fullscreen=0,width='+w+',height='+h);
			}
			