var htxt="";
document.write("");
htxt="
"
htxt=htxt+"";
htxt=htxt+"";
htxt=htxt+"| □ 好";
htxt=htxt+" | wunan2011 <11-3 14:55>";
htxt=htxt+" | 
";
htxt=htxt+"";
htxt=htxt+"";
htxt=htxt+"| □ 谢谢你们的评论,我们共同努力,好的资料大家分享。";
htxt=htxt+" | zzyyww <11-21 14:45>";
htxt=htxt+" | 
";
htxt=htxt+"";
htxt=htxt+"";
htxt=htxt+"| □ 马上期中考试,你的资料无疑是我的“甘雨”,内容全面,知识点突出,基础性强,很适合我们的学生,谢谢上传的老师,这样好的资料多多上传呀!";
htxt=htxt+" | lxh790928 <11-10 22:2>";
htxt=htxt+" | 
";
htxt=htxt+"";
htxt=htxt+"";
htxt=htxt+"| □ 不错";
htxt=htxt+" | yedaosheng <11-10 18:47>";
htxt=htxt+" | 
";
htxt=htxt+"";
htxt=htxt+"";
htxt=htxt+"| □ 还可以,与作者所说适合重点中学相适应";
htxt=htxt+" | lenovosky <11-9 22:25>";
htxt=htxt+" | 
";
document.write(htxt);
function sendhp()
{
      $.get("http://www.e-huaxue.com/sendgoodbad.asp", 
	        { id: "30286188", gb: "g" },
			function(data){
  					viewpp(data);
			});
}
function viewpp(data)
{
    if(data.substring(0,3)!="err")
	{
		var dpsj = data.split(",");
		var good = parseInt(dpsj[0]);
		var bad = parseInt(dpsj[1]);
		$("#hpp").html(GetPercent(good,good+bad));
		$("#cpp").html(GetPercent(bad,good+bad));
	}
	else
	{
		alert("只有下载过此资料的会员可以发表评价!");
	}
}
function GetPercent(num, total) { 
	num = parseFloat(num); 
	total = parseFloat(total); 
	if (isNaN(num) || isNaN(total)) { 
		return "-"; 
	} 
	return total <= 0 ? "-" : (Math.round(num / total * 10000) / 100.00 + "%"); 
} 
function sendcp()
{
      $.get("http://www.e-huaxue.com/sendgoodbad.asp", 
	        { id: "30286188", gb: "b" },
			function(data){
  					viewpp(data);
			});
}