function gotovote(id,enabled){
	resultId = "showvote";
	file = "/ajax/vote";
	httpRequest.open("POST",file,true);
	try {
		httpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	}catch(e){}
	httpRequest.send("state=votebox" +
	"&noresults=noresults" +
	"&enabled=" + enabled +
	"&idvote=" + id
	);
	document.getElementById(resultId).innerHTML = '<div class="loading_vote"></div>';
	httpRequest.onreadystatechange = getRequest;
}

function showresults(id,enabled){
	resultId = "showvote";
	file = "/ajax/vote";
	httpRequest.open("POST",file,true);
	try {
		httpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	}catch(e){}
	httpRequest.send("state=votebox" +
	"&vote=vote" +
	"&enabled=" + enabled +
	"&idvote=" + id
	);
	document.getElementById(resultId).innerHTML = '<div class="loading_vote"></div>';
	httpRequest.onreadystatechange = getRequest;
}

function voting(id,enabled){
	resultId = "showvote";
	file = "/ajax/vote";
	httpRequest.open("POST",file,true);
	try {
		httpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	}catch(e){}
	httpRequest.send("state=votebox" +
	"&voting=voting" +
	"&enabled=" + enabled +
	"&idvote=" + id +
	"&item=" + document.getElementById("itemvalue").value
	);
	document.getElementById(resultId).innerHTML = '<div class="loading_vote"></div>';
	httpRequest.onreadystatechange = getRequest;
}

function setitem(id){
	document.getElementById("itemvalue").value = id;
}