Ajax PHP page responce and action


function AjaxFunction(val1,val2){
url='page.php?argument1='+val1+'&argument2='+val2+'&a='+Math.random();
var ajaxReq = getXmlHttpRequestObject();
if(ajaxReq.readyState == 4 || ajaxReq.readyState == 0){
ajaxReq.open("get", url, true);
ajaxReq.onreadystatechange = function(){
if(ajaxReq.readyState == 4 && ajaxReq.status == 200){
/********* Your action Code HereĀ  ************/
}
}
ajaxReq.send(null);
}
}