function vote()
{
	var vote;
		
	for (i=0;i<document.pollform.poll.length;i++)
	{
		if (document.pollform.poll[i].checked)
		{
			vote = document.pollform.poll[i].value;
			xajax_votePoll(vote);
		}
	}
	
	set_visibility('poll_results', 0);
	set_visibility('poll_question', 1);
	
	return false;
}

function set_visibility(obj, bln)
{		
	blnDisplay = (bln==0 ? true : false);

	strValue = document.getElementById(obj).style.display;
	
	if (strValue!='')
	{
		if (strValue=='none')
		{
			blnDisplay = true;
		}
		else
		{
			blnDisplay = false;
		}
	}
			
	strDisplay = (blnDisplay==true) ? 'block' : 'none';
	nodCustomized = document.getElementById(obj);
	nodCustomized.style.display = strDisplay;
}