function showcountry(theForm)
{
	//alert(theForm.Region.value)
	if (theForm.Region.value == 'OTH')
	{
		document.all.showcountry.style.display="";
	}
	else
	{
		document.all.showcountry.style.display="none";
	}
}

function Validate(theForm)
{
   
  if (theForm.Title.value == "")
  {
    alert("Please enter your title.");
    theForm.Title.focus();
    return (false);
  }
  
  if (theForm.FirstName.value == "")
  {
    alert("Please enter your name.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.LastName.value == "")
  {
    alert("Please enter your surname.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Please enter your email address.");
    theForm.Email.focus();
    return (false);
  }
  
 	if (theForm.Email.value != theForm.Email2.value)
	  {
	    alert("Your email address confirmation does not match, please re-enter.");
	    theForm.Email.focus();
	    return (false);
	  }

  if (theForm.Company.value == "")
  {
    alert("Please enter your Company name.");
    theForm.Company.focus();
    return (false);
  }

  if (theForm.Tel1.value == "")
  {
    alert("Please enter your Telephone number.");
    theForm.Tel1.focus();
    return (false);
  }
  
	crucial1 = theForm.Email.value
	crucial2 = crucial1.indexOf ("@")
	crucial3 = crucial1.indexOf(".", crucial1.indexOf ("@"))
	if (crucial3 != -1)
	{
		crucial4 = crucial1.slice(crucial1.indexOf(".", crucial1.indexOf ("@"))+1).length
	}
	crucial5 = crucial1.indexOf("@", crucial1.indexOf ("@")+1)
	//alert(crucial5)
	
	if (crucial2 == -1 || crucial3 == -1 || crucial4 == 0 || crucial5 != -1)
	{
	  	alert("The email address you supplied is invalid - please re-enter it\nin the form of someone@servername.co.za/.com/.org etc.");
	  	document.response.Email.focus();
	  	return (false);
	}
	
  if (theForm.Newsletter(0).checked == true)
  {
	  if (theForm.Region.value == "")
	  {
	    alert("Please select a region.");
	    theForm.Region.focus();
	    return (false);
	  }
	  else if (theForm.Region.value == 'OTH' && theForm.Country.value == "")
	 {
		alert("Please enter your country.");
	    theForm.Country.focus();
	    return (false);
	 }
}

  if (theForm.Newsletter(0).checked == false && theForm.Newsletter(1).checked == false && theForm.Newsletter(2).checked == false)
  {
    alert("Please indicate whether you wish to receive the newsletter.");
    theForm.Comments.focus();
    return (false);
  }
  
  	if (theForm.antispam.value.toUpperCase() != "SEND")
	  {
	    alert("Please type the word 'SEND' to complete your message.");
	    theForm.antispam.focus();
	    return (false);
	  }

	  return (true);
  }

