<!--
var ajax = new sack();

function whenLoading(){
	document.getElementById('splash4').style.display = "block";
	document.getElementById('splashbase4').style.display = "block";
	document.getElementById('error4').style.display = "block";
	document.getElementById('error4').innerHTML = "<p><span style='color:#4f4f4f;font-weight:normal;'><i>Processing your vote... Please wait...</i></span></p>"
}

function whenLoaded(){

}

function whenInteractive(){

}

function whenCompleted(){
	if (ajax.responseStatus){
	 	var result = ajax.response;
		document.getElementById('splash4').style.display = "block";
		document.getElementById('splashbase4').style.display = "block";
		document.getElementById('error4').style.display = "block";
		document.getElementById('error4').innerHTML = result; 
	} else {
	 	alert('There was a problem with the request.');
	}	
}

function showVote(str){
	ajax.setVar("q", str);
	ajax.requestFile = "set_vote.php";
	ajax.method = "GET";
	//ajax.element = 'error';
	ajax.onLoading = whenLoading;
	//ajax.onLoaded = whenLoaded; 
	//ajax.onInteractive = whenInteractive;
	ajax.onCompletion = whenCompleted;
	ajax.runAJAX();
}
//-->
