//Form Validation
		function echeck(str) {

			var at="@";
			var dot=".";
			var lat=str.indexOf(at);
			var lstr=str.length;
			var ldot=str.indexOf(dot);
			if (str.indexOf(at)==-1){
			   alert("Please check your email address it does not seem to be valid");
			   return false;
			}
			if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
			   alert("Please check your email address it does not seem to be valid");
			   return false;
			}
	
			if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
			    alert("Please check your email address it does not seem to be valid");
			    return false;
			}
	
			 if (str.indexOf(at,(lat+1))!=-1){
			    alert("Please check your email address it does not seem to be valid");
			    return false;
			 }
	
			 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
			    alert("Please check your email address it does not seem to be valid");
			    return false;
			 }
	
			 if (str.indexOf(dot,(lat+2))==-1){
			    alert("Please check your email address it does not seem to be valid");
			    return false;
			 }
			
			 if (str.indexOf(" ")!=-1){
			    alert("Please check your email address it does not seem to be valid");
			    return false;
			 }
	
	 		 return true;		
		}
		
		
		function checkResForm(){
				if (document.forms.hotelres.hotelID.value == "")
				{
					alert('Please select a hotel.');
					return false;
				}  
				else if (document.forms.hotelres.DD1.value == "")
				{
					alert('Please select a check in day.');
					return false;
				}
				else if (document.forms.hotelres.MM1.value == "")
				{
					alert('Please select a check in month.');
					return false;
				}
				else if (document.forms.hotelres.checkoutday.value == "")
				{
					alert('Please select a check out day.');
					return false;
				}
				else if (document.forms.hotelres.DD1MIDU.value == "")
				{
					alert('Please select a check out month.');
					return false;
				}				                                         
				else
				{
					return true;
				}
			}			
			
			
			

			function check_regForm() 
			{
			  f = document.forms.memberRegistration	
			  valid = true; // assume valid
			   if (f.firstname.value.length == 0){ 
					alert('Please enter your first name'); 
					return false;
			   }
				else if (f.lastname.value.length == 0){ 
					alert('Please enter your last name');
			        return false;
				}
			  	else if (f.email.value.length == 0){ 
					alert('Please enter your email');
			        return false; 
				}
				else if (echeck(f.email.value)==false)
				{
					return false;
				}
				else if (f.terms.checked != true){
					alert('Please confirm that you have read the disclaimer.');
					return false;
				}
				else if (f.region.selectedIndex == 0){ 
					alert('Please enter the region closest to you');
			        return false; 
				}
				else
				{
					return true;
				}
			}

			function check_regForm2() 
			{
			  f = document.forms.HDsignUp;
			  valid = true; // assume valid
			   if (f.name.value.length == 0){ 
					alert('Please enter your name'); 
					return false;
			   }
			  	else if (f.email.value.length == 0){ 
					alert('Please enter your email');
			        return false; 
				}
				else if (echeck(f.email.value)==false)
				{
					return false;
				}
				else
				{
					return true;
				}
			}

