﻿function submitComment()
{
	var oComment = document.getElementById("comment");
	if (oComment.value.replace(/\s/ig,"").length ==0)
	{
		alert("评论内容不能为空！");
		oComment.focus();
		return false;
	}
	setTimeout((function(){document.getElementById('btnAddComment').disabled=true}), 10);
	var html = "<p class=\"content\"><span class=\"hi\">我：</span>"+ oComment.value.replace(">","&gt;").replace("<","&lt;") +"</p>";
	document.getElementById("star_gbook2_list").innerHTML = html + document.getElementById("star_gbook2_list").innerHTML;
	return true;
}
  
  		function notice()
  		{
 		    var obj = document.getElementsByTagName("input");
  			var count = 0;
  			var BID;
  			for(var i=0;i<obj.length;i++)
  			{
  				if(obj[i].name=="xuanze" && obj[i].checked)
  				{
  					BID = obj[i].value;
  					count++;
  				}
  			}				
  			
  			if(count == 0)
  			{
  				alert("请先选择需要投票的项");
  				return false;
  			}
  		}
