function Toggle(item) {
   obj=document.getElementById(item);
   visible=(obj.style.display!="none")
   key=document.getElementById("x" + item);
   if (visible) {
     obj.style.display="none";
     key.innerHTML="<img src='/images/debatClosedPost.gif' width='9' height='9' hspace='0' vspace='0' border='0' style='margin-right:4px;margin-top:3px;'>";
   } else {
      obj.style.display="block";
      key.innerHTML="<img src='/images/debatThread.gif' width='9' height='9' hspace='0' vspace='0' border='0' style='margin-right:4px;margin-top:3px;'>";
   }
}

function Expand() {
   divs=document.getElementsByTagName("DIV");
   for (i=0;i<divs.length;i++) {
     divs[i].style.display="block";
     key=document.getElementById("x" + divs[i].id);
     key.innerHTML="<img src='/images/debatThread.gif' width='9' height='9' hspace='0' vspace='0' border='0' style='margin-right:4px;margin-top:3px;'>";
   }
}

function Collapse() {
   divs=document.getElementsByTagName("DIV");
   for (i=0;i<divs.length;i++) {
     divs[i].style.display="none";
     key=document.getElementById("x" + divs[i].id);
     key.innerHTML="<img src='/images/debatClosedPost.gif' width='9' height='9' hspace='0' vspace='0' border='0' style='margin-right:4px;margin-top:3px;'>";
   }
}
