var startDate = new Date(); var themonth = startDate.getMonth() + 1; if(navigator.appName == "Netscape") { theyear = startDate.getYear() + 1900; }else {theyear = startDate.getYear();} var theday = startDate.getDate(); var thelink1="http://curfmweb.swmed.edu/medschool/calendar/FMPro?-db=calendar.fp5&-lay=ms1&-format=name.htm&-error=error.htm&schoolyear=2009-2010&month=" + themonth + "&class=ms1&-find"; var thelink2="http://curfmweb.swmed.edu/medschool/calendar/FMPro?-db=calendar.fp5&-lay=ms2&-format=name.htm&-error=error.htm&schoolyear=2009-2010&month=" + themonth + "&class=ms2&-find"; var thelink3="http://curfmweb.swmed.edu/medschool/calendar/FMPro?-db=calendar.fp5&-lay=all&-format=allstudents.htm&-error=error.htm&schoolyear=2009-2010&month=" + themonth + "&-find"; function link1(link) {window.location.href = thelink1;} function link2(link) {window.location.href = thelink2;} function link3(link) {window.location.href = thelink3;}