<!--
function initialLoading(id){
document.getElementById('text'+id).innerHTML="<span class='red-txt'><b><i>Updating values... Please wait...</i></b></span>";
}

var ajax3 = new sack();

function whenLoading3(){

}

function whenLoaded3(){

}

function whenInteractive3(){

}

function whenCompleted3(){ 
	if (ajax3.responseStatus){

var response = ajax3.response;
var myarr = response.split("~");
document.getElementById('text'+myarr[0]).innerHTML=myarr[1];

	} else {
	 	alert('AJAX Failure.');
	}	
}

function setParty(hours,people,type,row)
{
 	if (hours!="") ajax3.setVar("hours", document.getElementById(hours).value); else ajax3.setVar("hours", "0");
 	ajax3.setVar("people", document.getElementById(people).value);
	ajax3.setVar("type", type);
	ajax3.setVar("row", row);
	ajax3.requestFile = "party_calculator_process.php";
	ajax3.method = "GET";
	// ajax3.onLoading = whenLoading3();
	//ajax3.onLoaded = whenLoaded3; 
	//ajax3.onInteractive = whenInteractive3;
	ajax3.onCompletion = whenCompleted3;
	ajax3.runAJAX();
}
//-->