function fncAdd(){
var tb = document.getElementById('tbl');
var pos = tb.rows.length
var x=tb.insertRow(pos)
var y=y=tb.rows
var a=x.insertCell(0)
var b=x.insertCell(1)
a.innerHTML="<input name='text1[]' type='text' id='text1[]' size='3' />"
b.innerHTML="<input name='text2[]' type='text' id='text2[]' size='3' />"
}