function isValidEMail(fld) {
  var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;
  if (filter.test(fld.value)) return true;
  else return false;
}

function validateInfoRequest( trans) {
  var valid = true;
  var alertStr = "Please correct the following:";
  var i = 1;
  if ( isEmpty(document.edit['dc.request.xml.companyName']) ) {
      alertStr += "\n" + i++ + ". You have not entered your Company Name.";
      valid = false;
  }
  if ( isEmpty(document.edit['dc.request.xml.yourName']) ) {
      alertStr += "\n" + i++ + ". You have not entered your Name.";
      valid = false;
  }
  if ( isEmpty(document.edit['dc.request.xml.companyAddress']) ) {
      alertStr += "\n" + i++ + ". You have not entered your Company Address.";
      valid = false;
  }
  if ( isEmpty(document.edit['dc.request.xml.companyCityStateZip']) ) {
      alertStr += "\n" + i++ + ". You have not entered your Company City, State, zip.";
      valid = false;
  }
  if ( isEmpty(document.edit['dc.request.xml.telephone']) ) {
      alertStr += "\n" + i++ + ". You have not entered your telephone number.";
      valid = false;
  }
  if ( !isValidEMail(document.edit['dc.request.xml.email'])  ) {
      alertStr += "\n" + i++ + ". You have not entered a valid Email Address.";
      valid = false;
  }

  if (valid) {
    name = document.edit['dc.request.xml.yourName'];
    email = document.edit['dc.request.xml.email'];
    postPage('edit', 'EmailConfirmation' + trans);
  } else {
    alert( alertStr );
  }
}
