functions.js 401 B

12345678910111213141516
  1. function MM_jumpMenu(targ, selObj, restore) {
  2. eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");
  3. if (restore) selObj.selectedIndex = 0;
  4. }
  5. function createOption(select, name, value) {
  6. var sObj = document.createElement("option");
  7. sObj.text = name;
  8. sObj.value = value;
  9. select.options.add(sObj);
  10. }
  11. function deleteOptions(select) {
  12. select.options.length = 0;
  13. }