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(); function work(shortcourse, dbnum) { var x=shortcourse; var thelink="http://curfmweb.swmed.edu/medschool/sources/FMPro?-db=wcgnames.fp5&-lay=cgi&-format=schedule.htm&-sortfield=date&-sortfield=start&shortcourse="+ shortcourse +"&schoolyear=2009-2010&-op=gte&date=" + themonth + "/" + theday + "/" + theyear + "&-error=schedule.htm&-token=current&-token.2=1&-find"; location.href = thelink; } function work2(shortcourse, dbnum) { var checknext=""; if(calcsjlastcheckjs>25){checknext="yes"}else{checknext="no"}; var x=shortcourse; var thelink="http://curfmweb.swmed.edu/medschool/sources/FMPro?-db=wcgnames.fp5&-lay=cgi&-format=schedule.htm&-sortfield=date&-sortfield=start&shortcourse="+ shortcourse +"&schoolyear=2009-2010&-op=gte&date=" + themonth + "/" + theday + "/" + theyear + "&-token.1="+checknext+"&-error=schedule.htm&-token=current&-token.2=1&-find"; location.href = thelink; } function currentprev(shortcourse, dbnum, currentfndcnt, calcSJcount, token1) { var omittedrecords = calcSJcount - currentfndcnt; var prevskip = omittedrecords-26; if(prevskip>=0){ location.href="http://curfmweb.swmed.edu/medschool/sources/FMPro?-db=wcgnames.fp5&-lay=cgi&-format=schedule.htm&-error=schedule.htm&-sortfield=date&-sortfield=start&shortcourse="+ shortcourse +"&schoolyear="+prioryear+"&-skip=" + prevskip + "&-token.1=yes&-token.2=1&-find"; }else{location.href="http://curfmweb.swmed.edu/medschool/sources/FMPro?-db=wcgnames.fp5&-lay=cgi&-format=schedule.htm&-error=schedule.htm&-sortfield=date&-sortfield=start&shortcourse=" + shortcourse + "&schoolyear="+prioryear+"&-skip=0&-token.1=yes&-token.2=1&-find";} } function currentprev2(groupcode, dbnum, currentfndcnt, calcSJcount, token1) { var omittedrecords = calcSJcount - currentfndcnt; var prevskip = omittedrecords-26; if(prevskip>=0){ location.href="http://curfmweb.swmed.edu/medschool/sources/FMPro?-db=wcgnames.fp5&-lay=cgi&-format=schedule.htm&-error=schedule.htm&-sortfield=date&-sortfield=start&groupcode="+ groupcode +"&schoolyear="+prioryear+"&-skip=" + prevskip + "&-token.1=yes&-find"; }else{location.href="http://curfmweb.swmed.edu/medschool/sources/FMPro?-db=wcgnames.fp5&-lay=cgi&-format=schedule.htm&-error=schedule.htm&-sortfield=date&-sortfield=start&groupcode=" + groupcode + "&schoolyear="+prioryear+"&-skip=0&-token.1=yes&-find";} } function work3(groupcode, dbnum) { var checknext=""; var x=groupcode; var thelink="http://curfmweb.swmed.edu/medschool/sources/FMPro?-db=wcgnames.fp5&-lay=cgi&-format=schedule.htm&-sortfield=date&-sortfield=start&groupcode="+ groupcode +"&schoolyear=2009-2010&-op=gte&date=" + themonth + "/" + theday + "/" + theyear + "&-token.1="+checknext+"&-error=schedule.htm&-token=current&-token.2=0&-find"; location.href = thelink; }