function validatevote(frm){
	for(var i = 0;i<frm.elements.length;i++){
		var  e = frm.elements[i];
		if (e.type == 'radio'){
			if (e.checked){
				if (confirm("Esti sigur ca acesta este raspunsul ales? Votul odata exprimat, nu mai poate fi modificat!")) frm.submit();
				return true;
				break;
			}
		}
	}
	alert("Alegeti o varianta de raspuns!");
	return false;
} 
function goResult(id){document.location.href="mdecizii.php?local=results&idq="+id;}
function goArchive(){document.location.href="mdecizii.php";}


function validatevoteC(frm){
	for(var i = 0;i<frm.elements.length;i++){
		var  e = frm.elements[i];
		if (e.type == 'radio'){
			if (e.checked){
				frm.submit();
				return true;
				break;
			}
		}
	}
	alert("Alegeti o varianta de raspuns!");
	return false;
} 
function goResultC(id){document.location.href="msedinte.php?local=results&idq="+id;}
function goArchiveC(){document.location.href="msedinte.php";}

function validatevoteA(frm){
	for(var i = 0;i<frm.elements.length;i++){
		var  e = frm.elements[i];
		if (e.type == 'radio'){
			if (e.checked){
				frm.submit();
				return true;
				break;
			}
		}
	}
	alert("Alegeti o varianta de raspuns!");
	return false;
} 
function goComments(id){document.location.href="magenda.php?comments=1&idq="+id;}
function goArchiveA(){document.location.href="magenda.php";}
function goCommentAdd(id){document.location.href="magenda.php?comments=1&add=1&idq="+id;}

function goCommentsDec(id){document.location.href="mdecizii.php?comments=1&idq="+id;}
function goCommentAddDec(id){document.location.href="mdecizii.php?comments=1&add=1&idq="+id;}

