
<? if eq 1 1 '<script language="JavaScript">' '' ?>

<? if eq 1 1 '<? include ../html/js/jsl.js ?>'   '<script language="JavaScript" src="../html/js/jsl.js"></script>' ?>
<? if eq 1 1 '<? include ../html/js/error.js ?>' '<script language="JavaScript" src="../html/js/error.js"></script>' ?>

<? if eq 1 1 '' '<script language="JavaScript">' ?>

function uiDoOnLoad()
{
   return true;
}

function uiRestart()
{
  if(confirm("RESTART?  If you have not done a \"Save All Changes\" command, you will loose any changes you have made."))
  {
    document.getElementById("uiPostVarName").name = "logic:command/reboot";
    document.getElementById("uiPostForm").submit();
  }
}

function uiRestartAP()
{
  if(confirm("RESTART AP?  This will restart AP with the new configuration."))
  {
    document.getElementById("uiPostVarName").name = "ap:status/cli_reboot";
    document.getElementById("uiPostForm").submit();
  }
}

function uiRestoreFactoryDefaults()
{
  if(confirm("Are you sure you want to restore factory defaults?") )
  {
    document.getElementById("uiPostVarName").name  = "logic:command/defaults";
    document.getElementById("uiPostVarName").value = "../gateway/commands/saveconfig.html";
    document.getElementById("uiPostForm").submit();
  }
}    
function uiSaveAll()
{
   document.getElementById("uiPostVarName").name  = "logic:command/save";
   document.getElementById("uiPostVarName").value = "../gateway/commands/saveconfig.html";
   document.getElementById("uiPostForm").submit();
}
</script>
