function displayPollResults(strVariant, strURL)
{
	if (strVariant == 'insert')
	{
		var objRadioButton = document.pollform.poll_choice;
		var intRadioLength = objRadioButton.length;
		var intRadioValue;
		for (i=0; i < intRadioLength; i++ )
		{
			if (objRadioButton[i].checked)
			{
				intRadioValue = objRadioButton[i].value;
			}
		}
		ajax_loadContent('pollContainer',strURL + '&id=' + document.pollform.id.value + '&poll_vote=1' + '&poll_choice=' + intRadioValue);
	}
	else {
		ajax_loadContent('pollContainer',strURL + '&id=' + document.pollform.id.value);	
	}
}

function checkVote()
{
	var blnSubmit = false;
	var objRadioButton = document.pollform.poll_choice;
	var intRadioLength = objRadioButton.length;
	var intRadioValue;
	for (i=0; i < intRadioLength; i++ )
	{
		if (objRadioButton[i].checked)
		{
			blnSubmit = true;
		}
	}

	if (blnSubmit)
	{
		document.pollform.submit();
	}
	else
	{
		alert('Je hebt nog geen keuze gemaakt.');
	}
}

