
window.onerror = function err() {return false;}



var req = new Array();




function vote(a,b) {
	
	if (window.XMLHttpRequest) {
		req[a] = new XMLHttpRequest();
		req[a].onreadystatechange = (function() { processReqChange(a) });
		req[a].open("GET", "vote.php?id=" + a + "&vote=" + b, true);
		req[a].setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req[a].send(null);
		
	} else if (window.ActiveXObject) {
		req[a] = new ActiveXObject("Microsoft.XMLHTTP");
		if (req[a]) {
			req[a].open("GET", "vote.php?id=" + a + "&vote=" + b, true);
			req[a].setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			req[a].send();
		}
		
	} else return true;
	
	return false;
}


function processReqChange(a) {
	
}

