<!--
var BrowserName = self.navigator.appName; 
var BrowserVer = parseInt(self.navigator.appVersion,10); 
var BrowserOK = false;
if(BrowserName == "Netscape") {
if (BrowserVer >= 3.0)  BrowserOK=true;
}
else if (BrowserName == "Microsoft Internet Explorer") {
        if (BrowserVer>=3.0) BrowserOK=true;
 
}
 
function validate_form()
{
 if (BrowserOK) 
 {
//This section validates the user has input the first name.
  
  if (document.enquiry.firstname.value == "")
  {
  alert("Please make sure you enter your name");
  document.enquiry.firstname.focus()
  return false;
  }
//This section validates the user has input the last name.
  if (document.enquiry.lastname.value == "")
  {
  alert("Please make sure you enter your surname");
  document.enquiry.lastname.focus()
  return false;
  }
//This section validates the user has input the operating system.
  if (document.enquiry.system.value == "")
  {
  alert("Please make sure you choose your operating system");
  document.enquiry.system.focus()
  return false;
  }
//This section validates the user has input the address.
  if (document.enquiry.address1.value == "")
  {
  alert("Please make sure you enter your address");
  document.enquiry.address1.focus()
  return false;
  }
//This section validates the user has input the postcode.
  if (document.enquiry.postcode.value == "")
  {
  alert("Please make sure you enter your postcode");
  document.enquiry.postcode.focus()
  return false;
  }
//This section validates the user has input the phone number.
  if (document.enquiry.home_phone.value == "")
  {
  alert("Please make sure you enter your phone number");
  document.enquiry.home_phone.focus()
  return false;
  }
//This section validates the user has input the email address.
  if (document.enquiry.email.value.indexOf("@")==-1 || document.enquiry.email.value.indexOf(".")==-1 || document.contact_form.form_email.value.indexOf(" ")!=-1 || document.contact_form.form_email.value.length<6)
   {
  alert("You have either failed to enter or typed an invalid email adress, please check and try again.");
  document.enquiry.email.focus()
  return false;
  }
//This section validates the user has input the comments box.
  if (document.enquiry.comments.value == "")
  {
  alert("Please make sure you enter the nature of your enquiry.");
  document.enquiry.comments.focus()
  return false;
  }
 
   else
   document.enquiry.submit();
   }
 }
 

// End of hiding from non-JavaScripting enabled browsers -->
