<!--
// 提交留言函数
function submit_post( post_form ) {
	if ( !post_form.anonymous.checked && 
		 (post_form.user.value=="" ||
		 post_form.pass.value=="") ) {
		alert( "请核选“匿名发表”或者填写“登录名”及“密码”" );
		return false;
	}
	if ( trim(post_form.content.value)=="" ) {
		alert( "请输入您的留言" );
		post_form.content.focus();
		return false;
	}
	if ( trim(post_form.checkcode.value)=="" ) {
		alert( "请输入您的验证码" );
		post_form.checkcode.focus();
		return false;
	} 
	if(post_form.content.value.indexOf("www")>-1 || post_form.content.value.indexOf("http://")>-1)
	{
		alert("提交内容中不允许存在链接!");
		return false;
	}
	
	// post param		
	post_form.submit();
}

// 快捷回复
function quick_reply( newsid, sourceid, content ) 
{
	var POST="index.aspx";
	if (newsid=="" || sourceid==""|| content=="" ) return;
	
	var url = POST+"?newsid="+newsid+"&sourceid="+sourceid+"&content="+content;
	document.location = url;
}

-->


