var poll_displayResults = function(response, id){
	if(response == false){
        $j("#"+id + "submit").disabled = true;
		$j("#"+id + "submit").attr('value','Voting...')
    } else if (response.indexOf('error') != -1) {
		$j("#"+id + "submit").attr('value','Vote now')
		alert('Please select an option from the poll before voting.');
	} else {
		$easypoll = $j('#easypoll');
		$easypoll.slideUp('fast',function(){
			text = $j(response).html();
			$easypoll.html(text);
			$easypoll.slideDown('fast');
		});
    }
};


