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;
}