function DoCallback(data)
{
	// branch for native XMLHttpRequest object
	if (window.XMLHttpRequest) {
		//alert(1);
		req = new XMLHttpRequest();
		req.onreadystatechange = processReqChange;
		req.open('POST', url, true);
		req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		req.send(data);
	// branch for IE/Windows ActiveX version
	} else if (window.ActiveXObject) {
		//Salert(2);
		req = new ActiveXObject('Microsoft.XMLHTTP')
		if (req) {
			req.onreadystatechange = processReqChange;
			req.open('POST', url, true);
			req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
			req.send(data);
		}
	}
}


function processReqChange() {
	// only if req shows 'loaded'
	if (req.readyState == 4) {
		// only if 'OK'
		if (req.status == 200) {
			eval(what);
		} else {
			alert('There was a problem retrieving the XML data:\n' + req.status +":"+ 	req.responseText);
		}
	}
}

function DoCallback2(data)
{
	// branch for native XMLHttpRequest object
	if (window.XMLHttpRequest) {
		//alert(1);
		req2 = new XMLHttpRequest();
		req2.onreadystatechange = processReqChange2;
		req2.open('POST', url2, true);
		req2.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		req2.send(data);
	// branch for IE/Windows ActiveX version
	} else if (window.ActiveXObject) {
		//Salert(2);
		req2 = new ActiveXObject('Microsoft.XMLHTTP')
		if (req2) {
			req2.onreadystatechange = processReqChange2;
			req2.open('POST', url2, true);
			req2.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
			req2.send(data);
		}
	}
}

function processReqChange2() {
	// only if req shows 'loaded'
	if (req2.readyState == 4) {
		// only if 'OK'
		if (req2.status == 200) {
			eval(what2);
		} else {
			alert('There was a problem retrieving the XML data:\n' +
				req2.responseText);
		}
	}
}

function makeAjaxRequestJs(sUrl,oParams) 
 {
  for (sName in oParams) {
	if (sUrl.indexOf("?") > -1) 
	{  sUrl += "&";	}
	else 
	{  sUrl += "?";	}
	
	sUrl += encodeURIComponent(sName) + "=" + encodeURIComponent(oParams[sName]);
  }
	//alert(sUrl);

  var oScript = document.createElement("script");
  oScript.src = sUrl;  
  document.body.appendChild(oScript);
  //document.body.divcc.appendChild(oScript);
  
}