X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=philter%2Fphilter%2Finclude%2Fphilter.js;h=834f07c3f2a7e92d6e23de653e6bd901836c13e2;hb=3e328a2d687bac7ea1f28015eb7ccbb340a8e995;hp=3cf2fe2a03a2dbc4c3570e70fa1a4ebaebd7c69a;hpb=0aa1a917a9e89dc2037ba95b5fd1fa67db49aa9e;p=old-projects.git diff --git a/philter/philter/include/philter.js b/philter/philter/include/philter.js index 3cf2fe2..834f07c 100644 --- a/philter/philter/include/philter.js +++ b/philter/philter/include/philter.js @@ -26,10 +26,10 @@ function getElement(obj) { } function getNthElement(obj, index) { - if(document.all) - return document.all[obj][index]; if(document.getElementsByName) return document.getElementsByName(obj)[index]; + if(document.all) + return document.all[obj][index]; } /********** ORDER FORM FUNCTIONS **********/