// JavaScript Document
<!--
function checkForm()
{
  if (document.contactForm.firstname.value=="")
  {
    alert("Please enter your first name.");
    document.contactForm.firstname.focus();
    return(false);
  }
  if (document.contactForm.lastname.value=="")
  {
    alert("Please enter your last name.");
    document.contactForm.lastname.focus();
    return(false);
  }
  
  //start content validation
  
  if (document.contactForm.email.value=="")
  {
    alert("Please enter your email address.");
    document.contactForm.email.focus();
    return(false);
  }

  //validate the email content
  	var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒšœŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ0123456789-@_-.";
	var checkStr = contactForm.email.value;
	var allValid = true;
	amp = false;
	dot = false;
			  
	for (i = 0;  i < checkStr.length;  i++)
	{
	  peachy=false
	  ch = checkStr.charAt(i);
	  for (j = 0;  j < checkOK.length;  j++)
	  {
	    if (ch == checkOK.charAt(j))
	    {
	  	peachy= true
	  	if (ch == '@')
	  	{
	  	amp = true;}
	  	if (ch == '.')
	  	{
	  	dot = true;}
	  	 if (!peachy)
	  	 {
	  		allValid = false;
	  	 }
	     }
	   }
	}
	if (!allValid)
	{
	  alert("Please enter only letter, digit and \"@_-.\" characters in the \" Email\" field.");
	  contactForm.email.focus();
	  return (false);
	}

	if (!amp)
	{
	  alert("Please enter an \"@\" in the \" Email\" field.");
	  contactForm.email.focus();
	  return (false);
	}
	if (!dot)
	{
	  alert("Please enter a \".\" in the \" Email\" field.");
	  contactForm.email.focus();
	  return (false);
	}

  //check for telephone number

  if (document.contactForm.telephone.value=="")
  {
    alert("Please enter your best contact telephone number.");
    document.contactForm.telephone.focus();
    return(false);
  }
  
  //validate the telephone number content

  var checkOK = "1234567890()+- ";
  var checkStr = contactForm.telephone.value;
  var allValid = 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 numerical characters for your telephone number.");
    contactForm.telephone.focus();
    return (false);
  }

  //end content validation
  
  if (document.contactForm.company.value=="")
  {
    alert("Please enter your company name.");
    document.contactForm.company.focus();
    return(false);
  }
  if (document.contactForm.enquiry.value=="")
  {
    alert("Please enter your enquiry.");
    document.contactForm.enquiry.focus();
    return(false);
  }
  return(true);
}
//-->