document.writeln("<form name=\"tform\">");
document.writeln("<input type=\"hidden\" name=\"word\">");
document.writeln("<input type=\"hidden\" name=\"furl\">");
document.writeln("<input type=\"hidden\" name=\"ffrom\">");
document.writeln("<\/form>");

//
document.writeln("<form name=\"form_book\">");
document.writeln("<input name=\"f_bookid\" type=\"hidden\" id=\"f_bookid\">");
document.writeln("<input name=\"f_title\" type=\"hidden\" id=\"f_title\">");
document.writeln("<input name=\"f_author\" type=\"hidden\" id=\"f_author\">");
document.writeln("<input name=\"f_magid\" type=\"hidden\" id=\"f_magid\">");
document.writeln("<input name=\"f_check\" type=\"hidden\" id=\"f_check\">");
document.writeln("<input name=\"f_urladd\" type=\"hidden\" id=\"f_urladd\">");
document.writeln("<\/form>");
//


var title = document.title + '-世纪图书馆';
var url = window.location.href;
function addBrowserFavorite() {
    if (window.sidebar) {
        if (title.length >= 76)
            window.sidebar.addPanel(title.substring(0, 76), url, '');
        else
            window.sidebar.addPanel(title, url, '');
    }
    else if (document.all)
        window.external.addFavorite(url, title);
    else if (window.opera && window.print)
        return true;
}
function addYahooFavorite() {
    window.open('http://myweb.cn.yahoo.com/popadd.html?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title), 'Yahoo', 'scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes');
}
function addBaiduFavorite() {
    if (title.length >= 76)
        window.open('http://cang.baidu.com/do/add?it=' + encodeURIComponent(title.substring(0, 76)) + '&iu=' + encodeURIComponent(url) + '&fr=ien#nw=1', '_blank', 'scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');
    else
        window.open('http://cang.baidu.com/do/add?it=' + encodeURIComponent(title) + '&iu=' + encodeURIComponent(url) + '&fr=ien#nw=1', '_blank', 'scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');
}


    function toueme() {
        document.getElementById("top_head").style.display = "none";
    }
function f_search()
{
if ((document.all.myform.f_word.value == "")||(document.all.myform.f_word.value =="请输入查询关键字！"))
{		alert("请输入查询关键字");
	   document.all.myform.f_word.focus();
	   return false
}

document.all.myform.method="get";
document.all.myform.action="http://www.redlib.cn/search/search.html";
document.all.myform.target="_blank";

//document.all.myformmag.Submit.disabled=true;

//if(confirm("网站开通了 [通过谷歌搜索],使用谷歌搜索可能会搜索到更多的本站的文献资源。\n\n点击 [确认] 继续使用快速搜索方式进行检索。"))
{
document.all.myform.submit();
}
}
function f_search_bd()
{
if ((document.all.myform.f_word.value == "")||(document.all.myform.f_word.value =="请输入查询关键字！"))
{		alert("请输入查询关键字");
	   document.all.myform.f_word.focus();
	   return false
}
document.all.myform.method="post";
document.all.myform.action="http://www.redlib.cn/search/baidu.html";
document.all.myform.target="_blank";

//document.all.myformmag.Submit.disabled=true;
document.all.myform.submit();

}
function f_search_gg()
{
if ((document.all.myform.f_word.value == "")||(document.all.myform.f_word.value =="请输入查询关键字！"))
{		alert("请输入查询关键字");
	   document.all.myform.f_word.focus();
	   return false
}

if (document.all.myform.f_type.value == "3")
{		alert("搜索期刊名字请用快速搜索");
	   document.all.myform.f_type.focus();
	   return false
}
document.all.myform_gg.q.value=document.all.myform.f_word.value;
document.all.myform_gg.action="http://www.google.cn/custom";
//document.all.myformmag.Submit.disabled=true;
document.all.myform_gg.target="_blank";
document.all.myform_gg.submit();

}
function f_search_book()
{
if ((document.all.myform.f_word.value == "")||(document.all.myform.f_word.value =="请输入查询关键字！"))
{		alert("请输入查询关键字");
	   document.all.myform.f_word.focus();
	   return false
}


document.all.myform_gg.q.value=document.all.myform.f_word.value;
document.all.myform_gg.action="http://www.redlib.cn/search/book.asp";
//document.all.myformmag.Submit.disabled=true;
document.all.myform_gg.target="_blank";
document.all.myform_gg.submit();

}
function f_searchadver()
{
if (document.all.myformadver.f_word.value == "")
{		alert("请输入查询关键字");
	   document.all.myformadver.f_word.focus();
	   return false
}
document.all.myformadver.method="get";
document.all.myformadver.action="http://www.redlib.cn/search/search.html";
document.all.myformadver.target="_blank";

//document.all.myformmag.Submit.disabled=true;
document.all.myformadver.submit();

}

function f_searchqikan()
{
if (document.all.myformqikan.f_word.value == "")
{		alert("请输入查询关键字");
	   document.all.myformqikan.f_word.focus();
	   return false
}
document.all.myformqikan.method="get";
document.all.myformqikan.action="http://www.redlib.cn/search/search.html";
document.all.myformqikan.target="_blank";

//document.all.myformmag.Submit.disabled=true;
document.all.myformqikan.submit();

}

function f_author(s)
{


var strHref =window.document.location.href;

document.all.myform_gg.q.value=s;
document.all.myform.f_word.value=s;

//document.all.myformmag.Submit.disabled=true;
document.all.myform_gg.target="_blank";

if (window.navigator.systemLanguage=="zh-cn")
{
document.all.myform_gg.submit();

}
}

function f_ck(s)
{

var strHref =window.document.location.href;

document.all.myform_gg.q.value=s;
document.all.myform.f_word.value=s;

//document.all.myformmag.Submit.disabled=true;
document.all.myform_gg.target="_blank";

if (window.navigator.systemLanguage=="zh-cn")
{
document.all.myform_gg.submit();

}
}
function f_key(s)
{

var strHref =window.document.location.href;

document.all.myform_gg.q.value=s;
document.all.myform.f_word.value=s;

//document.all.myformmag.Submit.disabled=true;
document.all.myform_gg.target="_blank";

if (window.navigator.systemLanguage=="zh-cn")
{
document.all.myform_gg.submit();

}
}
function setClipboard(maintext) {
   if (window.clipboardData) {
      return (window.clipboardData.setData("Text", maintext));
   }
   else if (window.netscape) {
		try {
      netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
      var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
      if (!clip) return;
      var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
      if (!trans) return;
      trans.addDataFlavor('text/unicode');
      var str = new Object();
      var len = new Object();
      var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
      var copytext=maintext;
      str.data=copytext;
      trans.setTransferData("text/unicode",str,copytext.length*2);
      var clipid=Components.interfaces.nsIClipboard;
      if (!clip) return false;
      clip.setData(trans,null,clipid.kGlobalClipboard);
      return true;
				} catch (e) {
					alert("如果不能复制请修改你的FireFox浏览器的about:config\n将signed.applets.codebase_principal_support属性改为true!");
				} finally {
				}

   }
   return false;
}
function f_copy()
{
var f_urladd =window.document.location.href;
var f_title=document.getElementById("b_title").innerHTML;
setClipboard("世纪图书馆－最大的中文免费图书网站－"+f_title+"－"+f_urladd);
alert("你可以将该地址复制发送给你的QQ好友了:>");

}
function f_print()
{
var f_urladd =window.document.location.href;

document.all.form_book.f_bookid.value=document.getElementById("b_lwid").innerHTML;
document.all.form_book.f_title.value=document.getElementById("b_title").innerHTML;
document.all.form_book.f_author.value=document.getElementById("b_author").innerHTML;
document.all.form_book.f_magid.value=document.getElementById("b_magid").innerHTML;
document.all.form_book.f_check.value=document.getElementById("b_check").innerHTML;
document.all.form_book.f_urladd.value=f_urladd;
document.all.form_book.action="/user/my_print.asp";
document.all.form_book.target="_blank";
document.all.form_book.method="post";
document.all.form_book.submit();
/**/
}
function fun_pay()
{
var f_urladd =window.document.location.href;
document.all.form_book.f_bookid.value=document.getElementById("b_lwid").innerHTML;
document.all.form_book.f_title.value=document.getElementById("b_title").innerHTML;
document.all.form_book.f_author.value=document.getElementById("b_author").innerHTML;
document.all.form_book.f_magid.value=document.getElementById("b_magid").innerHTML;
document.all.form_book.f_check.value=document.getElementById("b_check").innerHTML;
document.all.form_book.f_urladd.value=f_urladd;
document.all.form_book.action="/user/my_bookadd.asp";
document.all.form_book.method="post";
document.all.form_book.target="_blank";
document.all.form_book.submit();
}
function fun_free()
{

var f_urladd =window.document.location.href;
document.all.form_book.f_bookid.value=document.getElementById("b_lwid").innerHTML;
document.all.form_book.f_title.value=document.getElementById("b_title").innerHTML;
document.all.form_book.f_author.value=document.getElementById("b_author").innerHTML;
document.all.form_book.f_magid.value=document.getElementById("b_magid").innerHTML;
document.all.form_book.f_check.value=document.getElementById("b_check").innerHTML;
document.all.form_book.f_urladd.value=f_urladd;
document.all.form_book.action="/user/down_free.asp";
document.all.form_book.method="post";
document.all.form_book.target="_blank";
if(confirm("免费下载只提供文献第一页下载，如需要全文请成为付费会员后下载。\n\n如果您是付费会员请点击付费下载获取完整文献。\n\n请点击 [确认] 免费下载文献第一页。\n\n请允许您的浏览器弹出窗口，否则无法下载。"))
{
document.all.form_book.submit();
}


}

function checkshow()
{
  if(confirm("免费下载只提供文献第一页下载，如需要全文请成为付费会员后下载。\n\n如果您是付费会员请点击付费下载获取完整文献。\n\n请点击 [确认] 免费下载文献第一页。"))
  {
   return true;
  }
  return false;
}

function ag_send()
{
  if(confirm("确认发送您选择的原文吗！\n请点击 [确认] 进行发送原文到信箱操作，否则请点击[取消] 返回！\n\n如果您是sina eyou信箱则无法接收到自动发出的邮件，请改为其他信箱后再发送。\n\n建议使用126 163提供的免费信箱。"))
  {
   return true;
  }
  return false;
}
function ag_down()
{
  if(confirm("确认获取您选择的原文吗！\n请点击 [确认] 进行获取原文操作，否则请点击[取消] 返回！"))
  {
   return true;
  }
  return false;
}
function ag_del()
{
  if(confirm("\n确认操作吗！\n请点击 [确认] 进行操作，否则请点击[取消] 返回！"))
  {
   return true;
  }
  return false;
}
function f_mail()
{
var f_urladd =window.document.location.href;
document.all.form_book.f_bookid.value=document.getElementById("b_lwid").innerHTML;
document.all.form_book.f_title.value=document.getElementById("b_title").innerHTML;
document.all.form_book.f_author.value=document.getElementById("b_author").innerHTML;
document.all.form_book.f_magid.value=document.getElementById("b_magid").innerHTML;
document.all.form_book.f_check.value=document.getElementById("b_check").innerHTML;
document.all.form_book.f_urladd.value=f_urladd;
document.all.form_book.action="/user/my_mail.asp";
document.all.form_book.method="post";
document.all.form_book.target="_blank";
document.all.form_book.submit();
}
function f_down()
{
var f_urladd =window.document.location.href;
document.all.form_book.f_bookid.value=document.getElementById("b_lwid").innerHTML;
document.all.form_book.f_title.value=document.getElementById("b_title").innerHTML;
document.all.form_book.f_author.value=document.getElementById("b_author").innerHTML;
document.all.form_book.f_magid.value=document.getElementById("b_magid").innerHTML;
document.all.form_book.f_check.value=document.getElementById("b_check").innerHTML;
document.all.form_book.f_urladd.value=f_urladd;
document.all.form_book.action="/user/my_print.asp";
document.all.form_book.method="post";
document.all.form_book.target="_blank";
document.all.form_book.submit();
}

function kstatus(){
self.status="【世纪图书馆 www.redlib.cn】 因为专业 所以出色";
setTimeout('kstatus()',0);
}
//kstatus();