var ct3 = {
i:1,
addRow:function(event_ff, type, data){
var table =document.getElementById("testTbl");
if(type == 'down'){
var obj = (document.all)?event.srcElement:event_ff;
var index= obj.parentNode.parentNode.rowIndex;
index++;
}else if(type == 'up') {
var obj = (document.all)?event.srcElement:event_ff;
var index= obj.parentNode.parentNode.rowIndex;
}else{
index = table.rows.length;
}
var newTr =table.insertRow(index);
if(data==0){
var newTd = newTr.insertCell(0);
newTd.style.background = '#ffffff';
newTd.innerHTML = '
function addtr(){
var tb = document.getElementById("tdata");
var tr = document.getElementById("tr1");
var newTr = tr.innerHTML;
tb.appendChild(newTr);
}