function captchaEngine()
{
  var nameInput = document.getElementById("contact-name");
  if(nameInput === null)
  {
    return false;
  }
  var companyInput = document.getElementById("contact-company");
  var contactInput = document.getElementById("contact-details");
  var enquiryInput = document.getElementById("contact-enquiry");
  
  nameInput.onfocus = showCaptcha;
  companyInput.onfocus = showCaptcha;
  contactInput.onfocus = showCaptcha;
  enquiryInput.onfocus = showCaptcha;
  
  function showCaptcha()
  {
    document.getElementById("captcha-region").style.display="block";
  }
}
window.onload = captchaEngine;