var path     = "/monitor.php";
var path_pay = "/monitorpay.php";
var binary;        
var filename;
var mytext;

function requestdone() {
	if (http_request.readyState == 4) {
		if (http_request.status == 200) {
			//result = http_request.responseText;
			//document.getElementById('myspan').innerHTML = result;            
		} else {
			//alert('There was a problem with the request.');
		}
		document.getElementById('ajaxbutton').disabled = false;
	}
}

function ajax_upload(monitor,type) {
}

function ajax_pay(monitor,type) {
var xmlhttp=false;

/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
url = '';
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  xmlhttp = new XMLHttpRequest();
}
url=path_pay + "?monitor=" + monitor + "&type=" + type;

xmlhttp.open("GET", url,true);
xmlhttp.onreadystatechange=function() {
} 
 xmlhttp.send(null);
}