// JavaScript Document

document.writeln("<link href=\"http:\/\/css.stdaily.com\/css\/comment\/comment1.css\" rel=\"stylesheet\" type=\"text\/css\">")
document.writeln('<script language="javascript" type="text/javascript" src="http://css.stdaily.com/css/head/head3.js"></script>');



































//添加到收藏
function addCookie()
{
 if (document.all)
    {
       window.external.addFavorite('http://newweb.stdaily.com/kjrb/index.htm','科技日报');
    }
    else if (window.sidebar)
    {
       window.sidebar.addPanel('科技日报', 'http://newweb.stdaily.com/kjrb/index.htm', "读者为本 科技为源");
 }
}
//设为首页
function setHomepage()
{
 if (document.all)
    {
        document.body.style.behavior='url(#default#homepage)';
  document.body.setHomePage('http://newweb.stdaily.com/kjrb/index.htm');
 
    }
    else if (window.sidebar)
    {
    if(window.netscape)
    {
         try
   {  
            netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
         }  
         catch (e)  
         {  
    alert( "该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true" );  
         }
    } 
    var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
    prefs.setCharPref('browser.startup.homepage','http://www.stdaily.com');
 }
}




