function InitAjax()
{
  var ajax=false; 
  try 
  { 
     ajax = new ActiveXObject("Msxml2.XMLHTTP"); 
  } 
  catch (e)
  { 
    try 
    { 
      ajax = new ActiveXObject("Microsoft.XMLHTTP"); 
    }
    catch (E)
    { 
      ajax = false; 
    } 
  }
  if (!ajax && typeof XMLHttpRequest!='undefined')
  {
     ajax = new XMLHttpRequest(); 
  } 
  return ajax;
}

function pageAreaClick(pageAreaCode)
{
var tmp_url = "";
  try
  {
    tmp_url = window.location.href;
  }
  catch (e)
  {
    tmp_url = "http://www.kongfz.com/";
  }    

    var url = "include/ajaxRequest.php?act=indexPage&pageAreaCode="+pageAreaCode+"&url="+tmp_url;

    var ajax = InitAjax();

    ajax.open("GET", url, true);

    ajax.send(null);
}

