




function checkForm() {
	var username = "";
	if(nickname=='') {
		 username = $("#username_0").val();
		 
		 username = username.replace(/^[\n|\r\n]*|[\n|\r\n]*$/g, '');
		 if(username == '') {
		 	popMsg('请输入昵称');
		 	return false;
		 }
	}
	
	var msg = $("#content").val();
	msg = $.trim(msg);
	if(msg == '') {
		popMsg("请输入评论内容");
		return false;
	}
	return true;
}

var lastBg = ""; 
function mouseAComment(action, id) {
	if(action == 'over') {
		$("#hi_"+id).show();
		lastBg = $("commentRoot_"+id).css("background");
		$("commentRoot_"+id).css("background","#f7f7f7");
	} else if(action == 'out') {
		$("#hi_"+id).hide();
		$("commentRoot_"+id).css("background",lastBg);
	}
}

function popMsg(content, title) {
	$("#popContent").html(content);
	if(title) {
		$("#popTitle").html(title);
	}
	
	$("#popDiv").css("left", (document.body.clientWidth / 2 -$("#popDiv").width() / 2 - 50) + "px");
    $("#popDiv").css("top", (((document.documentElement.scrollTop == 0) ? document.body.scrollTop : document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0) ? document.body.clientHeight : document.documentElement.clientHeight) / 2 - $("#popDiv").height() / 2) + "px");
	
	$("#popDiv").show();
}

function share(pid, aid) {
	if(nickname == '') {
		popMsg("您还未登陆，无法分享新闻给好友");
		return;
	} else {
		popMsg("您已分享新闻给好友","操作成功");
		var i = new Image();
		i.src="http://comment.mop.com/zixun/zixunShare.do?pid="+pid+"&aid="+aid+"&r="+Math.random();
	}
	
}

function updown(action, pid, aid, id) {
	//播放动画
	var html = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="60" height="80">\
		<param name="movie" value="http://image2.mop.com/comment/images/'+action+'.swf" />\
		<param name="quality" value="high" />\
        <param name="wmode" value="transparent" />\
		<embed src="http://image2.mop.com/comment/images/'+action+'.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="60" height="80"></embed>\
		</object>';
	$("#"+action+"_"+id).html(html).show("fast");
	
	setTimeout('$("#'+action+'_'+id+'").hide()',1500);

	// 数字加1
	var reg = new RegExp("\\((.*?)\\)");
	var numStr = reg.exec($("#"+action+"num_"+id).html())[1];
	var num = parseInt(numStr);
	num++;
	$("#"+action+"num_"+id).html("("+ num +")");
	
	//发送请求
	var i = new Image();
	i.src="http://comment.mop.com/zixun/zixunUpDown.do?action="+action+"&pid="+pid+"&aid="+aid+"&id="+id+"&r="+Math.random();
}


document.writeln("<!--评论开始-->");
document.writeln("<div class=\"blank16\"><\/div>");
document.writeln("<div class=\"clearit\" style=\"border-top:1px solid #e3e3e3;\"><\/div>");
document.writeln("");
document.writeln("<div class=\"blank16\"><\/div>");
document.writeln("<h5 class=\"titleh5\">我也说两句<\/h5>");
document.writeln("");
document.writeln("<div class=\"clearit\"><\/div>");

if(nickname == "") {
	document.writeln("<!--登录前开始-->");
	document.writeln("<form id='commentform' name='commentform' method='post' action='http://comment.mop.com/zixun/zixunCommentAdd.do' onSubmit=\"document.charset='utf-8'; return checkForm();\" accept-charset=\"utf-8\">" );
	document.writeln("<input type='hidden' name='head' id='head' value=''>");
	document.writeln("<input type='hidden' name='pid' id='pid' value='3'>");
	document.writeln("<input type='hidden' name='aid' id='aid' value='2006675'>");
	document.writeln("<input type='hidden' name='from' id='aid' value='"+ document.location.href +"'>");
	document.writeln("	<div><span class=\"denglu_befor\"><a href=\"http://passport.mop.com/register\">还没有注册？<\/a><\/span><\/div>");
	document.writeln("	<div class=\"blank4\"><\/div>");
	document.writeln("	<div class=\"pic_member\">");
	document.writeln("		<p><a href=\"#\"><img src=\"http:\/\/image2.mop.com\/comment\/images\/ping_01.gif\" \/><\/a><\/p>");
	document.writeln("	    <h2><a href=\"#\">猫扑网友<\/a><\/h2>");
	document.writeln("	<\/div>");
	document.writeln("	");
	document.writeln("	<div class=\"pinglun_kuang\">");
	document.writeln("		<textarea id=\"content\" name=\"content\" cols=\"\" rows=\"\"><\/textarea>");
	document.writeln("	    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.writeln("	  	<tr>");
	document.writeln("	    <td>昵称：<input type=\"text\" id=\"username_0\" name=\"username\"  class=\"inputy\"  style=\"background:#fff\" \/> 密码：<input name=\"password\" type=\"password\" id=\"password_0\"  class=\"inputy\"  style=\"background:#fff\" \/><\/td>");
	document.writeln("	    <td>&nbsp;<\/td>");
	document.writeln("	    <td width=\"15\"><input type=\"checkbox\" name=\"top\" value=\"true\" id=\"top_0\"  \/><\/td>");
	document.writeln("	    <td width=\"75\">使用MP置顶<\/td>");
	document.writeln("	    <td width=\"80\"><input type=\"image\" src=\"http:\/\/image2.mop.com\/comment\/images\/ping_02.gif\" \/><\/td>");
	document.writeln("	  	<\/tr>");
	document.writeln("		<\/table>");
	document.writeln("	");
	document.writeln("	<\/div>");
	document.writeln("	");
	document.writeln("	<div class=\"blank8\"><\/div>");
	document.writeln("	<div class=\"blank16\"><\/div>");
	document.writeln("	<div class=\"clearit\" style=\"border-top:1px solid #e3e3e3;\"><\/div>");
	document.writeln("	");
	document.writeln("	");
	document.writeln("	<\/form>");
	document.writeln("	<!--登录前结束-->");
} else {
	document.writeln("<!--登录后开始-->");
	document.writeln("<form id='commentform' name='commentform' method='post' action='http://comment.mop.com/zixun/zixunCommentAdd.do' onSubmit=\"document.charset='utf-8'; return checkForm();\" accept-charset=\"utf-8\">");
	document.writeln("<input type='hidden' name='head' id='head' value='"+ Hi_USER.headUrl +"'>");
	document.writeln("<input type='hidden' name='pid' id='pid' value='3'>");
	document.writeln("<input type='hidden' name='aid' id='aid' value='2006675'>");
	document.writeln("<input type='hidden' name='from' id='aid' value='"+ document.location.href +"'>");
	document.writeln("	<div class=\"denglu_after\">登录:"+loginTimes+"次　MP:"+mp+" <a href=\"http://passport.mop.com/Logout?backUrl="+escape(document.location.href)+"\"><img src=\"http:\/\/image2.mop.com\/comment\/images\/ping_04.gif\" \/><\/a><\/div>");
	document.writeln("	<div class=\"blank4\"><\/div>");
	document.writeln("	<div class=\"pic_member\">");
	document.writeln("		<p><a href=\"http://hi.mop.com/\"><img src=\""+ Hi_USER.headUrl +"\" \/><\/a><\/p>");
	document.writeln("	    <h2><a href=\"http://hi.mop.com/\">"+nickname+"<\/a><\/h2>");
	document.writeln("	<\/div>");
	document.writeln("	");
	document.writeln("	<div class=\"pinglun_kuang\">");
	document.writeln("		<textarea id=\"content\" name=\"content\" cols=\"\" rows=\"\"><\/textarea>");
	document.writeln("	    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.writeln("	  	<tr>");
	document.writeln("	    <td width=\"15\" align=\"left\">&nbsp;<\/td>");
	document.writeln("	    <td width=\"30\">&nbsp;<\/td>");
	document.writeln("	    <td>&nbsp;<\/td>");
	document.writeln("	    <td>&nbsp;<\/td>");
	document.writeln("	    <td width=\"15\"><input type=\"checkbox\" value=\"true\" name=\"top\" id=\"top_0\" \/><\/td>");
	document.writeln("	    <td width=\"75\">使用MP置顶<\/td>");
	document.writeln("	    <td width=\"80\"><input type=\"image\" src=\"http:\/\/image2.mop.com\/comment\/images\/ping_02.gif\" \/><\/td>");
	document.writeln("	  	<\/tr>");
	document.writeln("		<\/table>");
	document.writeln("	<\/div>");
	document.writeln("<div class=\"blank8\"><\/div>");
	document.writeln("<div class=\"blank16\"><\/div>");
	document.writeln("<div class=\"clearit\" style=\"border-top:1px solid #e3e3e3;\"><\/div>")
	document.writeln("	<\/form>");
}

document.writeln("<div class=\"blank8\"><\/div>");
document.writeln("<!--评论内容开始-->");
document.writeln("<div class=\"cgery textrig\">已有评论 <b class=\"cyellow\">3<\/b> 条　<a href=\"http://comment.mop.com/comment.do?pid=3&aid=2006675\">查看全部回复<\/a><\/div>")


document.writeln("<!--一组评论内容开始-->");
document.writeln("	<div class=\"pinglun_con\" onmouseover=\"mouseAComment('over','2004')\" onmouseout=\"mouseAComment('out','2004')\">");
document.writeln("    	<p class=\"pic\"><a href='http://hi.mop.com/profile2.do?id=354050156' target='_blank'><img src='http://image2.mop.com/comment/images/ping_01.gif' width='50' height='50' /></a><\/p>");
document.writeln("        <div class=\"content_pl\">");
document.writeln("        	<div class=\"member_infor\">");
document.writeln("            <img src=\"http://image2.mop.com/comment/images\/ping_05.gif\" \/> neacal　2009-08-05 11:31:25　来自河南省安阳市");
document.writeln("            <\/div>");
document.writeln("            <div class=\"infor\">地板？确定？？<\/div>");
document.writeln("            ");
document.writeln("            <!--鼠标滑过时显示开始-->");
document.writeln("            <div class=\"left\"  style=\"display:none;\" id=\"hi_2004\">");
				
document.writeln("                <div class=\"kapian\"  style=\"margin-left:230px;\"><a href=\"javascript:void(0);\" onclick=\"share(3,2006675);\">分享给好友<\/a><\/div>");
            	
document.writeln("          	<\/div>");
document.writeln("            <!--鼠标滑过时显示结束-->");
document.writeln("            ");
document.writeln("            <div class=\"right\">");
document.writeln("            	<div class=\"kapian\"><div class=\"ding_cai\" id=\"up_2004\" style=\"display:none;\"></div><a href='javascript:void(0);' onclick='updown(\"up\",3,2006675,2004);'><b class=\"cyellow\">顶<\/b></a><span class=\"cyellow\" id=\"upnum_2004\">(0)<\/span><\/div>");
document.writeln("                <div class=\"kapian\"><div class=\"ding_cai\" id=\"down_2004\" style=\"display:none;\"></div><a href='javascript:void(0);' onclick='updown(\"down\",3,2006675,2004);'><b class=\"cblack\">踩<\/b></a><span id=\"downnum_2004\">(0)<\/span><\/div>");
document.writeln("          <\/div>");
document.writeln("            ");
document.writeln("        <\/div>");
document.writeln("    <\/div>");
document.writeln("	<!--一组评论内容结束-->")

document.writeln("<!--一组评论内容开始-->");
document.writeln("	<div class=\"pinglun_con\" onmouseover=\"mouseAComment('over','271')\" onmouseout=\"mouseAComment('out','271')\">");
document.writeln("    	<p class=\"pic\"><a href='http://hi.mop.com/profile2.do?id=56997326' target='_blank'><img src='http://image2.mop.com/comment/images/ping_01.gif' width='50' height='50' /></a><\/p>");
document.writeln("        <div class=\"content_pl\">");
document.writeln("        	<div class=\"member_infor\">");
document.writeln("            <img src=\"http://image2.mop.com/comment/images\/ping_05.gif\" \/> ⒉∞⒏讉莣　2009-07-15 01:42:28　来自中国");
document.writeln("            <\/div>");
document.writeln("            <div class=\"infor\">我也是每天看贴无数,基本上不回贴. 后来发现这样很傻,很多比我注册晚的人MP都比我多,于是我也就把这段文字保存在记事本里,每看一贴就复制粘贴一次.顺便帮LZ把贴子顶上去。<\/div>");
document.writeln("            ");
document.writeln("            <!--鼠标滑过时显示开始-->");
document.writeln("            <div class=\"left\"  style=\"display:none;\" id=\"hi_271\">");
				
document.writeln("                <div class=\"kapian\"  style=\"margin-left:230px;\"><a href=\"javascript:void(0);\" onclick=\"share(3,2006675);\">分享给好友<\/a><\/div>");
            	
document.writeln("          	<\/div>");
document.writeln("            <!--鼠标滑过时显示结束-->");
document.writeln("            ");
document.writeln("            <div class=\"right\">");
document.writeln("            	<div class=\"kapian\"><div class=\"ding_cai\" id=\"up_271\" style=\"display:none;\"></div><a href='javascript:void(0);' onclick='updown(\"up\",3,2006675,271);'><b class=\"cyellow\">顶<\/b></a><span class=\"cyellow\" id=\"upnum_271\">(0)<\/span><\/div>");
document.writeln("                <div class=\"kapian\"><div class=\"ding_cai\" id=\"down_271\" style=\"display:none;\"></div><a href='javascript:void(0);' onclick='updown(\"down\",3,2006675,271);'><b class=\"cblack\">踩<\/b></a><span id=\"downnum_271\">(0)<\/span><\/div>");
document.writeln("          <\/div>");
document.writeln("            ");
document.writeln("        <\/div>");
document.writeln("    <\/div>");
document.writeln("	<!--一组评论内容结束-->")

document.writeln("<!--一组评论内容开始-->");
document.writeln("	<div class=\"pinglun_con\" onmouseover=\"mouseAComment('over','227')\" onmouseout=\"mouseAComment('out','227')\">");
document.writeln("    	<p class=\"pic\"><img src='http://image2.mop.com/comment/images/ping_01.gif' width='50' height='50' /><\/p>");
document.writeln("        <div class=\"content_pl\">");
document.writeln("        	<div class=\"member_infor\">");
document.writeln("            <img src=\"http://image2.mop.com/comment/images\/ping_05.gif\" \/> 猫扑网友fghj　2009-07-14 13:34:52　来自福建省泉州市永春县");
document.writeln("            <\/div>");
document.writeln("            <div class=\"infor\">出售安溪铁观音13615906788 QQ:83717823 本山黄金桂毛蟹等高低档茶叶<br/><br/>联系电话：0595--26075976  013615906788 张先生<br/>联系QQ： 83717823<br/>联系邮箱：83717823@qq.com<br/>联系网址：http://www.3e283.com<br/>我们的目标：以茶会友！以诚待人！ <br/><br/>我们的宗旨：客户至上！优质服务！客户关心我关心！客户发展我发展！ <br/><br/>共同的祝愿：一同品茶！让空间更加有味！共同成长！让人生更加成功！<br/><br/>安溪铁观音铁观音茶铁观音是什么茶铁观音是绿茶吗铁观音属于什么茶 <br/>铁观音的功效   茶叶   铁观音价格   铁观音茶叶   铁观音 绿茶 清香、浓香、特级、高山、凤山、八马、天福、华福、上第、华祥苑、三和、长和、珍田、铁观音集团、QS、QS认证、质量安全铁观音、茶叶、清香铁观音、浓香铁观音、特级铁观音、高山铁观音、凤山铁观音、八马铁观音、天福铁观音、华福铁观音、上第铁观音、华祥苑铁观音、三和铁观音、长和铁观音、珍田铁观音、铁观音茶叶集团、QS铁观音、QS认证铁观音、质量认证铁观音、观音王、安溪铁观音王、茶王、金奖茶王、铁观音王、观音价格、铁观音王价格、铁观音行情、送礼专用茶、礼品茶、高档铁观音、生态铁观音、绿色铁观音、高档铁观音价格、春茶、春茶上市、春茶铁观音价格、铁观音春茶、铁观音王专卖、乌龙茶铁观音、铁观音高山、高山观音王、感德铁观音、野生铁观音、正味铁观音、品牌铁观音、名牌铁观音、铁观音茶叶、铁观音茶叶供应商、酸香铁观音、托酸铁观音、特级观音王价格、特级高山铁观音、送礼高档茶、铁观音股票、铁观音网、铁观音茶文化、安溪凤山铁观音价格、八马铁观音价格、八马茶业、长和茶业、三和茶业、安溪铁观音集团、上好铁观音、上等铁观音、安溪铁观音最大铁观音生产制造商、安溪茶叶.安溪茶叶门户 安溪铁观音.铁观音批发.铁观音市场.中国铁观音茶乡.铁观音.铁观音视频.铁观音图片.铁观音音乐.铁观音茶业.铁观音王.铁观音批发.铁观音茶叶.茶叶文化.茶叶中国.茶叶商场.中国铁观音.铁观音加盟.铁观音功夫.茶具.铁观音茶具.茶叶网.安溪茶叶网.安溪茶.安溪铁观音茶叶网.安溪铁观音茶叶.铁观音网.中国铁观音茶叶网.中国最好的茶叶市场.铁观音供应商.铁观音茶厂.铁观音集团.安溪茶厂.铁观音茶叶总公司.安溪茶叶总公司.安溪茶叶学会.张天福.天福茶博馆.普洱茶.云南茶.红茶.青茶.绿茶.花茶.铁观音茶叶文化.铁观音生活.铁观音网站.铁观音神州行.铁观音价格.铁观音批发价.铁观音市场价.铁观音毛茶.铁观音净茶.铁观音茶园.铁观音文化.茶叶.网址之家.HAO123.秋茶．铁观音秋茶.秋茶上市价格.秋茶市场.秋茶铁观音.秋茶批发价.铁观音茶.铁观音功效.铁观音介绍.铁观音的价格.铁观音产地.铁观音的作用.铁观音传奇.铁观音的由来.铁观音的好处.福建铁观音.铁观音减肥.铁观音聊天室.铁观音批发.福建安溪铁观音.茶农网-铁观音-安溪铁观音-茶叶-安溪茶叶-专业经营原产地安溪铁观音茶叶批发与零售,欢迎加盟铁观音茶叶网铁观音-铁观音茶叶-乌龙茶铁观音安溪茶叶主要有－乌龙茶-本山-毛蟹-黄金桂（黄旦）-梅占铁观音茶叶批发网 安溪铁观音原产地茶农专业批发,欢迎购买.高山铁观音.生态茶园.台湾乌龙茶.冻顶乌龙.安溪香茗.最新茶叶.批发.茶点.茶楼.中华茶文化 茶叶法规 安溪色种 铁观音品质鉴定 安溪铁观音 乾隆与茶 随唐茶文化 历代贡茶 古今茶道乌龙茶茶艺解说 饮茶十大好处 安溪茶诗 宋元茶文化 十大名茶 茶具选配 怎样泡茶茶更香？ 茶的药用成分 饮茶分四季 明清茶文化 优茶简介 饮茶健康 乌龙茶的保健功能 茶的饮用方法 铁观音简介 茶文化传播 茶与茗人 茶事掌故 乌龙茶可预防食管癌 安溪空调制茶 擂茶其传说 茶具发展史 茶之传说 茶诗妙句 乌龙茶的泡饮技艺 四种茶喝不得 药理作用 漫话中国茶 女性喝茶 茶树原产 茶具的种类和产地 各民族饮茶习惯 营养价值 茶叶美容法 茶的起源 饮茶用水 神奇的茶叶有妙用 茶具精品鉴赏 饮茶史 治感冒茶方 茶的传播 茶的发展 春茶夏茶秋茶的鉴别 中秋清茶伴月圆 制茶<br/> <br/><br/><\/div>");
document.writeln("            ");
document.writeln("            <!--鼠标滑过时显示开始-->");
document.writeln("            <div class=\"left\"  style=\"display:none;\" id=\"hi_227\">");
				
document.writeln("                <div class=\"kapian\"  style=\"margin-left:230px;\"><a href=\"javascript:void(0);\" onclick=\"share(3,2006675);\">分享给好友<\/a><\/div>");
            	
document.writeln("          	<\/div>");
document.writeln("            <!--鼠标滑过时显示结束-->");
document.writeln("            ");
document.writeln("            <div class=\"right\">");
document.writeln("            	<div class=\"kapian\"><div class=\"ding_cai\" id=\"up_227\" style=\"display:none;\"></div><a href='javascript:void(0);' onclick='updown(\"up\",3,2006675,227);'><b class=\"cyellow\">顶<\/b></a><span class=\"cyellow\" id=\"upnum_227\">(0)<\/span><\/div>");
document.writeln("                <div class=\"kapian\"><div class=\"ding_cai\" id=\"down_227\" style=\"display:none;\"></div><a href='javascript:void(0);' onclick='updown(\"down\",3,2006675,227);'><b class=\"cblack\">踩<\/b></a><span id=\"downnum_227\">(0)<\/span><\/div>");
document.writeln("          <\/div>");
document.writeln("            ");
document.writeln("        <\/div>");
document.writeln("    <\/div>");
document.writeln("	<!--一组评论内容结束-->")


var ht = '&nbsp;&nbsp;<a href="http://comment.mop.com/comment.do?pid=3&aid=2006675" target="_blank" class="cyellow"><span class="f12">已有评论(3)</span></a>　<a href="javascript:void(0);" onclick="share(3,2006675);"><img src="http://image2.mop.com/comment/images/ping_00.gif" style="vertical-align:middle;" /></a>';
document.getElementById('title_comment').innerHTML = ht;



document.writeln("<!--操作失败弹出开始-->");
document.writeln("<div class=\"pop\" style=\"width:350px;display:none;\" id=\"popDiv\">");
document.writeln("	<div class=\"contentk\">");
document.writeln("   	  <div class=\"pad5\">");
document.writeln("  		<h1 class=\"title_sm\"><span><img src=\"http:\/\/image2.mop.com\/comment\/images\/ping_16.gif\" style=\"cursor:pointer\" onclick=\"$(\'#popDiv\').hide();\" \/><\/span><b id=\"popTitle\"><img src=\"http:\/\/image2.mop.com\/comment\/images\/ping_18.gif\" \/> 操作失败<\/b><\/h1>");
document.writeln("    	");
document.writeln("        <div class=\"informp\" id=\"popContent\">您的MP不足50，<a href=\"#\" style=\"text-decoration:underline;\">点击这里即可轻松获得MP！<\/a><br \/>");
document.writeln("<a href=\"#\" style=\"text-decoration:underline;\">查看这里<\/a> 了解更多MP信息<\/div>");
document.writeln("        ");
document.writeln("		<div class=\"blank4\"><\/div>");
document.writeln("    	<\/div>");
document.writeln("	<\/div>");
document.writeln("  <div class=\"clearit\"><\/div>");
document.writeln("<\/div>");
document.writeln("<!--操作失败弹出结束-->");