notnullenquete = function(formenquete) {	
	function valButton(btn) {
    var cnt = -1;
    for (var i=btn.length-1; i > -1; i--) {
        if (btn[i].checked) {cnt = i; i = -1;}
    }
    if (cnt > -1) return btn[cnt].value;
    else return null;
	}
                  
	var btn = valButton(formenquete.enquete);
	if (btn == null) 
		{			
			alert("Porfavor selecione uma das opções! Seu voto é muito importante para nós! ");
			return false
		}
	else
		{	
			Submeter();			
		}
}

function Submeter(){
jan=displayWindow('','popup','5','5',''); //opções do popup
submit();
} 
function displayWindow(theURL,winName,width,height,features) { //Esta função aqui é para o pop-up abrir no centro, está funcionando legal
    var window_width = width;
    var window_height = height;
    var newfeatures= features;
    var window_top = (screen.height-window_height)/2;
    var window_left = (screen.width-window_width)/2;
    newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + 'toolbar=0,scrollbars=0,status=0,resize=0');
    newWindow.focus();
}