var Ptr=document.getElementById("tab").getElementsByTagName("tr"); function $() { for (i=1;i0)?"t1":"t2"; } } window.onload=$; for(var i=0;i