function validateEmail(address) {
  var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
  if(reg.test(address) == false)
    return false;
  return true;
}

function checkSupportForm() {
  if(document.getElementById('support_send_to').value == '') {
    alert('Please choose who to send this email to.');
    return false;
  }
  if(document.getElementById('support_comments').value == '') {
    alert('Please enter some comments or describe your problem.');
    document.getElementById('support_comments').select();
    return false;
  }
  if(validateEmail(document.getElementById('support_from').value) == false) {
    alert('Please enter a valid email address so we can get in touch with you.');
    document.getElementById('support_from').select();
    return false;
  }
  return true;
}
