$(function () { $("#selSeason").change(function () { var elem = this; var season = elem.value; if (season != currentSeason) { location.replace("?sID=" + sclassID + "&season=" + season); } }); $("#selSubSclass").change(function () { var elem = this; var subId = elem.value; if (subId != currentSubId){ location.replace("?sID=" + sclassID +"&season=" + currentSeason+"&sub=" + subId); } }); $("#selRound").change(function () { var elem = this; var round = elem.value; if (round != currentRound) { location.replace("?sID=" + sclassID + "&season=" + currentSeason + (typeof currentSubId !== "undefined"?"&sub=" + currentSubId:"") + "&r=" + round); } }); $("#pointKind li").click(function () { var pointKind = $(this).val(); var subId = $("#selSubSclass").val(); if (subId == undefined) { location.replace("?sID=" + sclassID + "&season=" + currentSeason + "&pointkind=" + pointKind); } else { location.replace("?sID=" + sclassID + "&season=" + currentSeason + "&sub=" + subId + "&pointkind=" + pointKind); } }); $(".infoTab a,.filter_top_nav a").each(function (i, elem) { var thisObj = $(elem); var url = thisObj.attr("href"); if (typeof url !== "undefined") { thisObj.attr("href", "javascript:void(0);"); thisObj.click(function () { location.replace(url); }); } }); });