function logout() 
{ 
    var txt = "/user/logout.asp"; 
    var Ajax = new ajax();  
	Ajax.Method = "post";       
	Ajax.Url = txt;                      
	Ajax.Async = true;          
	Ajax.Arg = "";
	Ajax.CallBack = function(str)      
	{ 
		var arr = str.split("$");
		var state = arr[0];
		var msg = arr[1];
		if(state=="0")
		{
			parent.document.location.href = "/";
		}
		else
		{
		}
	} 
	Ajax.Send();                      
} 
function vote(articleid) 
{ 
    var txt = "/user/vote.asp"; 
    var Ajax = new ajax();  
	Ajax.Method = "post";       
	Ajax.Url = txt;                      
	Ajax.Async = true;          
	Ajax.Arg = "articleid="+articleid;
	Ajax.CallBack = function(str)      
	{ 
		var arr = str.split("$");
		var state = arr[0];
		var msg = arr[1];
		alert(msg);
	} 
	Ajax.Send();                      
} 
function getRnd(min,max)
{
	return Math.round((max-min)*Math.random()+min);
}
function LookComment()
{
	var articleid = $("articleid").value;
	window.open("/LookComment.asp?ArticleId="+articleid);
}
function copyToClipBoard()
{
	var clipBoardContent=""; 
	clipBoardContent+=document.all("title").value;
	clipBoardContent+="\r"+document.location.toString();
	window.clipboardData.setData("Text",clipBoardContent);
	alert("复制成功，请粘贴到你的QQ/MSN上推荐给你的好友");
}
function IWantToComment()
{
	document.location.href='#postcomment';
	window.frames['frm_postcomment'].document.getElementById('content').focus();
	alert('请在文本框输入您的评论内容，然后点“发表评论”按钮');
}
