function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
 

function fb($action,$bookid)
{		var $CommentParentID	=arguments[0];

	$.ajax({
		url:"do_shujia.asp?action="+$action+"&manuid="+$bookid+"&time="+new Date().toString(),
		type:'GET',
		success:function (){
				alert(arguments[0]);
		}
	});
}

function GetCommentvote($Action,$CommendId,$Page,$Manu_total_point,$manuid){
	$.ajax({
		url:"addcommend.asp?action="+$Action+"&CommendId="+$CommendId+"&manuid="+$manuid+"&time"+new Date().toString(),
		type:'GET',
		success:function(){
				alert(arguments[0]);
		}
	});
}

function addComment($manuid,$Manu_total_point){
		var $Title      		=$('#Title').val();
		var $CommentText		=$('#CommentText').val();
		var $CommentValidate	=$('#CommentValidate').val();
		if ($.trim($CommentValidate)=='')
		{
			alert('ÇëÄúÌîÐ´ÑéÖ¤Âë£¡');
			$('#CommentValidate').focus();
			return false;
		}		
		if ($.trim($CommentText)=='')
		{
			alert('ÇëÄúÌîÐ´ÄÚÈÝ£¡');
			$('#CommentText').focus();
			return false;
		}
	$.ajax({
		url:"addcommend.asp?action=addcomment&time="+new Date().toString(),
		type:'post',
		datatype:"json",
		data:"manuid="+$manuid+"&commentvalidate="+escape($CommentValidate)+"&Title="+$Title+"&commenttext="+escape($CommentText)+"",
		success:function(){
			if (arguments[0]=='ERROR')
			{
				alert('ÑéÖ¤Âë³ö´í£¡');
			}else{
				alert(arguments[0]);
				$("#CommentText").val("");
				$("#title").val("");
				$("#CommentValidateImages").attr("src","Code1.asp?s="+Math.random());
			}
			$("#CommentValidate").val("");
		}
	});
}
