function onvalitation()
			{
					var arrHr = window.document.Form1.confno.value;
					for(var j=0;j<arrHr.length;j++)
					{
						if((arrHr.charAt(j)>="a" && arrHr.charAt(j)<="z") || (arrHr.charAt(j)>="A" && arrHr.charAt(j)<="Z") || (arrHr.charAt(j)>="0" && arrHr.charAt(j)<="9"))
							;
						else
						{
							alert("Please Enter Correct Confirmation Number ");
							document.getElementById("confno").focus(); 
							return false;
						}	
					}	
					
					var arrHr = window.document.Form1.TextBoxLN.value;
					for(var j=0;j<arrHr.length;j++)
					{
						if((arrHr.charAt(j)>="a" && arrHr.charAt(j)<="z") || (arrHr.charAt(j)>="A" && arrHr.charAt(j)<="Z") || arrHr.charAt(j)== " " || (arrHr.charAt(j)>="0" && arrHr.charAt(j)<="9"))
							;
						else
						{
							alert("Last Name accepts only Numbers and Alphabets");
							window.document.Form1.TextBoxLN.focus(); 
							return false;
						}	
					}	
				
					
			    /*
			    if (IsNumeric(window.document.Form1.checkIn.value) == false) 
				{
					alert("Please check - non numeric value in Check In Date !");
					document.getElementById("checkIn").focus();
					return false;
				}
				if (IsNumeric(window.document.Form1.checkOut.value) == false) 
				{
					alert("Please check - non numeric value in Check Out Date !");
					document.getElementById("checkOut").focus();
					return false;
				}
				*/
				function IsNumeric(strString)
				//  check for valid numeric strings	
				{
				var strValidChars = "0123456789./ ";
				var strChar;
				var blnResult = true;

				if (strString.length == 0) return false;

				//  test strString consists of valid characters listed above
				for (i = 0; i < strString.length && blnResult == true; i++)
					{
					strChar = strString.charAt(i);
					if (strValidChars.indexOf(strChar) == -1)
						{
						blnResult = false;
						}
					}
				return blnResult;
				}						
								 
			 
			 if((document.getElementById("confno").value=="")&&(document.getElementById("TextBoxLN").value=="")&& (document.getElementById("hotelid").value==""))
               {
	            alert("Please submit a Confirmation Number (or) Last Name,Hotel Name,Check in date,Check out date");
	            document.getElementById("confno").focus(); 
	            return	false
               }
             else
             {
             if(document.getElementById("confno").value!="")
               {
	             return true
	           }
             else
                {     
                 if(document.getElementById("TextBoxLN").value=="")
                {
                document.getElementById("hotelid");
                alert("Please Select a Last Name");
                return false
                }          
                if(document.getElementById("hotelid").value=="")
                {
                document.getElementById("hotelid");
               alert("Please Select a Hotel Name");
                return false
                }    
                				      
                if (Date.parse(document.getElementById("checkIn").value) < Date.parse('<%=txtCIJS%>'))
                    {
                      alert("You can enter your preferences at least 24 hours prior to your scheduled Check-In.");
                      document.getElementById("checkIn").focus();
                      return false;
                    } 
                    else {
                    if(Date.parse(document.getElementById("checkOut").value) <= Date.parse(document.getElementById("checkIn").value))
                    {
                     alert("Departure date is prior to Check in date!!! Please re-enter");
                     document.getElementById("checkOut").focus();
                     return false;
                    }  
                    else
                    {
                      return true
                    }
                   }              
			    }
			  }
		  }								

