function pollResults(){
var qID = 0;
var ones = arguments.length;

var address = arguments[0];

	if (ones == 2) {
	var pollName = arguments[1];
	var radioGrp = document.forms[pollName].q1;
	} else {
	var radioGrp = document.forms[1].q1;
	}
	
	for (var i = 0; i < radioGrp.length; i++){
		if (radioGrp[i].checked) {
		qID = radioGrp[i].value
		}
	}
	
	if (qID == 0) {
	alert('Please select an answer before voting.');
	} else {
	var whandle = window.open( address + qID, "pollWin", "width=488,height=350,menubar=0,location=0,scrollbars=0", "0" );
	whandle.focus();
	}
}



function pollResult(address,pollName,x,y){
var qID = 0
var radioGrp = document.forms[pollName].q1;
	for (var i = 0; i < radioGrp.length; i++){
		if (radioGrp[i].checked) {qID = radioGrp[i].value}}
		if (qID == 0)
		alert('Please select an answer before voting.')
		else{
		var whandle = window.open( address + qID, "pollWin" + pollName, "width=" + x + ",height=" + y + ",menubar=0,location=0,scrollbars=0", "0" );
		whandle.focus();
	}
}

function bSitesPollResults(address,pollName){
	var qID = 0;
	var address = arguments[0];
	var pollName = arguments[1];
	var radioGrp = document.forms[pollName].q1;
	
	for (var i = 0; i < radioGrp.length; i++){
		if (radioGrp[i].checked) {
		qID = radioGrp[i].value
		}
	}
	
	if (qID == 0) {
	alert('Please select an answer before voting.');
	} else {
	var whandle = window.open( address + qID, "pollWin", "width=488,height=350,menubar=0,location=0,scrollbars=0", "0" );
	whandle.focus();
	}
}
