function show_rank(obj,col){
	var a = document.getElementById(obj);
	if (a!="")
	{
		document.getElementById('topic_1').style.display = 'none';
		document.getElementById('topic_2').style.display = 'none';


		document.getElementById(obj).style.display = 'block';

		document.getElementById("col_1").className = 'but1 r hoa';
		document.getElementById("col_2").className = 'but1 r hoa';
		document.getElementById(col).className = 'but r';

	}	
	
}


function show_news_rank(obj,col){
	var a = document.getElementById(obj);
	if (a!="")
	{
		document.getElementById('hot_doc_1').style.display = 'none';
		document.getElementById('hot_doc_2').style.display = 'none';


		document.getElementById(obj).style.display = 'block';

		document.getElementById("col_1").className = 'r but bai';
		document.getElementById("col_2").className = 'r but bai';
		document.getElementById(col).className = 'r but1 ho';

	}	
	
}


function copy_addr(){
	var clipBoardContent=window.location.href;
	if (window.clipboardData){
	   window.clipboardData.setData("Text",clipBoardContent);
	   alert("ÄúÒÑ¸´ÖÆ³É¹¦");
	   return true;
	}

}


function myAddPanel(title,url,desc)
{
	if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))//Gecko
	{
		window.sidebar.addPanel(title,url,desc);
	}
	else//IE
	{
		window.external.AddFavorite(url,title);
	}
	

}



function pinglun(){


	var iObj = document.getElementById('iframe_comm').contentDocument; 
	iObj.getElementsById('content').focus(); 


}


/*function chk_frm(){
	var frm = document.getElementById('search_frm');
	if (frm.action==search_arr["search_navi_6"])
	{
		var tkey = document.getElementById('tkey');
		var keyword = document.getElementById('keyword');
		tkey.value= keyword.value;
		keyword.value="";
	}
}*/
function readCookie(name){
  var cookieValue = "";
  var search_s = name + "=";
  if(document.cookie.length > 0)
  {
    offset = document.cookie.indexOf(search_s);
    if (offset != -1)
    {
      offset += search_s.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) end = document.cookie.length;
      cookieValue = decodeURI(document.cookie.substring(offset, end))
    }
  }
  return cookieValue;
}


