return ( ( str1 == str2 ) ? 0 : ( ( str1 > str2 ) ? 1 : -1 ) );
}
+
+
+function ToggleVisibility ($Which)
+{
+ if (document.getElementById)
+ {
+ if (document.getElementById($Which).style.display == "none")
+ document.getElementById($Which).style.display = "inline";
+ else
+ document.getElementById($Which).style.display = "none";
+ }
+}
+
function emptyElement(element) {
childNodes = element.childNodes;
for(var i=0; i<childNodes.length; i++) {
function toggle_wholist()
{
- d = $('online_users').style.display;
-
- if (d == 'block') {
+ /* WARNING: VILE, SLEAZY HACK. We determine the state of the box based on the image loaded. */
+ if ( $('expand_wholist').src.substring($('expand_wholist').src.length - 12) == "collapse.gif" ) {
$('online_users').style.display = 'none';
$('expand_wholist').src = 'static/expand.gif';
wstate=0;