var row=document.all.table1.insertRow(0);  
var cell=row.insertCell(0)
cell.onclick = dd