
var ajax = new sack();
var toChangeId = "";
inprocess = false;

function showMeProductPrice(id,id_a,id_b,id1)
{
          inprocess = true;
		var url_sent = 'pro_price.php?pro_id='+encodeURI(id)+'&pro_ida='+encodeURI(id_a)+'&pro_idb='+encodeURI(id_b)+'&pro_id1='+encodeURI(id1);
		ajax.requestFile = url_sent;	// Specifying which file to get		
		ajax.onCompletion = dispProductPrice;	// Specify function that will be executed after file has been found
		ajax.runAJAX();		// Execute AJAX function
}

function dispProductPrice()
{
document.getElementById('product_priceId').innerHTML = "<table width='100%'><tr>"+ajax.response+"</tr></table>";
	/*var obj = document.getElementById('product_priceId');			
	obj.innerHTML = ajax.response;	
	inprocess = false;*/
}

function setSessionValue(sessVal)
{
	  inprocess = true;
	var url_sent = 'setSessionValue.php?paymentVal='+sessVal;
	ajax.requestFile = url_sent;	// Specifying which file to get		
	ajax.onCompletion = dispsetVal;	// Specify function that will be executed after file has been found
	ajax.runAJAX();		// Execute AJAX function
}
function dispsetVal()
{
	//alert(ajax.response);
}

