function GetXmlHttpObject(){
	var xmlHttp=null;
	try{
		/************** Firefox, Opera 8.0+, Safari ************* */
		xmlHttp=new XMLHttpRequest();
	}catch(e){
		/* ************* Internet Explorer************* */
		try{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}

function Send_requests(div_id,id,path,amount,act){	
	var url	=	path+"/payment_process.php?mode="+id+"&amount="+amount+"&action="+act;	
	xmlHttp	=	GetXmlHttpObject();
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
	var show = document.getElementById(div_id);	
	xmlHttp.onreadystatechange = function(){	
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){		
	    var txt	 = xmlHttp.responseText;
		 //alert(txt);
		    if(txt!=""){
				if (show.style.display == 'none'){
					show.style.display = 'block';
					document.getElementById('select_options').style.display='none';
				   document.getElementById(div_id).innerHTML=txt;
					//alert(res);
			    }
		    }				 
		 
		}
	}
	
}
