var webHtml="";

function doZoom(op)
{
  switch(op)
  {
    case "SML":
      document.getElementById('NEWSBODYTD').style.fontSize="12";
      break;
    case "MID":
      document.getElementById('NEWSBODYTD').style.fontSize="14";
      break;
    case "BIG":
      document.getElementById('NEWSBODYTD').style.fontSize="16";
      break;
    default:
      document.getElementById('NEWSBODYTD').style.fontSize="14";
      break;
  }
}

function doPrint(){
	var str="<html>";
	var article;
	var css;
	var strAdBegin="<!--TOOLSBAR-->";
	var strAdEnd="<!--//TOOLSBAR-->";
	var strTmp;
	
		css="<style>"
		+"body{font-family:宋体}"
		+"td{font-size:12px}"
		+".newstitle {font-size:18px;}"
		+"</style>";
	
		str +=	css;
		str +=	'<meta http-equiv="content-type" content="text/html; charset=gb2312">';
		str +=	'<title>'+document.title+'</title>';
		str +=	"<body bgcolor=#ffffff topmargin=5 leftmargin=5 marginheight=5 marginwidth=5 onLoad='window.print()'><center>";
		str +=	"<table width=600 border=0 cellspacing=0 cellpadding=0>"
		str +=	"<tr><td><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><tr><td width=140 height=24>&nbsp;</td><td>&nbsp;&nbsp;<a href=/>bio168首页</a>&nbsp;>&nbsp;<a href=/news/>新闻中心</a>&nbsp;>&nbsp;正文</td><td align=right valign=bottom><a href='javascript:history.back()'>返回</a>　<a href='javascript:window.print()'>打印</a></td></tr></table></td></tr>";
		
		str +=	"<table width=600 border=0 cellpadding=0 cellspacing=20 bgcolor=#EDF0F5><tr><td>";
		
		article=document.getElementById('article').innerHTML;
		if(article.indexOf(strAdBegin)!=-1){
			str +=article.substr(0,article.indexOf(strAdBegin));
			strTmp=article.substr(article.indexOf(strAdEnd)+strAdEnd.length, article.length);
		}else{
			strTmp=article
		}
		article=strTmp;
		
		strAdBegin="<!--ADV360X300-->";
		strAdEnd="<!--//ADV360X300-->";
		if(article.indexOf(strAdBegin)!=-1){
			str +=article.substr(0,article.indexOf(strAdBegin));
			strTmp=article.substr(article.indexOf(strAdEnd)+strAdEnd.length, article.length);
		}else{
			strTmp=article
		}
		
		str +=strTmp
		
		
		str += window.location.href
		str +=	"</td></tr></table></center>";
		str +=	"</body></html>";
		document.write(str);
		document.close();

	}

function check_fbpl_form(thef)
{
 if (thef.usrname.value=="")
 {
  alert("输入您的用户名") ;
  thef.usrname.focus();
  return(false);
 }
 if (thef.pssword.value=="")
 {
  alert("输入您的密码") ;
  thef.pssword.focus();
  return(false);
 }
 if (thef.cmtbody.value=="")
 {
  alert("输入您的评论") ;
  thef.cmtbody.focus();
  return(false);
 }
 
 return(true);
}

function setNewsPageTop()
{
  webHtml='<table width="760" height="95" border="0" align="center" cellpadding="0" cellspacing="0">';
webHtml+='<tr><td width="201" rowspan="2"><img src="/yp/images/logozx.gif" width="201" height="95"></td>';
webHtml+='<td width="559" height="35" background="/yp/images/top.gif"><div align="right">';
webHtml+='<IFRAME ID="toLgn" name="toLgn" FRAMEBORDER=0 SCROLLING=NO width="559" height="35" SRC="/top.asp"></IFRAME>';
webHtml+='</div></td></tr><tr>';
webHtml+='<td height="60" valign="top" background="/yp/images/title.gif"><div align="right"><br>';
webHtml+='<span class="a02"><a href="/"><font color="#FFFFFF">首页</font></a>&nbsp;&nbsp; &nbsp; <a href="/news/"><font color="#FFFFFF">资讯</font></a>&nbsp;&nbsp;&nbsp; <a href="/hr/"><font color="#FFFFFF">人才</font></a>&nbsp;&nbsp;&nbsp; <a href="/expo/"><font color="#FFFFFF">会展</font></a>&nbsp;&nbsp; &nbsp; <a href="/yp/"><font color="#FFFFFF">黄页</font></a>&nbsp;&nbsp; &nbsp; <a href="http://www.bio168.net"><font color="#FFFFFF">商城</font></a>&nbsp;&nbsp;&nbsp; &nbsp; <a href="/mag/"><font color="#FFFFFF">杂志</font></a>&nbsp;&nbsp;&nbsp; &nbsp; <a href="/bbs/" target="_blank"><font color="#FFFFFF">论坛</font></a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div></td>';
webHtml+='</tr></table>';

  document.write(webHtml);
}

function setIndexBom()
{
 webHtml='<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="newsbody"><tr>';
 webHtml+='<td height="76"><div align="center" class="a02c">BIO168生物资讯网 <img src="/news/images/email.gif" width="138" height="10" border="0"><br>版权所有BIO168生物资讯网, 2005年 </div></td>';
 webHtml+='</tr></table>';
 document.write(webHtml);
}

var sTemp="";
function sltzt_chg(obj)
{
 sTemp="mulu.asp?op=1&ncode="+obj.options[obj.selectedIndex].value;
 window.location.href=sTemp;
}

function sltorg_chg(obj)
{
 sTemp="mulu.asp?op=2&ncode="+obj.options[obj.selectedIndex].value;
 window.location.href=sTemp;
}

function settpnews()
{
 webHtml='<tr><td height="145" background="./images/ba2.gif" align="center"><a target="_blank" href="/news/200510/30E7EE2A4BE.html"><img src="/images/200510/37051020173707b.gif" width="184" height="127" border="0"></a></td></tr>';
 webHtml+='<tr><td height="24" align="center" style="line-height:150%"><font color="#996600"><strong>美发现癌症免疫疗法的秘密武器——APC</strong></font></td></tr>';
 document.write(webHtml);
}

function settright()
{
 webHtml='· 凡注明"BIO168生物资讯网"的所有文字稿件均为BIO168生物资讯网编辑或其客户委托编辑的，版权均属BIO168生物资讯网所有，任何媒体、网站或个人未经本网协议授权不得转载、链接、转贴或以其他方式复制发表。已经本网协议授权的媒体、网站，在转载使用时必须注明"稿件来源：BIO168生物资讯网"，违者本网将依法追究责任。 <br><br>';
 webHtml+='· BIO168生物资讯网转载自其他媒体的文字均在文章开头注明出处，本网转载出于传递信息共享之目的，不作商业用途，不承担相关责任，也不意味着赞同其观点或证实其内容的真实性。如其他媒体、网站或个人引用必须注明真正的"稿件来源"，并自负版权等法律责任，BIO168生物资讯网不承担相应的后果。否则本网将依法追究责任。<br><br>';
 webHtml+='· 如转载稿涉及版权等问题，请作者立即通知BIO168生物资讯网撤销相应文章。 ';
 document.write(webHtml);
}



