try {
	xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
	try {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	} catch (E) {
		xmlhttp = false;
	}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	xmlhttp = new XMLHttpRequest();
}

function postAsync(pg, targDiv, sendString, fctCall) {
	xmlhttp.open("GET", pg,true);
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4) {
			try{
				//document.getElementById('testing').value = xmlhttp.responseText
				if(fctCall !=''){eval(fctCall);}
			}catch(err){
				//getElement('divDebug').innerHTML = xmlhttp.responseText; 
				alert('error occured during RS Call.'); 
				var r = '';
				for (var p in err)
				r += p + ': ' + err[p] + '\n';
				alert(r);
			}
		}
	}
	xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
	xmlhttp.send(sendString);
}