// JavaScript Document

function getRefToDiv(divID,oDoc) {
  if( document.getElementById ) {
  var test = document.getElementById(divID);
    return document.getElementById(divID); }
  if( document.all ) {
    return document.all[divID]; }
  if( !oDoc ) { oDoc = document; }
  if( document.layers ) {
    if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
      //repeatedly run through all child layers
      for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
        //on success, return that layer, else return nothing
        y = getRefToDiv(divID,oDoc.layers[x].document); }
    return y; } }
  return false;
}

function showDiv(divID_as_a_string) {
  //get a reference as above ...
 
 var myReference = getRefToDiv(divID_as_a_string);
  if( !myReference ) {
    
    return; //don't go any further
  }
  //now we have a reference to it
  if( myReference.style ) {
    //DOM & proprietary DOM
    myReference.style.visibility = 'visible';
	myReference.style.height = '100%';
  } else {
    //layers syntax
    myReference.visibility = 'show';
	myReference.height = '100%';
  }
}

