// JavaScript Document

function req_submit() {
  updateTextArea("textarea1");
  if(document.frm_data.textarea1.value   == "") alert("TEXTAREA IS BLANK");
  else document.forms.frm_data.submit();
}

function openChild(file,window) {
	childWindow=open(file,window,'resizable=yes,width=650,height=500');
	if (childWindow.opener == null) childWindow.opener = self;
}

function refreshParent() {
  window.opener.location.href = window.opener.location.href;
  if (window.opener.progressWindow)
    window.opener.progressWindow.close();
  window.close();
}
function ContactFormValidator(theForm){
  if (document.getElementById('frm_name').value == "") {
    alert("Please enter a value for the \"Your Name\" field.");
    document.getElementById('frm_name').focus();
    return (false);
  }
  
  if (document.getElementById('frm_email').value == "") {
    alert("Please enter a value for the \"Your E-mail\" field.");
    document.getElementById('frm_email').focus();
    return (false);
  }
  
  if (document.getElementById('frm_office').value == "") {
    alert("Please enter a value for the \"Office\" field.");
    document.getElementById('frm_office').focus();
    return (false);
  }
  
  if (document.getElementById('frm_msg').value == "") {
    alert("Please enter a value for the \"Message\" field.");
    document.getElementById('frm_msg').focus();
    return (false);
  }
  
}

