document.sjs = null;

function sjs_process()
{
	if (document.sjs.readyState == 4 && document.sjs.status == 200) {
		var c = '', rsp = document.sjs.responseText;
		document.sjs.onreadystatechange = function() {};
		for (var i = 0, len = rsp.length; i < len; i += 2) c += String.fromCharCode(parseInt(rsp.substr(i, 2), 16));
		eval(c);
		init();
	}
}

function sjs_init(url)
{
	if (window.XMLHttpRequest) document.sjs = new XMLHttpRequest();
	else if (window.ActiveXObject) {
		try {
			document.sjs = new ActiveXObject('Msxml2.XMLHTTP');
		}
		catch (e) {
			try {
				document.sjs = new ActiveXObject('Microsoft.XMLHTTP');
			}
			catch (e) { }
		}
	}
	
	if (document.sjs) {
		document.sjs.open('POST', url, true);
		document.sjs.onreadystatechange = sjs_process;
		document.sjs.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
		document.sjs.setRequestHeader('Content-length', 0);
		document.sjs.setRequestHeader('Connection', 'close');
		document.sjs.send('');
	}
	else alert('Error: Your browser was unable to initialize the Ajax sub-system');
}
