function showtab(a) { var mainChildren = document.querySelector(".mainpadd").children; if(a==1) { for (i=1; i