	function SelNum(divint,input,numcell,bck){
	
		
		if(prendiElementoDaId(divint).style.background.indexOf('255') != -1  ){
			
			if(bck != '') col = '#EEEEEE';
			else col = 'white';
			prendiElementoDaId(divint).style.background = col;
			prendiElementoDaId(input).value = 0;
			
		}
		else{
			
			prendiElementoDaId(divint).style.background='rgb(204,255,255)';
		
			prendiElementoDaId(input).value = numcell;
		}
		

	}
	
	function SelNumTutti(divint,input,numcell,bck){
	
		
		if(prendiElementoDaId(divint).style.background.indexOf('255') != -1  ){
			
			if(bck != '') col = '#EEEEEE';
			else col = 'white';
			prendiElementoDaId(divint).style.background = col;
			prendiElementoDaId(input).value = 0;
			
		}
		else{
			
			prendiElementoDaId(divint).style.background='rgb(204,255,255)';
		
			prendiElementoDaId(input).value = numcell;
		}
		

	}
	
	// there are no radio buttons
function getCheckedValue(radioObj) {

	if(!radioObj)
		return "";
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return "";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}
