﻿window.addEvent('domready', function() {
	new Request.HTML({ url: '/ajax/?type=regvote', update: $('voting_container') }).send();
});

function vote(votingID, answerID) {
	new Request.HTML({ url: '/ajax/?type=regvote&votingID=' + votingID + '&answerID=' + answerID
		, update: $('voting_container')
		}).send();
	return false;
}
