
function nextPoll(so, url) {
	
	if (typeof CURRENTPOLLSO == 'undefined') {
		CURRENTPOLLSO = 0;
	} else {
		CURRENTPOLLSO++;
	}
	
	try {
		new Ajax.Updater('pollWrapperDIV', url+'?ajaxRequest=1&so=' + so, {
			evalScripts: true,
			method: 'get'
		});
		
	} catch(e) {
		return true;
	}
	return false;
	
}

function submitPollVote(form) {
	try {
		var opts = document.getElementsByClassName('polloptradio');
		var sel = false;
		for (i=0;i<opts.length;i++) {
			if (opts[i].checked) {
				sel = true;
				break;
			}
		}
		if (sel == false) {
			alert('Please Choose an Option First.');
			return false;
		}
		new Ajax.Updater('pollWrapperDIV', form.action, {
			evalScripts: true,
			postBody: 'ajaxRequest=1&' + Form.serialize(form)
		});
	} catch(e) {
		alert(e); return false;
		return true;
	}
	return false;
}
