function chk_request() {
 var store="";
 var flag;
 flag=0;
//alert("hi");
if(window.document.form1.name.value=='')
 {
   store+=" Name \n";
   flag=1;
 }  
if(window.document.form1.email.value=='')
{
	store+=" Email Address \n";
	flag=1;
}
else
{
		var email=window.document.form1.email.value;
		var regex = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
		var bool_result =regex.test(email);
		if(!bool_result)
		{
			alert("Please enter valid email address");
			return false;
		}
		
		/*var i,o,w,s=window.document.form1.email.value;
		i=s.indexOf("@");
		o=s.indexOf(".");
		if((i=s.indexOf("@"))==-1)
		{
		
			alert('Invalid "Email Id"');
			window.document.form1.email.focus();
			return false;
		}
		if((o=s.indexOf("."))<i)
		{
		alert('Invalid Email Id');
		window.document.form1.email.focus();
		return false;
		}
		var X
		X=s.length;
		if(X<=o+1)
		{
		alert('Invaild "Email Id"');
		window.document.form1.email.focus();
		}*/
}
if(window.document.form1.num_nights.value=='')
{
	store+=" Number of nights \n";
	flag=1;
	}
if(window.document.form1.arr_month.value=='')
{
	store+=" Arrival Month \n";
	flag=1;
	}
if(window.document.form1.arr_year.value=='')
{
	store+=" Arrival Year \n";
	flag=1;
	}
if(window.document.form1.arr_day.value=='')
{
	store+=" Arrival Date \n";
	flag=1;
	}
if(window.document.form1.flex_dates.value=='')
{
	store+=" My travel dates are \n";
	flag=1;
	}
if(window.document.form1.nrOfPeople.value=='')
{
	store+=" How many people? \n";
	flag=1;
	}
if(window.document.form1.contact_by.value=='')
{
	store+=" contact_by \n";
	flag=1;
	}
if(flag==1)
{
	alert("Please Enter Compulsory Fields..\n"+store);
	return false;
	}
else
{
 return true;
}  
} 
