function open(k,t)
{
   if(k=="")
   {
        alert("请选择要收藏的文章!!!");
        return;
   }
   
   var ifme = document.createElement("iframe");
   var bg = document.createElement("div");
   
   ifme.id = "ifme";
   bg.id = "bgFavourites";
   
   ifme.frameBorder = "0";
   ifme.scrolling = "no";
   ifme.style.cssText = "position:absolute;margin-top:0px;top:0px;left:0px;width:0px;height:0px;z-index:10;border:1px #000 solid;";

   ifme.src = "/Favourites.aspx?t="+t+"&k="+k;
   
   document.body.appendChild(bg);
   document.body.appendChild(ifme);
   
}
function showFavourites()
{
   
    var ifme = document.getElementById("ifme");
    var bg = document.getElementById("bgFavourites");    
    
    ifme.style.cssText = "position:absolute;top:0px;left:350px;width:315px;height:246px;z-index:210;overflow:hidden; border:0px #000 solid;margin-top:"+(200+document.documentElement.scrollTop)+"px;";
    bg.style.cssText = "padding:0px;Z-INDEX: 200; POSITION: absolute;display:block;background-color:#cccccc; width: 100%; height: "+(document.documentElement||document.body).scrollHeight+"px;filter: Alpha(Opacity=80, Style=0);opacity: 0.80; left: 0px; top: 0px;";

        
    document.body.onscroll = function(){
         ifme.style.cssText = "position:absolute;top:0px;left:350px;width:315px;height:246px;z-index:210;overflow:hidden; border:0px #000 solid;margin-top:"+(200+document.documentElement.scrollTop)+"px;";
         bg.style.cssText = "padding:0px;Z-INDEX: 200; POSITION: absolute;display:block;background-color:#cccccc; width: 100%; height: "+(document.documentElement||document.body).scrollHeight+"px;filter: Alpha(Opacity=80, Style=0);opacity: 0.80; left: 0px; top: 0px;";
    }
}
function close()
{
    document.body.removeChild(document.getElementById("ifme"));
    document.body.removeChild(document.getElementById("bgFavourites"));
}
function getChkValue(n)
{
    var tmp = "";
    var chks = document.getElementsByName(n);
    for(var i =0 ;i<chks.length;i++)
    {
            if(chks[i].checked == true)
                tmp += chks[i].value + "$";
    }
    
    tmp = tmp.substring(0,tmp.length-1);
    return tmp;
}