﻿var ajaxRequest = null;
function CreateAjaxRequest() {
	try {
		ajaxRequest = new XMLHttpRequest();
	} catch (trymicrosoft) {
		try {
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (othermicrosoft) {
			try {
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (failed) {
				ajaxRequest = null;
			}
		}
	}
	if (ajaxRequest == null){
		alert("很抱歉，建立XMLHTTP物件失敗，您的瀏覽器不支援此程式，請改用其它瀏覽器。");
	}
}
	


