function ajaxFunction(func,containerId){
  var ajaxRequest;  
  try{
    ajaxRequest = new XMLHttpRequest();
  } catch (e){
    try{
      ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try{
        ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e){
        alert("Your browser is unable to process Ajax!");
        return false;
      }
    }
  }

  switch (func)
  {
  case "processList":
   processList();
   break  
  }

  var ajaxDisplay = document.getElementById(containerId);

  function processList(){ 
    ajaxRequest.onreadystatechange = function(){
      ajaxDisplay.innerHTML = "<img border=0 src=/images/ajax-loader.gif>";
      if(ajaxRequest.readyState == 4){
        ajaxDisplay.innerHTML = ajaxRequest.responseText;
      }
    }
    		var ML_Email = document.getElementById('ML_Email').value;
    var queryStringCon = "?ML_Email="+ML_Email;
    ajaxRequest.open("POST", "email.add.process.asp"+queryStringCon, true);
    ajaxRequest.send(null); 
  }
}
