function Buttons(Nam1, Cmd1, Nam2, Cmd2, Nam3, Cmd3, Nam4, Cmd4, Nam5, Cmd5, Nam6, Cmd6, Nam7, Cmd7, Nam8, Cmd8, Nam9, Cmd9, Nam10, Cmd10) {
  var Nam = new Array(Nam1,Nam2,Nam3,Nam4,Nam5,Nam6,Nam7,Nam8,Nam9,Nam10);
  var Cmd = new Array(Cmd1,Cmd2,Cmd3,Cmd4,Cmd5,Cmd6,Cmd7,Cmd8,Cmd9,Cmd10);
  var ButStr = '<center><TABLE BORDER="1" CELLPADDING="0" CELLSPACING="0" BGCOLOR="white"><TR><form method="POST"><p>';
  if (arguments.length >= 1) {
    for (i=0; i < arguments.length / 2; i++) {
      if (Nam[i] != "undefined " && Cmd[i] != "undefined " && Nam[i] != "" && Cmd[i] != "") {
        ButStr += '<TD><input type="button" width="50px" height="15px" name="' + Nam[i] + '" value="' + Nam[i] + '" onclick=ReDir("' + Cmd[i] + '");></TD>';
        }
      }
    for (i=0; i < arguments.length; i++) {
      Nam[i] = "";
      Cmd[i] = "";
      }
    }
  if (arguments.length < 1) {
    ButStr += '<TD align="center"><input type="button" name="B1" value="<< " onclick=javascript:self.history.back()><input type="button" name="B2" value="<   >" onclick=javascript:location.reload()><input type="button" name="B3" value=" >>" onclick=javascript:self.history.forward()></TD><TR><TD><FONT size="1">Back•TOP•Next</FONT></TD></TR>';
    }
  ButStr += '</p></form></TR></TABLE></center>';
  return document.write(ButStr);
  }

function ReDir (URL) {
  window.open(URL, "_top");
  return false;
  }

