// JavaScript Document

function createRequestObject(){

	var ro;

    // branch for native XMLHttpRequest object

    if (window.XMLHttpRequest) 

		ro = new XMLHttpRequest();

    // branch for IE/Windows ActiveX version

    else if (window.ActiveXObject) 

        ro = new ActiveXObject("Microsoft.XMLHTTP");

	return ro;

}



var myRequest = createRequestObject();



function sndReq(adImg,hostPage) {

	/*alert('processajads.php?adImg=' + adImg + '&hostPage=' + hostPage);*/

//	myRequest.onreadystatechange = handleResponse;

	//myRequest.open('GET', 'ajtestprocessor.php?action=' + action, true);

	myRequest.open('POST', 'click.php?adImg=' + adImg + '&hostPage=' + hostPage, true);

	myRequest.send(null);

}

