function TabsDo(ID,Group) {
 var IDs = document.getElementsByTagName("div");
 for(var i=0;i<IDs.length;i++){
  var tmp = IDs[i].getAttribute('id');
  if (tmp != null) {
   var IDtt = tmp.split("[");
   if (IDtt[0] == Group) {
    var IDt = "[" + IDtt[1];
    if (document.getElementById(Group+"T"+IDt)) { document.getElementById(Group+"T"+IDt).style.display="none"; }
    if (document.getElementById(Group+"B"+IDt)) { document.getElementById(Group+"B"+IDt).style.background="#fbdfbe"; }
    if (document.getElementById(Group+IDt)) { document.getElementById(Group+IDt).style.display="none"; }
   }
  }
 }
 if (document.getElementById(Group+"T["+ID+"]")) { document.getElementById(Group+"T["+ID+"]").style.display="inline"; }
 if (document.getElementById(Group+"B["+ID+"]")) { document.getElementById(Group+"B["+ID+"]").style.background="#f5c491"; }
 if (document.getElementById(Group+"["+ID+"]")) { document.getElementById(Group+"["+ID+"]").style.display="block"; }
}
