function ValidateContact(form) {
      with (form) {
        if (!realname.value || !email.value || !question.value) {
          alert("Please fill in all the fields");
          return false;
        } else {
        // validate e-mail address
        with (email) {
          apos = value.indexOf("@");
          dotpos = value.lastIndexOf(".");
          lastpos = value.length - 1;
          if (apos < 1 || dotpos - apos < 2 || lastpos - dotpos > 4 || lastpos - dotpos < 2) {
            alert("Your e-mail address does not appear to be valid.");
            return false;
          } else {
            return true;
          }
        }
      }
    }
  }

function ValidateNewsletter(form) {
  with (form) {
    if (!realname.value || !email.value || !telephone.value) {
      alert("Please fill in all the required fields");
          return false;
        } else {
        // validate e-mail address
        with (email) {
          apos = value.indexOf("@");
          dotpos = value.lastIndexOf(".");
          lastpos = value.length - 1;
          if (apos < 1 || dotpos - apos < 2 || lastpos - dotpos > 4 || lastpos - dotpos < 2) {
            alert("Your e-mail address does not appear to be valid.");
            return false;
          } else {
            return true;
          }
        }
      }
    }
  }

function showImageWindow(imageFileName) {
  window.open('/imageWindow.php?image='+imageFileName, 'imageWindow', 'directories=no,height=200px,width=200px,statusbar=no,toolbar=no,resizable=yes');
}