function AJAXRequest(url, ready_function, first_param, proc_function) {
	proc_function = proc_function || '';
	first_param = first_param || '';
	var xmlhttp = false;

	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	 try {
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
	  try {
	   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	   xmlhttp = false;
	  }
	 }
	@end @*/
	
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	xmlhttp.open("GET", url, true);
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState==4) {
			ready_function(first_param, xmlhttp.responseText);
		}
	}
	if (proc_function){
		proc_function();
	}
	xmlhttp.send(null);
	return false;
}


jQuery.preloadImages = function() {
	var a = (typeof arguments[0] == 'object')? arguments[0] : arguments;
	for(var i = a.length-1; i>=0; i--){
		jQuery("<img>").attr("src", a[i]);
	}
}
