	function submitEmail(e) {

      var target = document.getElementById("emaillist");
      if(target.email_email.value == "")
      {
      	alert("Email is blank.  Please check and re-submit.");
      	return;
    	}
      else if(target.email_email.value != target.email2.value)
      {
      	alert("Email and Confirmation Email do not match. Please check and re-submit.");
      	return;
    	}
   
      /* Check if this form is already in the process of being submitted. 
       * If so, don't allow it to be submitted again. 
      if (target.ajaxInProgress) return;*/

      /* Set up the request */
      var xmlhttp =  new XMLHttpRequest();
      xmlhttp.open('POST', 'http://www.talleymanufacturing.com/cgi-bin/public_controller.cgi', true);
      
      /* The callback function */
      xmlhttp.onreadystatechange = function() {
          if (xmlhttp.readyState == 4) {
              if (xmlhttp.status == 200)
                  showResponse(xmlhttp.responseXML, "");
              else
              		document.getElementById('emailsub').innerHTML = "Error.  Please refresh and try again.";
          }
      }

      /* Send the POST request */
      xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
			xmlhttp.send("view=ajax_email&email_fullname=" + target.email_fullname.value + 
				"&email_email=" + target.email_email.value);
			
      /* Add temporary feedback that the request has been sent */
      document.emaillist.email_fullname.disabled=true;
      document.emaillist.email_email.disabled=true;
      document.emaillist.email2.disabled=true;
      document.emaillist.emailsubmit.disabled=true;
      
      document.getElementById('urlimg').innerHTML = "";
      document.getElementById('emailsubtoo').innerHTML = "";
      
      document.getElementById('emailsub').style.textAlign = "center";
      document.getElementById('emailsub').innerHTML = "<img src='http://www.talleymanufacturing.com/img/sub/ajax-loader.gif'>";
      
      document.getElementById('emailsubtoo').style.textAlign = "center";
      document.getElementById('emailsubtoo').innerHTML = "[Registering new community member]";
      //target.ajaxInProgress = true;

      return false;
  }
  
  function showResponse(responseXML, target) {

       // Free up the form to go again
      document.getElementById('emailsub').innerHTML = "";
      document.getElementById('emailsubtoo').style.textAlign = "left";
      document.getElementById('emailsubtoo').innerHTML = "Thank You for joining our mailing list!  You will receive exiting new product updates soon.  Remember, you can cancel your subscription at any time.";
      //target.ajaxInProgress = false;
  }
  