function validate(theForm)
{

  if (theForm.Name.value == "")
  {
    alert("Please enter your name.");
    theForm.Name.focus();
    return (false);
  }
if (theForm.Email.value == "")
  {
    alert("Please enter your Email address");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length < 6)
  {
    alert("The Email address you entered is invalid");
    theForm.Email.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@_-.";
  var checkStr = theForm.Email.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and \"@_-.\" characters in the Email field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.ConfirmEmail.value == "")
  {
    alert("Please enter the confirm Email address field");
    theForm.ConfirmEmail.focus();
    return (false);
  }
  if (theForm.ConfirmEmail.value.length < 6)
  {
    alert("The Email address confirmation you entered is invalid");
    theForm.ConfirmEmail.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@_-.";
  var checkStr = theForm.ConfirmEmail.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and \"@_-.\" characters in the confirm Email field.");
    theForm.ConfirmEmail.focus();
    return (false);
  }
   if (theForm.ConfirmEmail.value != theForm.Email.value)
  {
    alert("Your Email addresses do not match");
    theForm.ConfirmEmail.focus();
    return (false);
  }
    if (theForm.Country.value == "")
  {
    alert("Please enter your country.");
    theForm.Country.focus();
    return (false);
  }
  
if (
	theForm.SEO.checked == false &&
	theForm.PPC.checked == false &&
	theForm.Design.checked == false &&
	theForm.Hosting.checked == false &&
	theForm.WebsiteManagement.checked == false
	)
  	{
    alert("Please select at least one of the services options.");
   	 return (false);
  	}
      if (theForm.Url .value == "")
  {
    alert("Please enter your website address.");
    theForm.Url .focus();
    return (false);
  }
  

 
  
   if (theForm.SpamCheck.value == "")
  {
    alert("Please enter the red number.");
    theForm.SpamCheck.focus();
    return (false);
  } 
  
  return (true);
}
