var moname = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); // we need the links and names in an array, so we can loop through the options in the select menu var archlinks = new Array; var archnames = new Array; var i = 0; tmp="10/01/2001 - 10/31/2001"; mo=tmp.substring(13,15); yr=tmp.substring(19); mo=moname[mo - 1]; newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archive/2001_10_01_archive.html"; archnames[i] = newdate; i++; tmp="11/01/2001 - 11/30/2001"; mo=tmp.substring(13,15); yr=tmp.substring(19); mo=moname[mo - 1]; newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archive/2001_11_01_archive.html"; archnames[i] = newdate; i++; tmp="12/01/2001 - 12/31/2001"; mo=tmp.substring(13,15); yr=tmp.substring(19); mo=moname[mo - 1]; newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archive/2001_12_01_archive.html"; archnames[i] = newdate; i++; tmp="01/01/2002 - 01/31/2002"; mo=tmp.substring(13,15); yr=tmp.substring(19); mo=moname[mo - 1]; newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archive/2002_01_01_archive.html"; archnames[i] = newdate; i++; tmp="02/01/2002 - 02/28/2002"; mo=tmp.substring(13,15); yr=tmp.substring(19); mo=moname[mo - 1]; newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archive/2002_02_01_archive.html"; archnames[i] = newdate; i++; tmp="03/01/2002 - 03/31/2002"; mo=tmp.substring(13,15); yr=tmp.substring(19); mo=moname[mo - 1]; newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archive/2002_03_01_archive.html"; archnames[i] = newdate; i++; tmp="04/01/2002 - 04/30/2002"; mo=tmp.substring(13,15); yr=tmp.substring(19); mo=moname[mo - 1]; newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archive/2002_04_01_archive.html"; archnames[i] = newdate; i++; tmp="05/01/2002 - 05/31/2002"; mo=tmp.substring(13,15); yr=tmp.substring(19); mo=moname[mo - 1]; newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archive/2002_05_01_archive.html"; archnames[i] = newdate; i++; tmp="06/01/2002 - 06/30/2002"; mo=tmp.substring(13,15); yr=tmp.substring(19); mo=moname[mo - 1]; newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archive/2002_06_01_archive.html"; archnames[i] = newdate; i++; tmp="07/01/2002 - 07/31/2002"; mo=tmp.substring(13,15); yr=tmp.substring(19); mo=moname[mo - 1]; newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archive/2002_07_01_archive.html"; archnames[i] = newdate; i++; tmp="08/01/2002 - 08/31/2002"; mo=tmp.substring(13,15); yr=tmp.substring(19); mo=moname[mo - 1]; newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archive/2002_08_01_archive.html"; archnames[i] = newdate; i++; tmp="02/01/2003 - 02/28/2003"; mo=tmp.substring(13,15); yr=tmp.substring(19); mo=moname[mo - 1]; newdate=mo+" "+yr; // put first link and name in archlinks[0] and archnames[0], second in [1], ... archlinks[i] = "archive/2003_02_01_archive.html"; archnames[i] = newdate; i++; // change current location to archlink when selected from menu function gothere(where) { location.href = where.options[where.selectedIndex].value } // tell the script to start a form - the \ before the " tells javascript that you want to write a " rather // than interpreting it as the end of the stuff you want to write document.write("
"); // tell the script to start a select menu that calls the gothere function when it is changed // change the class= to change the appearance of the menu, but leave the \" before and after your class document.write("
");