// JavaScript Document

function validate_enquiry(theForm)
{

  if (theForm.name.value == "")
  {
    alert("What's your full name?");
    theForm.name.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("What's your email address?");
    theForm.email.focus();
    return (false);
  }

  if (theForm.message.value == "")
  {
    alert("Please tell us how we can help you.");
    theForm.message.focus();
    return (false);
  }

  return (true);
}

function validate_callback(theForm)
{

  if (theForm.name.value == "")
  {
    alert("Who should we ask for when we call?");
    theForm.name.focus();
    return (false);
  }

  if (theForm.telephone.value == "")
  {
    alert("We need your telephone number!");
    theForm.telephone.focus();
    return (false);
  }

  return (true);
}

function validate_newsletter(theForm)
{

  if (theForm.email.value == "")
  {
    alert("We can't send you our newsletter without your email address!");
    theForm.email.focus();
    return (false);
  }

  return (true);
}