$(document).ready(function (){ $(".regMultiLink").hover( function () { $(this).addClass("hover"); }, function (){ $(this).removeClass("hover"); }); $(".regButton").live("mouseover", function () { $(this).css("border-style", "inset").css("cursor", "pointer"); }); $(".regButton").live("mouseout", function () { $(this).css("border-style", "outset").css("cursor", "default"); }); $("#yrAcCancel").live("click", function (){ $(".regMultiDoc").hide(); }); $("#yrAcOK").live("click", function (){ var year = $("#yrAccount input[name=accountYear]:checked").val() var url = $("#acUrl_" + year).val(); window.open(url); $(".regMultiDoc").hide(); }); $("#yrAPSRCancel").live("click", function (){ $(".regMultiDoc").hide(); }); $("#yrAPSROK").live("click", function (){ var year = $("#yrAPSR input[name=apsrYear]:checked").val() var url = $("#apsrUrl_" + year).val(); window.open(url); $(".regMultiDoc").hide(); }); $("#yrPerfCancel").live("click", function (){ $(".regMultiDoc").hide(); }); $("#yrPerfOK").live("click", function (){ var year = $("#yrPerf input[name=perfYear]:checked").val() var url = $("#perfUrl_" + year).val(); window.open(url); $(".regMultiDoc").hide(); }); });