function xmlhttpPostTW(strURL) {
	updatepageTW('<img src="images/loading.gif">&nbsp;&nbsp;Processing...');
  var xmlHttpReq = false;
  var self = this;
  // Mozilla/Safari
  if (window.XMLHttpRequest) {
      self.xmlHttpReq = new XMLHttpRequest();
  }
  // IE
  else if (window.ActiveXObject) {
      self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
  }
  self.xmlHttpReq.open('POST', strURL, true);
  self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  self.xmlHttpReq.onreadystatechange = function() {
    if (self.xmlHttpReq.readyState == 4) {
		//alert(self.xmlHttpReq.responseText);
      updatepageTW(self.xmlHttpReq.responseText);
    }
  }

  email=document.getElementById("email").value;
  first=document.getElementById("first").value;
  last=document.getElementById("last").value;
  Field_1_=document.getElementById("Field_1_").value;
  list=document.getElementById("list").value;
  demographics=document.getElementById("demographics").value;
  name_required=document.getElementById("name_required").value;
  cfirm=document.getElementById("cfirm").value;
  showconfirm=document.getElementById("showconfirm").value;

  qstr = 'email='+email+'&first='+first+'&last='+last+'&Field_1_='+Field_1_+'&list='+list+'&demographics='+demographics+'&name_required='+name_required+'&confirm='+cfirm+'&showconfirm='+showconfirm;
    
  self.xmlHttpReq.send(qstr);
}


function updatepageTW(str){
  document.getElementById("addyDiv").innerHTML=str;
}

      
function handleEnterTW (field, event) {
		var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
		if (keyCode == 13) {
			xmlhttpPostTW('sendmailList.php');
			return false;
		} 
		else
		return true;
	}   