var AccessCount = 1;
var MaxCount = 2;

function MM_openBrWindow(theURL,winName,features) { //v2.0
AccessCount = 1;
window.open(theURL,winName,features+'"toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,left=0,top=0"');
}
function MyGrade(str) {
 str = new Array(5);
 str[0] = "这么烂？:<";
 str[1] = "不合口味!:<";
 str[2] = "平淡无奇!:|";
 str[3] = "好喜欢哦!:>";
 str[4] = "勘称经典!:O";
 for(i=0;i<5;i++) {
  if (document.rate.score[i].checked==true) {
   if(confirm(str[i])) {
		document.rate.submit();
   }
  }
 }
}
function setfullscreen(){
	player.fullScreen=true;
}
function checkMsg(){
	if( commitform.CommentTitle.value.length==0 ) {
		alert("\请输入您的评论标题!!")
		commitform.CommentTitle.focus();
		return false;
	}
	if( commitform.CommentTXT.value.length==0 ) {
		alert("\请输入您的评论正文，6000字以内!!")
		commitform.CommentTXT.focus();
		return false;
	}
	return true;
}
function textCounter(field, countfield, maxlimit) {
	if (field.value.length > maxlimit) field.value = field.value.substring(0, maxlimit);
	else countfield.value = maxlimit - field.value.length;
}
