/**
 * @author vally
 */
function cambiaCSS(classe,element,value) 
{
	 var cssRules;
	 if (document.all)
	 {
		cssRules = 'rules';
	 }
	 else if (document.getElementById) 
	 {
		cssRules = 'cssRules';
	 }
	 for (var i=0; i < document.styleSheets.length; i++)
	 {
	 	for (var t=0; t < document.styleSheets[i][cssRules].length; t++) 
		{
			if (document.styleSheets[i][cssRules][t].selectorText == classe)
			{
				document.styleSheets[i][cssRules][t].style[element] = value;
			}
		}
	}
}

function randRange(min, max)
{
    var randomNum = Math.floor(Math.random() * (max - min + 1)) + min;
    return randomNum;
}

function doRefresh() {
  // refresh della pagina corrente
  document.location.reload();
}
