function gettitle()
{
 var URL = document.URL;
 var last = 0;
 var NewsID;
 var title,channel;

 title = document.title

 NewsID = URL;
 last = NewsID.lastIndexOf("/");
 NewsID = NewsID.substr(last);
 var arrTmp = NewsID.split("_");
 if (arrTmp.length > 1)
  NewsID = arrTmp[1];
 else
  NewsID = "8888";
		
 last = NewsID.indexOf(".");
 if (last != -1)
  NewsID = NewsID.substr(0,last);

 var arrTitle = title.split("-");
 if (arrTitle.length > 2)
 {
  channel = arrTitle[1];
  title = arrTitle[0];
 }
 else
 {
  title = "瑞丽网站文章";
  if (arrTitle.length == 2)
   channel = arrTitle[1];
  else
	 channel = "无频道";
 }
 
 CommentPost.NewsID.value=NewsID;
 CommentPost.NewsTitle.value = title;
 CommentPost.NewsURL.value=URL;
 CommentPost.Channel.value = channel;

 CommentPost.submit();
 return false;
}

document.write("<form target='blank' name='CommentPost' method='post' action='http://comment.rayli.com.cn/comment/wwwPost.aspx'>");
document.write("<input type='hidden' name='NewsID' value=''><!--填新闻编码-->");
document.write("<input type='hidden' name='NewsTitle' value=''><!--填新闻标题-->");
document.write("<input type='hidden' name='NewsURL' value=''><!--填新闻URI-->");
document.write("<input type='hidden' name='Channel' value=''><!--填新闻URI-->");
//document.write("<a style='cursor:hand' onclick='gettitle()'>发表评论</a>");
document.write("</form>");
