document.getElementById('msg982').innerHTML = "
"
for(var i in document.getElementsByClassName('banDo') ) { alert(i); document.getElementsByClassName('banDo')[i].onclick = document.getElementsByClassName('banDo')[i].onclick.toString().substring(0,67) + "oncontent: addButtonReg()," + document.getElementsByClassName('banDo')[i].onclick.toString().substring(67); }