function submit_email_form2() {
  if($F("contact2_name") == '') {
	alert("Please enter your name");
  } else if($F("contact2_email") == '') {
	alert("Please enter your email");
  } else {

  var url = '/faq/submit_email_form.php';

  var pars = 'name=' + $F("contact2_name") + '&email=' + $F("contact2_email") + '&phone=' + $F("contact2_phone") + '&contact_me=' + $F("contact2_me") + '&register=' + $F("contact2_register") + '&division_id=' + $F("division_id") + '&from=' + $F("inquiry_from_email") + '&to=' + $F("inquiry_to_email") + '&cc=' + $F("cc") + '&bcc=' + $F("bcc") + '&email_sig=' + $F("email_sig") + '&site=' + $F("site") + '&contact_us_phone=' + $F("contact_us_phone") + '&show_cp=' + $F("show_cp") + '&referer=' + $F("referer");

  var myAjax = new Ajax.Request(
	url, 
	{
  	  method: 'get', 
	  parameters: pars, 
	  onComplete: showResponse
	});

  }
}
function submit_email_form() {
  if($F("contact_name") == '') {
	alert("Please enter your name");
  } else if($F("contact_email") == '') {
	alert("Please enter your email");
  } else {

  var url = '/faq/submit_email_form.php';

  var pars = 'name=' + $F("contact_name") + '&email=' + $F("contact_email") + '&phone=' + $F("contact_phone") + '&contact_me=' + $F("contact_me") + '&register=' + $F("contact_register") + '&comments=' + $F("contact_comments") + '&division_id=' + $F("division_id") + '&from=' + $F("inquiry_from_email") + '&to=' + $F("inquiry_to_email") + '&cc=' + $F("cc") + '&bcc=' + $F("bcc") + '&email_sig=' + $F("email_sig") + '&site=' + $F("site") + '&contact_us_phone=' + $F("contact_us_phone") + '&show_cp=' + $F("show_cp") + '&referer=' + $F("referer");

  var myAjax = new Ajax.Request(
	url, 
	{
  	  method: 'get', 
	  parameters: pars, 
	  onComplete: showResponse
	});

  }
}

function showResponse(originalRequest) {
  //put returned XML in the textarea
  $('result').innerHTML = originalRequest.responseText;
}

