<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">$(document).ready(function(){
	$.formValidator.initConfig({formid:"commentForm"});
	$("#title")
		.formValidator({onshow:"Please enter your report's subject.",onfocus:"Please enter your report's subject.",oncorrect:"OK"})
		.inputValidator({min:5,max:120,onerror:"Your report's Subject must be 5~120 characters."});
	$("#content")
		.formValidator({onshow:"Your message must be between 20~2000 characters.",onfocus:"Your message must be between 20~2000 characters.",oncorrect:"OK"})
		.inputValidator({min:20,max:2000,onerror:"Your Message must be between 20~2000 characters."})
	$("#validateCode")
		.formValidator({onshow:"Enter the characters you see in the image.",onfocus:"Enter the characters you see in the image.", oncorrect:"OK"})
		.regexValidator({regexp:"^\\w{5}$",onerror:"Enter the characters you see in the image."});
	
	if($("#loginForm").size() &gt; 0){
		loadValidateCode(document.forms["commentForm"],"validateCodeImg", "/images/validateCode");
	}
		
	$("#content").countDown({
		maxNum: 2000, 
		spare: false
	});
});

function sign_in(flag){
	document.forms["loginForm"].elements["return"].value=window.location.href;;
	document.forms["loginForm"].submit();
}

$(document).delegate(".ratinglist li","click",function(){
 	var $this = $(this);
    $rating = $this.parent();
    $stars = $rating.find("li");
    i = $this.index();
    $stars.each(function(j,star){
    	if( j &lt;= i ){
          $(star).addClass("cur");
   		 }else{
         	$(star).removeClass("cur");
         }
		});
 	$("#score").val( i + 1 );
});
</pre></body></html>