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