function CKWX(FL,ID,TM,ZZ)
{
	document.frmCKYW.FL.value=FL;
	document.frmCKYW.ID.value=ID;
	document.frmCKYW.TM.value=TM;
	document.frmCKYW.Writer.value=ZZ;
	document.frmCKYW.action="/asp/vipckwx.asp";
	document.frmCKYW.target="_blank";
	document.frmCKYW.submit();
}
function BYWX(FL,ID,TM,ZZ)
{
	document.frmYW.FL.value=FL;
	document.frmYW.ID.value=ID;
	document.frmYW.TM.value=TM;
	document.frmYW.Writer.value=ZZ;
	document.frmYW.action="/asp/vipbywx.asp";
	document.frmYW.target="_blank";
	document.frmYW.submit();
}
function OHWX(FL,ID,TM,ZZ)
{
	document.frmYW.FL.value=FL;
	document.frmYW.ID.value=ID;
	document.frmYW.TM.value=TM;
	document.frmYW.Writer.value=ZZ;
	document.frmYW.action="/asp/vipohwx.asp";
	document.frmYW.target="_blank";
	document.frmYW.submit();
}
function ClassSearch(FL,ID,TM,ZZ)
{
	var strFL = null
	try
	{
	//strFL = FL.replace(/-/g,"%0X002D%")
	document.ClassForm.E.value = "FirstClass=["+FL;
	document.ClassForm.CS.value = "2";
	document.ClassForm.CN.value =20;
	document.ClassForm.P.value =1;
	document.ClassForm.C.value =0;
	document.ClassForm.H.value ="分类号="+FL;
	document.ClassForm.M.value = "";
	document.ClassForm.TM.value = TM;
	document.ClassForm.Writer.value = ZZ;
	document.ClassForm.Flag.value =1;
	document.ClassForm.Para.value ="";
	document.ClassForm.szID.value =ID;
	document.ClassForm.action = "/asp/vipxgwx.asp";
	document.ClassForm.target = "_blank";
	document.ClassForm.submit();
	}
	catch(err)
	{
	}
}

function DownLoad(no,id,zj,u,dzsj)
{	
	document.DownForm.dwNo.value = ","+no;
	document.DownForm.Order.value =  ","+id;
	document.DownForm.ZJ.value = ","+zj;
	document.DownForm.Type.value = u;
	document.DownForm.Prev.value = "0";
	document.DownForm.Next.value = "1";
	document.DownForm.target="_blank";
	document.DownForm.action = "/asp/visitdown.asp";
	document.DownForm.submit();
}
function Print(no,id,zj,u,dzsj)
{
	document.DownForm.dwNo.value = ","+no;
	document.DownForm.Order.value =  ","+id;
	document.DownForm.ZJ.value = ","+zj;
	document.DownForm.Type.value = u;
	document.DownForm.Prev.value = "0";
	document.DownForm.Next.value = "1";
	document.DownForm.target="_blank";
	document.DownForm.action = "/asp/print.asp";
	document.DownForm.submit();	
}
function SendMail(no,id,zj,u,dzsj)
{
	document.DownForm.dwNo.value = ","+no;
	document.DownForm.Order.value =  ","+id;
	document.DownForm.ZJ.value = ","+zj;
	document.DownForm.Type.value = u;
	document.DownForm.Prev.value = "0";
	document.DownForm.Next.value = "1";
	document.DownForm.target="_blank";
	document.DownForm.action = "/asp/mail.asp";
	document.DownForm.submit();		
}

function CopyUrl()
{
	var tempval = "<!--TTM-->"+":\r\n"+"<!--SCDZ-->"; 
	setClipboard(tempval);
	alert("你可以将该地址发送给你的QQ好友了:>");
}

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 frmTopUserLogin(FromName)
{
	var nRet,szForm;
	if(navigator.appName=='Netscape')
	{
		nRet=event.which;
	}else{
		nRet=event.keyCode;
	}
	if(nRet==13)
	{		
		 document.getElementById(FromName).submit();
		//document.all(FromName).submit();
	}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function online_read()
{	
	document.OnlineForm.action="/onlineread/onlineread.asp";
	document.OnlineForm.target="_blank";
	document.OnlineForm.submit();
}

