function setDates()
			{
				var today = new Date(new Date().valueOf());
				var tomorrow = new Date(new Date().valueOf() + (1 * 24 * 60 * 60 * 1000));
				document.forms['form1'].txtcheckin.value = today.getMonth()+ 1 + "/" + (today.getDate()) + "/" + today.getFullYear() ;
				document.forms['form1'].txtcheckout.value = tomorrow.getMonth()+ 1 + "/" + (tomorrow.getDate()) + "/" + tomorrow.getFullYear() ;
				
			}
			
			
			function checkoutdate()
			{
				var str= document.forms['form1'].txtcheckin.value;

				var nextstr= new Date(Date.parse(document.forms['form1'].txtcheckin.value) + (1 * 24*60*60*1000));
				var nextday = nextstr.getMonth() + 1 + "/" + nextstr.getDate() + "/" + nextstr.getFullYear() ;
				var cal18 = new CalendarPopup('testdiv1'); 
				cal18.offsetX = 50;
				cal18.offsetY = 0;
				cal18.setCssPrefix("TEST");
				cal18.addDisabledDates(null,str); 
				var nextyear = new Date(new Date().valueOf() + (365 * 24*60*60*1000));
				var enddate= nextyear.getMonth()+ 1 + "/" + nextyear.getDate() + "/" + nextyear.getFullYear() ;
				cal18.addDisabledDates(enddate,null);
				if(document.forms['form1'].txtcheckout.value !="")
				{
					if (nextstr > Date.parse(document.forms['form1'].txtcheckout.value))
					{
					 document.forms['form1'].txtcheckout.value=nextday;
						cal18.select(document.forms['form1'].txtcheckout,'anchor2','M/d/yyyy','1',nextday,document.forms['form1'].txtcheckin.value);
						return false;
					}
					else
					{
					   
						cal18.select(document.forms['form1'].txtcheckout,'anchor2','M/d/yyyy','1',document.forms['form1'].txtcheckin.value);
						return false;
					}
				}
				else
				{
				document.forms['form1'].txtcheckout.value=nextday;
					cal18.select(document.forms['form1'].txtcheckout,'anchor2','M/d/yyyy','1',nextday,document.forms['form1'].txtcheckin.value);
					return false;
				}
 
			}
			function checkindate()
			{
		
				var now = new Date(); 
				var today = new Date(new Date().valueOf()+ (-1 * 24*60*60*1000));
				var startdate= today.getMonth()+ 1 + "/" + (today.getDate()) + "/" + today.getFullYear() ;
		
				var nextyear = new Date(new Date().valueOf() + (200 * 24*60*60*1000));
				var enddate= nextyear.getMonth()+ 1 + "/" + nextyear.getDate() + "/" + nextyear.getFullYear() ;
		
				var cal17 = new CalendarPopup('testdiv1');
				cal17.offsetX = 50;
				cal17.offsetY = 0;
				cal17.setCssPrefix("TEST"); 
				cal17.addDisabledDates(null,startdate); 
				cal17.addDisabledDates(enddate,null);
				
				cal17.select(document.forms['form1'].txtcheckin,'anchor1','M/d/yyyy','0',document.forms['form1'].txtcheckout.value); return false;
			}