// JavaScript Document

/*************************************************
功能：语言选择
参数：lan  所选择的语言简码
*************************************************/
function selLang(lan)
{
  createXMLHttpRequest();
  var url = "selLanguage.php";
  var postValue = "web_lan=" + lan;
  xmlHttp.open("POST", url, true);
  xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
  xmlHttp.send(postValue);
  
  xmlHttp.onreadystatechange = function () { 	
    if(xmlHttp.readyState == 4)
    {
	  if(xmlHttp.status == 200)
	  {
	    if(xmlHttp.responseText == "ok")
	    {
		  window.top.location.reload();
	    }
	  }
    }
  }
}
