function CheckEnterJudgetool(A){if(A==0){alert("Judge Voting has been completed for this Match. Please vote on other Matches")}else{alert("Sorry !!! Already some other Judge has started voting for this match. Please vote on other Matches")}}function CheckEnter(A){if(A==0){alert("The maximum number of Judges allowed to vote in this match has exceeded.  Please select another Match to vote in.")}else{alert("Sorry !!! Already some other Judge has started voting for this match. Please vote on other Matches")}}function sizechange(B,E){var D,A;var C;D=B.height;A=B.width;if(B.width>E){wdiff=A-100;B.width-=wdiff;B.height=Math.round(B.width*((D)/(A)))}if(B.height>E){hdiff=D-100;B.height-=hdiff;B.width=Math.round(B.height*((A)/(D)))}};