		function check_reply(){
						with(document.getElementById("formreply")){
							if (formcontent.value==""||formcontent.value.length==0){
								alert("请输入评论内容！");
								formcontent.focus();
								return false;
							}
							if (formcontent.value.length<1){
								alert("请输入评论内容，至少1个中英文");
								formcontent.focus();
								return false;
							}
							if (formcontent.value.length>100){
								alert("评论内容太长！");
								formcontent.focus();
								return false;
							}
							if (formrandom.value==""||formrandom.value.length!=4||isDigit(formrandom.value)==false){
										alert("请正确输入验证码！");
										return false;
							}
							doRequestUsingPOST();
						  }
					}
					function createQueryString(){
							var topid=encodeURI(encodeURI($("#formtopid").val()));
							var intp=encodeURI(encodeURI($("#formintp").val()));
							var random=encodeURI(encodeURI($("#formrandom").val()));
							var usid= encodeURI(encodeURI($("#formusid").val()));
							var content = encodeURI(encodeURI($("#formcontent").val()));
							var queryString = "topid="+topid+"&intp="+intp+"&random="+random+"&usid="+usid+"&content="+content;
							document.getElementById("formusid").value="";
							document.getElementById("formcontent").value="";
							document.getElementById("formrandom").value="";
							return queryString;
					}
					function createQueryString1(){
							var topid=encodeURI(encodeURI($("#formtopid").val()));
							var intp=encodeURI(encodeURI($("#formintp").val()));
							var queryString = "topid="+topid+"&intp="+intp;
							return queryString;
					}
					function doRequestUsingPOST(){
						$.ajax({
							type: "POST",
							url: "/reply/replyadd.do",
							data: createQueryString(),
							success: function(data){
							    var getdata=decodeURI(data);
							    if(getdata.indexOf("<")>-1){
							    	var displaycontent=$.trim($("#display").html());
									if(displaycontent=="暂无评论"){
										$("#display").html("");
									}
									$("#display").append(decodeURI(data));
									$("#main_errors").html("");
								}else
									$("#main_errors").html(getdata);
								document.getElementById("codeImage").onclick();
							}
						});
					}
					function doRequestUsingPOST1(){
						$.ajax({
							type: "POST",
							url: "/reply/replyedit.do",
							data: createQueryString1(),
							success: function(data){
								$("#display").append(decodeURI(data));
							}
						});
					}
					
					doRequestUsingPOST1();