function isNumeric(comp){  //controlla se un campo contiene esclusivamente caretteri numerici. Accetta in ingresso il componente.
    var str = comp.value;
    var re = /[\D]/g
    if (re.test(str)) {
        alert("Il campo deve contenere caratteri numerici"); 
        comp.focus(); 
        return false; 
    }
    else {return true;}
}

function lastModified(){ //legge la data di ultima modifica di un file
  var x = new Date (document.lastModified);
  Modif = new Date(x.toGMTString());
  Year = takeYear(Modif);
  Month = Modif.getMonth() +1;
  Day = Modif.getDate();
  var Result = Day + '/'+ Month + '/' + Year
  document.write(Result);

}

function takeYear(theDate){
  x = theDate.getYear();
  var y = x % 100;
  y += (y < 38) ? 2000 : 1900;
  return y;
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}