function vote(theForm) {
	
	if (theForm && theForm.poll) {
		var vote;
		var thePoll = theForm.poll;
		
		for (var i=0; i<thePoll.length; i++) {
			if (thePoll[i].checked) {
				vote = thePoll[i].value;
				xajax_votePoll(vote);
			}
		}
		
		set_visibility('pollResults', 0);
		set_visibility('pollQuestion', 1);
	}
	return false;
	
}

/**
 * set_visibility
 * 
 * @access private
 */
function set_visibility(obj, bln) {
			
	var blnDisplay = (bln==0 ? true : false);

	var strValue = document.getElementById(obj).style.display;
	
	if (strValue!='') {
		if (strValue=='none') {
			blnDisplay = true;
		}
		else {
			blnDisplay = false;
		}
	}
			
	var strDisplay = (blnDisplay == true) ? 'block' : 'none';
	var nodCustomized = document.getElementById(obj);
	nodCustomized.style.display = strDisplay;
}