grazie, funziona perfettamente...
Se volessi aggiungere altre due variabili che si ripetono, tipo C e D, dovrei modificare così:
codice:
var A;
var B;
var C;
var D;
window.onload = function() {
A = document.getElementById('divmn');
B = document.getElementById('divmn1');
C = document.getElementById('divmn2');
D = document.getElementById('divmn3');};