<!--

function SetCookie1(name,value,ss)
{
    var exp  = new Date();    //new Date("December 31, 9998");
    exp.setTime(exp.getTime() + ss*1000);
    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString()+";path=/;domain=mcqyy.com;";
}
function getCookie(name)       
{
    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
     if(arr != null) return unescape(arr[2]); return null;
}


if (window.location.href.length > 8) {
	if(document.referrer.indexOf("%CA%E9%B4%E5")>-1 ){
		SetCookie1("baidudd1","1",60*60*24*366);
	}
}

//复制网址
function CopyToClipBoard(){
	var clipBoardContent=''; 
	clipBoardContent+="《"+articlename+"》"+"在线阅读网址:";
	clipBoardContent+=window.location;
	window.clipboardData.setData("Text",clipBoardContent);
	alert("你已复制链接及标题，请粘贴到POPO/MSN/QQ等发给好友!");
}

//设为主页 
function SetHome(obj, vrl) {   
    try {   
        obj.style.behavior = 'url(#default#homepage)';   
        obj.setHomePage(vrl);   
    } catch (e) {   
        if (window.netscape) {   
            try {   
                netscape.security.PrivilegeManager   
                        .enablePrivilege("UniversalXPConnect");   
            } catch (e) {   
                alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。");   
            }   
            var prefs = Components.classes['@mozilla.org/preferences-service;1']   
                    .getService(Components.interfaces.nsIPrefBranch);   
            prefs.setCharPref('browser.startup.homepage', vrl);   
        }   
    }   
}   

//收藏本站   
function AddFavorite(sURL, sTitle) {   
    try {   
        window.external.addFavorite(sURL, sTitle);   
    } catch (e) {   
        try {   
            window.sidebar.addPanel(sTitle, sURL, "");   
        } catch (e) {   
            alert("加入收藏失败，请使用Ctrl+D进行添加");   
        }   
    }   
}   

//信息页书评JS检测
function jieqiFormValidate_frmreview(){
  if ( window.document.frmreview.pcontent.value == "" ){
    alert( "什么也没输入，太不给力了吧" );
    window.document.frmreview.pcontent.focus();
    return false;
  }
  return true;
}

//顶部登陆模块
function TopLogin(){
  document.writeln("<script src=\"/js/toplogin.js\"></script>");
}

//管理书籍
function Manage(){
  document.write("<a href=\'/modules/article/articlemanage.php?id="+articleid+"\'>管理</a>");
}

//举报书籍
function ReportBug(){
  document.write("<a href=\'/newmessage.php?tosys=1&title=举报：《"+articlename+"》&content=举报原因如下(请详细说明原因)：\' target=\"_blank\">举报</a>");
}

//网站统计
function WangZhanTongJi(){
  document.write("<script src=\"http://s84.cnzz.com/stat.php?id=3499585&web_id=3499585\" language=\"JavaScript\"></script>");
}

//--> 
