function GoToCalendar(CalName,LinkName,frm,day,month,year) {
		var myFrm;
		var selDate;
		var thisWinFrm;
		
		thisWinFrm=document.forms[frm];
		myFrm=thisWinFrm;
				
		//if(LinkName=='CHECK-IN') {
			selDate=month + " " + year + " " + day
		//}		
		myselDate=selDate.split(' ')
		selDate=''
		
		for(i=0;i<myselDate.length;i++) {
			if(selDate=='') {
				selDate=myselDate[i]
			}
			else {
				selDate=selDate+ '-' +myselDate[i]
			}
		}		
		//calendar_url="Res_Calendar.aspx?formName="+frm+"&formCtrl="+LinkName+"&selDate="+selDate
		calendar_url="Res_Calendar.aspx?formName="+frm+"&formCtrl="+LinkName+"&selDate="+selDate+"&selDate1="+selDate
		
		//var MyCalWindow_Width=window.screen.width/3-60
		//var MyCalWindow_Height=window.screen.height/2-150
		//var MyCalWindow_Width=225;
		//var MyCalWindow_Height=190;
		//var MyCalWindow_Left=400;
		//var MyCalWindow_Top=200;
	
		//this.MyCalWindow_Open=true;
		//MM_openwin(calendar_url,"188px","225px","400px","200px");
		if(navigator.userAgent.indexOf("Firefox")!=-1)
		MM_openwin(calendar_url,"150px","224px","400px","200px");
		else if(navigator.userAgent.indexOf("MSIE")!=-1)
		MM_openwin(calendar_url,"188px","240px","400px","200px");
		else
		MM_openwin(calendar_url,"165px","232px","400px","200px");
		//MyCalWindow=window.open(calendar_url,CalName,"toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+MyCalWindow_Width+",height="+MyCalWindow_Height+",left="+MyCalWindow_Left+",top="+MyCalWindow_Top+"");
	}
	
	function MM_openwin(MM_file,MM_height,MM_width,left,top)
{
   MM_config=""
   MM_config+="toolbar=no,";
   MM_config+="location=no,"
   MM_config+="directories=no,";
   MM_config+="status=no,"
   MM_config+="menubar=no," //Not on Apple Mac for obvious reasons
   MM_config+="scrollbars=no,"
   MM_config+="resizable=no," //Mac windows are always resizable
   MM_config+="copyhistory=no,"
   MM_config+="width="+MM_width+","
   MM_config+="left="+left+","
   MM_config+="top="+top+","
   MM_config+="height="+MM_height
   var MM_win=open(MM_file,"",MM_config);
   MM_win.focus();
}


	function calendarCall(formCtrl,myMonthYear,dtD) {
	 var str=myMonthYear.split(' ');
	 var str1=str[0].slice(0,3);	 
	 putdate(dtD,str1,str[1],formCtrl);
	}
	
