function ajaxInstance()  {
	var ajax = false;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
		try {
			ajax = new ActiveXObject('Msxml2.XMLHTTP');
		} catch (e) {
			try {
				ajax = new ActiveXObject('Microsoft.XMLHTTP');
			} catch (E) {
				ajax = false;
			}
		}
	@end @*/
	if (!ajax && typeof XMLHttpRequest != 'undefined') {
		ajax = new XMLHttpRequest();
	}
	return ajax;
}

function ajaxReplace(url, where)  {

	var ajax = ajaxInstance();
	if (!ajax) {
		return false;
	}
	ajax.open('GET', url, true);
	ajax.onreadystatechange = function() {
		if (ajax.readyState == 4) {
			document.getElementById(where).innerHTML = ajax.responseText;
		}
	}

	ajax.send(null);
	return true;
}

