  function shuffle(obj){
    var left = true;
    var tab_id = obj.id;
    var cell_id = tab_id + "Cell";
    //var cells = document.all.tags("DIV");
    var divs = document.getElementsByTagName("DIV");
    var c_id;
    divs[tab_id].style.backgroundColor = "#a0a0ff";
    divs[cell_id].style.display = "block";
    for (i=0;i<divs.length;i++){
      c_id = divs[i].id;
      if (c_id == tab_id) {
        left = false;
      }
      if (c_id.indexOf("Cell") < 0){
        if (c_id != tab_id && c_id != "BLANK") {
          divs[i].style.backgroundColor = "#8080ff";
        }
      } 
      else {
        if (c_id != cell_id){
          divs[i].style.display = "none";
        }
      }
    }
  }

  function shiffle(obj){
    var left = true;
    var tab_id = obj.id;
    var cell_id = tab_id + "Cell";
    //var cells = document.all.tags("DIV");
    var divs = document.getElementsByTagName("DIV");
    var c_id;
    //divs[tab_id].style.backgroundColor = "#a0a0ff";
    divs[cell_id].style.display = "block";
    for (i=0;i<divs.length;i++){
      c_id = divs[i].id;
      if (c_id == tab_id) {
        left = false;
      }
      if (c_id.indexOf("Cell") < 0){
        if (c_id != tab_id && c_id != "BLANK") {
          divs[i].style.backgroundColor = "#8080ff";
        }
      } 
      else {
        if (c_id != cell_id){
          divs[i].style.display = "none";
        }
      }
    }
  }

  function showFrame(url){
    var fr = document.getElementsByTagName("IFRAME");
    var divs = document.getElementsByTagName("DIV");
    alert("number of IFRAMEs counted "+fr.length);
    for(j=0;j<fr.length;j++){
      if(fr.name == "bFrame"){
        alert("In the right frame.");
        fr.src = url;
//        alert("Source is\n"+url);
//        alert("Number of divs is "+divs.length);
        for (i=0;i<divs.length;i++){
          c_id = divs[i].id;
//          alert("Current div is "+c_id);
          if(c_id == "bottomCell"){
//            alert("Made it past the div ID check.");
            divs[i].style.display = "inline";
          }
        }
      }
    }
  }