/* AJAX
------------------------------------------------------------------*/
var jxReq;
var jxCallFunc;
var jxResp;
function jxLoad(u, f) {
	jxCallFunc = f;
	
    if (window.XMLHttpRequest) {
        jxReq = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        jxReq = new ActiveXObject("Microsoft.XMLHTTP");
    }

	if (jxReq) {
		if (jxCallFunc) {
			jxReq.onreadystatechange = jxProcess;
		}
		
		jxReq.open("GET", u, true);
		jxReq.send("");
		
		return true;
	}
	return false;
}
function jxProcess() {
    if (jxReq.readyState == 4) {
        if (jxReq.status == 200) {
			jxResp = new Function("return "+jxReq.responseText)();
			lf = new Function(jxCallFunc);
			lf();
        }
    }
}

/* Overige */
function cClick(a, s) {
	jxLoad('/jx.php?a=' + a + '&s=' + s, false);
}
