/*  ****  SRVGS Forms JavaScript Sheet  ****  */


    addLoadEvent(formsInit);


/*  ****************************************  */


  function formsInit()
    {
       document.getElementById("name").focus();
       document.getElementById("invent_form").onsubmit = function()
           {
             return window.confirm("Submit your inventory list?");
           }
    }


  function clear_values()
   {
       var clearall = document.getElementsByTagName("INPUT");
       for ( var i = 0; i < clearall.length-1; i++)
          {
             if ( hasClass(clearall[i],"list_item") || hasClass(clearall[i],"clearable"))
                 {
                    clearall[i].value = "";
                 }
          }
       document.getElementById("text_in").value = ""
       document.getElementById("name").focus();
   }



