
function roundEx(num) 
{ 
	num = String(num);
	if (num.match(/\./)) { num += "00"; return num.match(/\d+\.\d\d/);}
	else return num+".00";
}


function ajaxFunc(type, ID, price){
	
	document.getElementById(ID).style.display = 'none';
	
	change_var = document.getElementById("q"+ID);	
	change_var.innerHTML = '';


	ajax = new sack();
	
	ajax.requestFile = 'process.php?'+type+'='+ID;
	//ajax.onCompletion = function(){  };
	ajax.runAJAX();
	
	total_price -= price;
	change_var = document.getElementById("act_price");	
	change_var.innerHTML = '$'+roundEx(total_price);
	
	
	
}
