function submitonce(theform) {
 if (document.all || document.getElementById) {
  // hunt down "submit" and "reset"
  for (i=0;i<theform.length;i++) {
   var tempobj=theform.elements[i];
   if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset") {
    tempobj.disabled=true;
   }
  }
 }
}

function expandDiv(tahw) {
  table_contract = new Image(1,1);
  table_contract.src = "http://images.deviantart.com/shared/t-open.gif";
  table_expand = new Image(1,1);
  table_expand.src = "http://images.deviantart.com/shared/t-close.gif";
  what  = tahw + "_menu"
  where = tahw + "_table"
  gotox  = tahw + "_link"
  if (document.getElementById(what).style.display == "none") {
    document.getElementById(what).style.display = "";
    where.src = table_expand.src;
    gotox.href = "http://urine.deviantart.com/set.php?t=" + tahw + "&value=1"
  } else {
    document.getElementById(what).style.display = "none";
    where.src = table_contract.src;
    gotox.href = "http://urine.deviantart.com/set.php?t=" + tahw + "&value=0"
  }
}
