function checkform(form) 
{ 
  var CompanyName=form.company;
  var Address1=form.addr1;
  var City=form.city;
  var State=form.state;	
  var Country=form.country;
  var TelephoneNo=form.maintel;
	
  var Postalcode=form.postalcode;
  
  var FaxNo=form.FaxNo;
  var Website=form.website;
  var contactName=form.contactname;
  var Design=form.contacttitle;
  var Phone=form.contactphone;
  var Email=form.contactemail;
  var Service=form.solutiondesc;
  var Associates=form.valueadd;

  if(CompanyName.value.length==0)
  {
	  alert("Company Name is not Left Blank");
	  CompanyName.focus();
	  return false;
  }

  if(Address1.value.length==0)
  {
      alert("Address is Not Left Blank");
      Address1.focus();
      return false;
  }

  if(City.value.length==0)
  {
	  alert("City is not Left Blank");
	  City.focus();
	  return false;
  }
  if(State.value.length==0)
  {
       alert("State is Not Left Blank");
	   State.focus();
	   return false;
  } 
  if(isNaN(Postalcode.value)==true)
  {
       alert("Enter Numeric Only in Postal Code");
	   Postalcode.value="";
	   Postalcode.focus();
	   return false;  
  }


  if(Country.value.length==0)
  {
       alert("Country is Not Left Blank");
	   Country.focus();
	   return false;
  } 
  if(TelephoneNo.value.length==0)
  {
		alert("TelephoneNo is Not Left Blank");
		TelephoneNo.focus();
		return false;
   }
   if(isNaN(TelephoneNo.value.replace("-",""))==true)
   {
       alert("Enter Numeric Only in TelephoneNo");
	   TelephoneNo.value="";
	   TelephoneNo.focus();
	   return false;  
   }
	
   if(isNaN(FaxNo.value.replace("-",""))==true)
   {
       alert("Enter Numeric Only in FaxNo");
	   FaxNo.value="";
	   FaxNo.focus();
	   return false;  
   }
   if(Website.value.length>0)
   {
  	var WebName=Website.value.toUpperCase();
	if(WebName.search("WWW.")!==0)
	{
       alert("Website Name must begin with WWW.");
	   Website.value="";
	   Website.focus();
	   return false;  
	}
   }

	//Website.value.toUppercase()

	if(contactName.value.length==0)
	{
		alert("contactName is Not Left Blank");
		contactName.focus();
		return false;
	}

	if(Design.value.length==0)
	{
		alert("Design is Not Left Blank");
		Design.focus();
		return false;
	}

	if(Phone.value.length==0)
	{
		alert("Mobile No. is Not Left Blank");
		Phone.focus();
		return false;
	}

	if(isNaN(Phone.value.replace("-",""))==true)
   {
       alert("Enter Numeric Only in Mobile No");
	   Phone.value="";
	   Phone.focus();
	   return false;  
   }
	if(Email.value.length==0)
	{
		alert("Email is Not Left Blank");
		Email.focus();
		return false;
	}
	if(Email.value.search("@")==-1)
	{
		alert("Email address is not in correct Format");
		Email.value="";
		Email.focus();
		return false;			
	}

	if(Service.value.length==0)
	{
		alert("Service is Not Left Blank");
		Service.focus();
		return false;
	}

	if(Associates.value.length==0)
	{
		alert("Associates is Not Left Blank");
		Associates.focus();
		return false;

	}




} 


