function RPCinit() {
	var a = null;
	try {
		a = new ActiveXObject('Msxml2.XMLHTTP');
	} catch (e1) {
		try {
			a = new ActiveXObject('Microsoft.XMLHTTP');
		} catch (e2) {
			a = null;
		}
	}
	if (!a && (typeof(XMLHttpRequest) != 'undefined')) {
		a = new XMLHttpRequest();
	}
	return a; 
}

function RPCcancel(r) {
	r.onreadystatechange = function(){};
	r.abort();
}
