function addtreetotable(obj){
var table1 = document.getElementById("Table1");
var hang = obj.parentNode.parentNode.parentNode.childElementCount;
for(var int = 1;int <hang;int++) { table1.deleteRow(int); int--; var hh=obj.parentNode.parentNode.parentNode.childElementCount; if(hh==2) { break; } }