function adjustIFrameSize (iframeWindow) {
  if (iframeWindow.document.height) {
    var iframeElement = parent.document.getElementById(iframeWindow.name);
    if (iframeElement.name == "leftFrame")
    {
    	iframeElement.style.height = iframeWindow.document.height + 600 + 'px';
    }
    else
    {
    	iframeElement.style.height = iframeWindow.document.height + 400 + 'px';
    }
    //iframeElement.style.width = iframeWindow.document.width + 'px';
  }
  else if (document.all) {
    var iframeElement = parent.document.all[iframeWindow.name];
    if (iframeWindow.document.compatMode && iframeWindow.document.compatMode != 'BackCompat') 
    {
      if ( parent.document.all[iframeWindow.name].name == "leftFrame" )
      {
      	iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 600 + 'px';
      }
      else
      {	
      iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 150 + 'px';
      }
      // iframeElement.style.width  = iframeWindow.document.documentElement.scrollWidth  + 'px';
    }
    else {
      if ( parent.document.all[iframeWindow.name].name == "leftFrame" )
      {
      	iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 600 + 'px';
      }
      else
      {	    	
      	iframeElement.style.height = iframeWindow.document.body.scrollHeight + 150 + 'px';
      }
      // iframeElement.style.width  = iframeWindow.document.body.scrollWidth  + 'px';
    }
  }
}

function SwitchMenu(obj){
	if(document.getElementById){
		var el = document.getElementById(obj);
		var ar = document.getElementById("masterdiv").getElementsByTagName("span");
		if(el.style.display != "block"){ 
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") 
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}