// to find left of an object
function curLeft(obj)
{ toreturn = 0;
  while(obj)
  {  toreturn += obj.offsetLeft;
     obj = obj.offsetParent;
  }
  return toreturn;
}
//function to show / hide a table
function show(tid)
{  tb = document.getElementById(tid);
   if (tb.style.display=='none') 
      tb.style.display = '';
   else
      tb.style.display = 'none';
}

//function to show / hide a table
function showtb(tid)
{  tb = document.getElementById(tid);
   tb.style.display = '';
}
//function to hide a table
function hidetb(tid)
{  tb = document.getElementById(tid);
   tb.style.display = 'none';
}