function validateform()

{
	var exp= /^[ ]+/;
	

  if(document.getElementById("Name").value=="" &&  document.getElementById("phone").value==""  && document.getElementById("Email").value=="" ) {

  alert("Please complete the Contact Us Form!");   

  document.getElementById("Name").focus();

   return false;

 }



if(document.getElementById("Name").value==""){

    alert("Please enter Your Name!");

    document.getElementById("Name").focus();

	return false;

 }



if(document.getElementById("phone").value==""){

  alert("Please enter Your Phone Number!");

  document.getElementById("phone").focus();

  return false;

    

 }

 if(document.getElementById("Email").value==""){

  alert("Please enter the Email Address!");

  document.getElementById("Email").focus();

  return false;

 }

 var email = document.getElementById("Email").value;

 var apos=email.indexOf("@");

 var dotpos=email.lastIndexOf(".");

		if(!email.match(/^[A-Za-z0-9\._\-+]+@[A-Za-z0-9_\-+]+(\.[A-Za-z0-9_\-+]+)+$/))

		{

		alert("This is not a valid email id. Please fill in a valid Email ID!");

		document.getElementById("Email").focus();

		return false;

		} 

		if (apos<1||dotpos-apos<2){ 

        alert("This is not a valid email id. Please fill in a valid Email ID!");

		document.getElementById("Email").focus();

		return false;

		}

 /*if(document.getElementById("url").value==""){

  alert("Please enter the URL!");

  document.getElementById("url").focus();

  return false;

 }

 var url = document.getElementById("url").value;

 if(!url.match(/^(ht|f)tps?:\/\/[a-z0-9-\.]+\.[a-z]{2,4}\/?([^\s<>\#%"\,\{\}\\|\\\^\[\]`]+)?$/))

		{

		alert("This is not a valid URL. Please fill in a valid URL!"  );

		document.getElementById("url").focus();

		return false;

		} 

 var RegExp = /^(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,4}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?$/; 

    if(!RegExp.test(url)){ 

        alert("This is not a valid URL. Please fill in a valid URL!");

		document.getElementById("url").focus();

		return false;

    } 

	  if(document.getElementById("req").value==""){

        alert("Please enter Your Requirement!");

        document.getElementById("req").focus();

        return false;

        }	
*/
		if(document.getElementById("txtNumber").value==""){

        alert("Please enter the Verification code!");

        document.getElementById("txtNumber").focus();

        return false;

        }
		
		if((exp.test(document.getElementById("txtNumber").value)))
		{
			alert("Blank entry not allowed!");
			document.getElementById("txtNumber").focus();
			document.getElementById("txtNumber").select();
			return(false);
		}

return true;

}