// JavaScript Document
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
/**
  * hides/makes visible a table row
  *
  * @param   string   the element name
  * @param   string               "hide" forces hide, "show" forces show, leave parm out forces toggle
  * @return  boolean  always true
  */
function toggleVis(divname)
{
        var x=MM_findObj(divname), a=toggleVis.arguments;
        
        if (x!=null) {
                if (document.all || document.getElementById) {  // IE & Gecko & Opera
                        if ((x.style.display=="none" && a.length == 1) || (a.length > 1 && a[1] == "show")) // none means show, "" means hide
                                x.style.display=""; // hide
                        else
                                x.style.display="none"; // show
                }
                else {  // Netscape 4
                        if ((x.display=="show" && a.length == 1) || (a.length > 1 && a[1] == "show"))
                                x.display="hide";
                        else
                                x.display="show";
                }
        }
} // end of the 'toggleVis()' function
