function check()
{


    if (document.contact_form.category.value == "select")
    {
        alert("Select the Business category.");
		document.contact_form.category.focus();
       return false;
    }
	
	if (document.contact_form.Country.value == "0")
    {
        alert("Select the Country.");
		document.contact_form.Country.focus();
       return false;
    }
	
	if ( document.contact_form.title.value == "" )
    {
        alert ( "Please fill in the 'Business Name' box." );
		document.contact_form.title.focus();
       return false;
		
    }
	
	//if ( document.contact_form.address.value == "" )
//    {
//        alert ( "Please fill in the 'Address' box." );
//		document.contact_form.address.focus();
//        return false;
//	 }
//	
//	if ( document.contact_form.city.value == "" )
//    {
//        alert ( "Please fill in the 'City' box." );
//		document.contact_form.city.focus();
//        return false;
//	 }
//	
//	if ( document.contact_form.state.value == "" )
//    {
//        alert ( "Please fill in the 'State' box." );
//		document.contact_form.state.focus();
//        return false;
//	 }
	
//	if ( document.contact_form.country.value == "select" )
//    {
//        alert ( "Please fill in the 'Country' box." );
//		document.contact_form.country.focus();
//        return false;
//	 }
//	 
//	
//
//
//	if ( document.contact_form.zip.value == "" )
//    {
//        alert ( "Please fill in the 'Zip' box." );
//		document.contact_form.zip.focus();
//        return false;
//	 }
//	 
//	 if(document.contact_form.zip.value != ""  && isNaN(document.contact_form.zip.value))
//
//                                             {
//
//                                                        alert('Please enter the valid zip code.');
//
//                                                        document.contact_form.zip.focus();
//
//                                                        return false;
//
//                                             }
//	 
//	
//	
//	if ( document.contact_form.phone.value == "" )
//    {
//        alert ( "Please fill in the Telephone box." );
//		document.contact_form.phone.focus();
//       return false;
//	 }
//	 
//	 
//	 if(document.contact_form.phone.value != ""  && isNaN(document.contact_form.phone.value))
//
//                                             {
//
//                                                        alert('Please enter the valid Telephone Number.');
//
//                                                        document.contact_form.phone.focus();
//
//                                                        return false;
//
//                                             }



/*if(document.contact_form.food[0].checked == false &&
	    document.contact_form.food[1].checked == false && document.contact_form.food[2].checked == false && document.contact_form.food[3].checked == false && document.contact_form.food[4].checked == false && document.contact_form.food[5].checked == false && document.contact_form.food[6].checked == false && document.contact_form.food[7].checked == false && document.contact_form.food[8].checked == false && document.contact_form.food[9].checked == false){
	alert("You didn\'t choose any of the Food Alergic");
return false;
} 

if (( document.contact_form.food[9].checked == true) && (document.contact_form.oth.value == "") )
    {
        alert ( "Please fill in the Other Box." );
		document.contact_form.oth.focus();
        return false;
}
	
if ( document.contact_form.food.value == "select")

{
        alert ( "Select the Food Alergic to you." );
		document.contact_form.food.focus();
        return false;
	 }
*/	 
	

	if ( document.contact_form.post.value == "" )
    {
        alert ( "Please fill in the Review box." );
		document.contact_form.post.focus();
        return false;
	 }
	if ( document.contact_form.captchaval1.value == "" )
    {
        alert ( "Please fill in Verification Code box." );
		document.contact_form.captchaval1.focus();
        return false;
	 }
	
else if(document.contact_form.captchaval1.value!=document.contact_form.captchaval.value)
		 {
			alert ( "Please try Verification Code again" );
			document.contact_form.captchaval1.focus();
			return false;
		 }
	

	//if ( document.contact_form.username.value == "" )
//    {
//        alert ( "Please fill in the Screen Name box." );
//		document.contact_form.username.focus();
//        return false;
//    }
	
	if ( document.contact_form.term.checked == false )
    {
        alert ( "Please check Terms & Conditions box");
	        return false;
    }
	
	
	

    return true;
}