function valRads(rad) {

	var isOneChecked 
	
	for (var i=0; i<document.poll_form.pollOption.length; i++)  {
	
		if (document.poll_form.pollOption[i].checked)  {
	
		isOneChecked = document.poll_form.pollOption[i].value
	
		} 
	
	}
	
	if(isOneChecked != null){ 
	
		return true;
	
	}
	
	else{
	
		return false;
	
	}
}


function subPoll(){
	
	var somethingChecked = valRads();
	
	if(somethingChecked){
		
		document.poll_form.submit();
		
	} else {
		
		alert('Please select something to vote for!');
		return false;
		
	}                  
	
}

function growbar(imgID, finalWidthPercent){
	
	var fixedWidth = 162;
	var Obj = document.getElementById(imgID);
	var step = fixedWidth / 100;
	
	var curWidth = Obj.width;
	var newWidth = curWidth + step;
	var endWidth = finalWidthPercent * step;
	
	if (newWidth >= endWidth) {
		Obj.width = endWidth;	
	} else {
		Obj.width = newWidth;
		setTimeout("growbar('"+imgID+"', '"+finalWidthPercent+"')", 2);
	}
}

