


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

var req = new Array();


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


function processReqChange(a) {
	
	if (req[a].readyState == 4) {
		if (req[a].status == 200) {
			if (req[a].responseText != '') {
				abc = req[a].responseText.split(";");
				document.getElementById("t" + abc[0]).innerHTML = abc[1];
			}
		}
	}
}



function p(a) {
	ajax(a,'plus');
}

function m(a) {
	ajax(a,'minus');
}


