function stlVoteCallback(jsonString){$("#frmVote").hideLoading();var obj=eval("("+jsonString+")");obj&&("false"==obj.isSuccess?($("#voteSuccess").hide(),$("#voteFailure").show(),$("#voteFailure").html(obj.message)):($("input:"+inputType+'[name="'+inputName+'"]:checked').replaceWith("<span class='icon_succS'></span>"),$("#voteSuccess").show(),$("#voteFailure").hide(),$("#voteSuccess").html(obj.message)))}function validate_vote(e,t,o){var n=$("input:"+e+'[name="'+t+'"]:checked').length;return 0==n?($("#voteFailure").html("您至少需要选择一项进行投票！"),!1):n>o?($("#voteFailure").html("您最多能选择"+o+"项进行投票！"),!1):($("input:"+e+'[name="'+t+'"]:checked').replaceWith("<span class='icon_succS'></span>"),void $("input:"+e+'[name="'+t+'"]').replaceWith("<span class='icon_none'></span>"))}function submit_vote(){if(validate_vote("checkbox","voteOption",2)){$("#frmVote").showLoading();var e=document.getElementById("frmVote");e.action=actionUrl,e.target="iframeVote",e.submit()}}$(document).ready(function(e){$(".votingFrame .item").hover(function(){$(this).css("background-color","#F2F2F2")},function(){$(this).css("background-color","transparent")});var t=$(".rightCon").width();$("#vote_color_0").stop().animate({width:.1*t+"px"}),$("#vote_num_0").html("200 (10%)")});