function poll_saveAnswer(pid, oid, ID){
	var strPostURL;
	var pars;
	var i;
	strPostURL = document.getElementById("postURL").value;
	
	if (strPostURL == null) return 0;
	if (strPostURL.length == 0) return 0;
	
	//Using regular javascript to find value of radio button
	for (i=0; i<document.pollvote.optID.length; i++) {			
		if (document.pollvote.optID[i].checked) {				
		pars = "optID="+ encodeURI(document.pollvote.optID[i].value);				
		pars = pars + "&" + "Userchoice=" + encodeURI(document.pollvote.Userchoice[i].value);
		}
	}
	
	var url    = strPostURL;
	var rand   = Math.random(9999);
	var pars   = pars + '&rand=' + rand;
	var myAjax = new Ajax.Request( url, {method: 'get', parameters: pars, onComplete: poll_displayResults} );

}

function poll_displayResults(originalRequest){
	document.getElementById("hm_poll").innerHTML = originalRequest.responseText;
}