// check if member email exist in DB for new account
function ajaxFunction()
{
var xmlHttp;
var m_email=document.getElementById("email").value;


try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.form_na.hid.value=xmlHttp.responseText;
      }
    }
  xmlHttp.open("GET","member_exist.php?tmpemail="+m_email,true);
  xmlHttp.send(null);
  }




// old version
/*

var ajaxreq = false, ajaxCallback;
//ajaxRequest Ξ΄ΞΉΞ±ΞΌΞΏΟΟ†Ξ»Ο‰Ξ½ΞµΞΉ Ξ­Ξ½Ξ± Ξ±Ξ―Ο„Ξ·ΞΌΞ±
function ajaxRequest(filename) {
 try {
    // firefox, ie7, other
     ajaxreq= new XMLHttpRequest();
     } catch (error) {
      try {
        // ie5 / ie6
         ajaxreq=new ActiveXObject("Microsoft.XMLHTTP");
       } catch (error) {
         return false;
     }
   }

  ajaxreq.open("GET",filename);
  ajaxreq=.onreadystatechange = ajaxResponse;
  ajaxreq.send(null);

}
//ajaxResponse : Ο€ΞµΟΞΉΞΌΞ­Ξ½ΞµΞΉ Ξ±Ο€ΞΊΟΞΊΟΞΉΟƒΞ· ΞΊΞ±ΞΉ ΞΊΞ±Ξ»ΞµΞ― ΞΌΞΉΞ± ΟƒΟ…Ξ½Ξ¬ΟΟ„Ξ·ΟƒΞ·

function ajaxResponse() {
  if (ajaxreq.readystate != 4) return;
   if (ajaxreq.status == 200) {
      // succes request
      if (ajaxCallback) ajaxCallback();
    }
   else alert("Request failed: " + ajaxreq.statusText);
   return true;

}

*/
