onclick="document.getElementById('testata').style. backgroundImage='url(' + sfondo[i] + ')';"