function checkform1() 
{

if(document.contact.name.value == "")

{

alert("Please Enter the Name Field");

document.contact.name.focus();

return false;

}
if(document.contact.name.value.indexOf("emrexperts")!=-1)
{

			  alert("emrexperts is not allowed !");

			  document.contact.name.value="";

			  document.contact.name.focus();

			  return false;
}

/////////
 if(document.contact.name.value!="")
 {
	     str=document.contact.name.value;
		 if(str.indexOf("<script")!=-1)
		 {
			  alert("<script> tags are strictly not allowed !");
			  document.contact.name.value="";
			  document.contact.name.focus();
			  return false;
		 }
}
///////
if(document.contact.phone.value!="")
{
str=document.contact.phone.value;

		 if(str.indexOf("<script")!=-1)
		{

			  alert("<script> tags are strictly not allowed !");

			  document.contact.phone.value="";

			  document.contact.phone.focus();

			  return false;
		}
		 if(str.indexOf("emrexperts")!=-1)
		{

			  alert("emrexperts is not allowed !");

			  document.contact.phone.value="";

			  document.contact.phone.focus();

			  return false;
		}
}
if(!isNaN(document.contact.name.value)){
	  alert("Enter a valid Name");
	  document.contact.name.value="";
	  document.contact.name.focus();
	  return false;
}

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

alert("Please complete the Telephone field");

document.contact.phone.focus();

return false;
}
//if(!IsNumeric(document.contact.phone.value)){
	//  alert("Telephone Number must be in numbers");
	//  document.contact.phone.focus();
	//  return false;
//}

if(document.contact.email.value == "")

{

alert("Please complete the email field");

document.contact.email.focus();

return false;

}
///////
if(document.contact.email.value!= "")

{

	     str=document.contact.email.value;

		 if(str.indexOf("<script")!=-1)

		 {

			  alert("<script> tags are strictly not allowed !");

			  document.contact.email.value="";

			  document.contact.email.focus();

			  return false;

		 }
		  if(str.indexOf("emrexperts")!=-1)
		  {

			  alert("emrexperts is not allowed !");

			  document.contact.email.value="";

			  document.contact.email.focus();

			  return false;
		 }


}
if(!isEmail(document.contact.email.value))

{

alert("Please Check the Email Format");

document.contact.email.focus();

return false;

}
/////
if(document.contact.company.value!= "")

{

		 str=document.contact.company.value;

		 if(str.indexOf("<script")!=-1)

		 {

			  alert("<script> tags are strictly not allowed !");

			  document.contact.company.value="";

			  document.contact.company.focus();

			  return false;

		 }
		 if(str.indexOf("emrexperts")!=-1)
		  {

			  alert("emrexperts.com is not allowed !");

			  document.contact.company.value="";

			  document.contact.company.focus();

			  return false;
		 }


}
/////////////
//For restricting script tags
if(document.contact.address.value!= "")

{

	     str=document.contact.address.value;

		 if(str.indexOf("<script")!=-1)

		 {

			  alert("<script> tags are strictly not allowed !");

			  document.contact.address.value="";

			  document.contact.address.focus();

			  return false;

		 }
		 if(str.indexOf("emrexperts")!=-1)
		  {

			  alert("emrexperts is not allowed !");

			  document.contact.address.value="";

			  document.contact.address.focus();

			  return false;
		 }


}


//For restricting script tags
//For restricting script tags
if(document.contact.city.value!= "")

{

	     str=document.contact.city.value;

		 if(str.indexOf("<script")!=-1)

		 {

			  alert("<script> tags are strictly not allowed !");

			  document.contact.city.value="";

			  document.contact.city.focus();

			  return false;

		 }
		 if(str.indexOf("emrexperts")!=-1)
		  {

			  alert("emrexperts is not allowed !");

			  document.contact.city.value="";

			  document.contact.city.focus();

			  return false;
		 }


}


//For restricting script tags
if(document.contact.state.value!= "")

{

	     str=document.contact.state.value;

		 if(str.indexOf("<script")!=-1)

		 {

			  alert("<script> tags are strictly not allowed !");

			  document.contact.state.value="";

			  document.contact.state.focus();

			  return false;

		 }
		 if(str.indexOf("emrexperts")!=-1)
		  {

			  alert("emrexperts is not allowed !");

			  document.contact.state.value="";

			  document.contact.state.focus();

			  return false;
		 }


}


//For restricting script tags
//For restricting script tags
if(document.contact.zip.value!= "")

{

	     str=document.contact.zip.value;

		 if(str.indexOf("<script")!=-1)

		 {

			  alert("<script> tags are strictly not allowed !");

			  document.contact.zip.value="";

			  document.contact.zip.focus();

			  return false;

		 }
		 if(str.indexOf("emrexperts")!=-1)
		  {

			  alert("emrexperts is not allowed !");

			  document.contact.zip.value="";

			  document.contact.zip.focus();

			  return false;
		 }


}


//For restricting script tags
//For restricting script tags
if(document.contact.billing.value!= "")

{

	     str=document.contact.billing.value;

		 if(str.indexOf("<script")!=-1)

		 {

			  alert("<script> tags are strictly not allowed !");

			  document.contact.billing.value="";

			  document.contact.billing.focus();

			  return false;

		 }
		 if(str.indexOf("emrexperts")!=-1)
		  {

			  alert("emrexperts is not allowed !");

			  document.contact.billing.value="";

			  document.contact.billing.focus();

			  return false;
		 }


}


//For restricting script tags
//For restricting script tags
if(document.contact.comments.value!= "")

{

	     str=document.contact.comments.value;

		 if(str.indexOf("<script")!=-1)

		 {

			  alert("<script> tags are strictly not allowed !");

			  document.contact.comments.value="";

			  document.contact.comments.focus();

			  return false;

		 }
		 if(str.indexOf("emrexperts")!=-1)
		  {

			  alert("emrexperts is not allowed !");

			  document.contact.comments.value="";

			  document.contact.comments.focus();

			  return false;
		 }


}

if(document.contact.zip.value != "")

{

if(!IsNumeric(document.contact.zip.value))

{

alert("Enter a Numeric value for Zip/Postal Code");

document.contact.zip.focus();

return false;

}

}


else { return true; }

}

function IsNumeric(str)	

	 {

	 	var no=true,i,s1;	

		var Chr = "0123456789._-";

		for (i = 0; i < str.length ; i++)

      	{ 

      		s1= str.charAt(i); 

      		if (Chr.indexOf(s1) == -1) 

         	{

         		no = false;

         	}

      	}

		if(no==false)

		{

			return false;

		}

		else

		{

			return true;

		}

	 }





/*function checkform1() {

if(document.contact.name.value == "")

{

alert("Please Enter the Name Field");

document.contact.name.focus();

return false;

}

if(!isNaN(document.contact.name.value)){
	alert("Please Enter Valid Name");
	document.contact.name.focus();
	return false;
}




if(document.contact.email.value == "")

{

alert("Please complete the email field");

document.contact.email.focus();

return false;

}

if(!isEmail(document.contact.email.value))

{

alert("Please Check the Email Format");

document.contact.email.focus();

return false;

}

if(document.contact.zip.value != "")

{

if(!IsNumeric(document.contact.zip.value))

{

alert("Enter a Numeric value for Zip/Postal Code");

document.contact.zip.focus();

return false;

}

}


else { return true; }

}*/






