function showTab(sectionNumber, tabindex){
/*var tab= document.getElementById('tab' +  sectionNumber +   tabindex);*/
var x = 0;
var tab;
while (!!(tab = document.getElementById('tab' +  sectionNumber +   x))){
  tab.style.display = (x == tabindex) ? "block" : "none";
  tab = null;
  var tabbutton = document.getElementById('tabbutton' +  sectionNumber +   x);
  if (tabbutton){
    tabbutton.style.background = (x == tabindex) ? "transparent url(/visage/static/selectedtab.jpg) no-repeat scroll left top" : "transparent url(/visage/static/generictab.jpg) no-repeat scroll left top";
  }
  x++;
}
return false;
}

function rightcolfunc() {

 var leftcol = document.getElementById('left_col');
 var rightcol = document.getElementById('right_col');
 var rightcontent = document.getElementById('rightcontent');
 var textboxtext = document.getElementById('textbox_text');
 
 if (leftcol && rightcol) {
 if (leftcol.offsetHeight > rightcol.offsetHeight) {
 if (rightcontent){
 rightcol.style.height = leftcol.offsetHeight + "px";
 rightcontent.style.height = rightcol.offsetHeight - 10 + "px";
 }
 }else {
 if(textboxtext){
 leftcol.style.height = rightcol.offsetHeight + "px";
 textboxtext.style.height = leftcol.offsetHeight - 32 + "px";
		}
     }
   }
 }
 

