function Process(url,div,process) {
	var xmlHttp;
	try {
		xmlHttp = new XMLHttpRequest();
	} catch (e) {		
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				alert("Uw browser ondersteund geen ajax");
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState == 4){
			var doscript = parseScript(xmlHttp.responseText);
			UseResponse(xmlHttp.responseText,div,process)
		}
	}
	
	xmlHttp.open("post",url,true);
	xmlHttp.send('');
	if (process == 1){
		Disable('/Moment.asp','100','100');
	}
}	

function UseResponse(result,div,process){
	if (div != ''){
		document.getElementById(div).innerHTML = result;
	}
	if (process == 1){
		Enable();
	}
}


function parseScript(_source) {
    var source = _source;
    var scripts = new Array();

    while(source.indexOf("<script") > -1 || source.indexOf("</script") > -1) {
	    var s = source.indexOf("<script");
	    var s_e = source.indexOf(">", s);
	    var e = source.indexOf("</script", s);
	    var e_e = source.indexOf(">", e);
    	
	    scripts.push(source.substring(s_e+1, e));
	    source = source.substring(0, s) + source.substring(e_e+1);
    }

    for(var i=0; i<scripts.length; i++) {
	    try {
		    eval(scripts[i]);
	    } catch(ex) {
	    	alert(ex.description + '------------------------------------' + scripts[i]);
	    }
    }

    return source;
}

