




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='7'>");
	document.writeln("<input type='hidden' name='aid' id='aid' value='243967'>");
	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='7'>");
	document.writeln("<input type='hidden' name='aid' id='aid' value='243967'>");
	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\">2<\/b> 条　<a href=\"http://comment.mop.com/comment.do?pid=7&aid=243967\">查看全部回复<\/a><\/div>")


document.writeln("<!--一组评论内容开始-->");
document.writeln("	<div class=\"pinglun_con\" onmouseover=\"mouseAComment('over','33')\" onmouseout=\"mouseAComment('out','33')\">");
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\" \/> 猫扑网友rainy4625　2009-07-11 23:23:10　来自江苏省南京市");
document.writeln("            <\/div>");
document.writeln("            <div class=\"infor\">             中国，你到底还要软弱到什么时候！！！<br/>\"别打我妈妈，别打我妈妈\"，一个小男孩蹲在路边大哭，而他的母亲则遭到数名手持棍棒的极端分子的攻击。<br/>这只是在乌鲁木齐发生的暴力事件的一个切面。这个母亲遭到攻击的同时，在乌鲁木齐的其他地方，在人民广场、新华南路、外环路等地，一群人数不明的暴力犯罪分子手持刀具、棍棒，攻击沿街店铺、车辆及行人。<br/>   这群极端分子并没有明确的攻击对象，他们拦下公交车，袭击车上的乘客；在路上追打、乱砍路上的行人。一位名叫阿布都拉的保安对中新社的记者说，\"他们见人就打，跟疯了一样\"。<br/>   暴力事件发生在7月5日的20时左右，在新疆天色还很亮，许多人还和往常一样逛街。然后极端分子挥着棍棒和凶器突如其来，在几个小时内，就造成了184人死亡，816人受伤。<br/>   新闻讲什么“打砸抢事件”，这是“打砸抢事件”吗？死了184人，184！！一个大学的讲堂也就能坐200人左右！在路上被拿着刀的人追着砍，还叫什么“打砸抢事件”吗！！！中国的新闻也只会那样写了，新闻联播是播什么，不就是几个领导人的写真集吗？？？怪不得央视大楼失火被烧，天都想灭你了！狗屁的中央电视台！看清楚了，是屠杀，完完全全是恐怖，还什么事件！！中国政府也只能这样来安慰广大群众!<br/>   最近看了新疆乌鲁木齐的严重暴力事件，一个省的省会，几千名暴徒能杀几百人，能烧200多辆车，其中公交车190几辆！110你跑哪去了？死了？傻逼了？国家他妈养你白养了，FUCK110，一群废物！伤中国人的心啊！现在在大街上能看到很多挂着军车牌照的豪华车，奥迪，保时捷……你他妈拿国家的钱享受啊，在新疆，我们的同胞正在被人屠杀，军队就是一群蛀虫！<br/>最近我们荷兰的大使馆又遭到150多名暴徒的袭击，事前大使馆要求荷兰做出相应的警力部署措施，在袭击发生时，只有少数的警力部署在周围，后来也只是把暴徒驱散，我们外交部说什么，能说什么，严重交涉，仅此而已！就这样的软弱态度，换作为是恐怖袭击者，我保证在大使馆上拉上一坨屎，你他妈交涉去吧！该软弱吗？不要说什么政治是怎么怎么玩的，人家在你头上拉屎了，可笑，以后呆里面别出来了，省得别人笑话！<br/>凡是都有个循序渐进的过程，别人看你是不是软弱也是，最先是南斯拉夫大使馆被炸，飞机被撞，拉萨，再到新疆，就像你老婆先被人看，再被摸，再被占便宜，最后直接了，fuck你！<br/>钱，什么时候都能赚，保经济？？人家看你的东西便宜，属于资源型的，一块电脑主板换你几棵树，人家爽，你傻逼似的接过钱笑，这样的经济不保也罢！美国一不爽，你看看，中国马上派采购团，把钱送给人家，奴性，奴性啊！<br/>不要让我们再伤心下去！<br/>                                                     字眼当子弹<br/><\/div>");
document.writeln("            ");
document.writeln("            <!--鼠标滑过时显示开始-->");
document.writeln("            <div class=\"left\"  style=\"display:none;\" id=\"hi_33\">");
				
document.writeln("                <div class=\"kapian\"  style=\"margin-left:230px;\"><a href=\"javascript:void(0);\" onclick=\"share(7,243967);\">分享给好友<\/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_33\" style=\"display:none;\"></div><a href='javascript:void(0);' onclick='updown(\"up\",7,243967,33);'><b class=\"cyellow\">顶<\/b></a><span class=\"cyellow\" id=\"upnum_33\">(0)<\/span><\/div>");
document.writeln("                <div class=\"kapian\"><div class=\"ding_cai\" id=\"down_33\" style=\"display:none;\"></div><a href='javascript:void(0);' onclick='updown(\"down\",7,243967,33);'><b class=\"cblack\">踩<\/b></a><span id=\"downnum_33\">(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','30')\" onmouseout=\"mouseAComment('out','30')\">");
document.writeln("    	<p class=\"pic\"><a href='http://hi.mop.com/profile2.do?id=29208961' 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-11 17:13:52　来自陕西省西安市");
document.writeln("            <\/div>");
document.writeln("            <div class=\"infor\">?体工队<\/div>");
document.writeln("            ");
document.writeln("            <!--鼠标滑过时显示开始-->");
document.writeln("            <div class=\"left\"  style=\"display:none;\" id=\"hi_30\">");
				
document.writeln("                <div class=\"kapian\"  style=\"margin-left:230px;\"><a href=\"javascript:void(0);\" onclick=\"share(7,243967);\">分享给好友<\/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_30\" style=\"display:none;\"></div><a href='javascript:void(0);' onclick='updown(\"up\",7,243967,30);'><b class=\"cyellow\">顶<\/b></a><span class=\"cyellow\" id=\"upnum_30\">(0)<\/span><\/div>");
document.writeln("                <div class=\"kapian\"><div class=\"ding_cai\" id=\"down_30\" style=\"display:none;\"></div><a href='javascript:void(0);' onclick='updown(\"down\",7,243967,30);'><b class=\"cblack\">踩<\/b></a><span id=\"downnum_30\">(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=7&aid=243967" target="_blank" class="cyellow"><span class="f12">已有评论(2)</span></a>　<a href="javascript:void(0);" onclick="share(7,243967);"><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("<!--操作失败弹出结束-->");