﻿

function reviewArticle()
{
	document.getElementById("Content").focus();
}

function AddFav()
{
	var localurl = location.href;                  //获取当前的url地址信息
	window.external.AddFavorite(localurl, document.title)
}

function doZoom(size)
{
	document.getElementById('zoom').style.fontSize=size+'px';
}
	
function doPrint(){
	var str="<html>";
	var article;
	var css;
	var strAdBegin="<!--NEWSZW_HZH_BEGIN-->";
	var strAdEnd="<!--NEWSZW_HZH_END-->";
	var strFontSize='【<A href="javascript:doZoom(16)">大</A> <A href="javascript:doZoom(14)">中</A> <A href="javascript:doZoom(12)">小</A>】'
	var strdoPrint="doPrint()";
	var strTmp;
	
	css="<style>"
	+"body{font-family:宋体}"
	+"td,.f12{font-size:12px}"
	+".f24 {font-size:24px;}"
	+".f14 {font-size:14px;}"
	+".title14 {font-size:14px;line-height:130%}"
	+".l17 {line-height:170%;}"
	+"</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()'>";
	str +=	"<center><table width=600 border=0 cellspacing=0 cellpadding=0><tr><td height=34 width=150><a href=http://www.92wy.com><img src=http://business.92wy.com/logo/92wy.gif width=88 height=31 border=0 alt=万宇在线></a></td><td valign=bottom><font color=#0000ff><a href=http://www.92wy.com/ class=a02>万宇首页</a> > <a href=http://news.92wy.com/ class=a02>新闻中心</a> >  正文</font></td><td align=right valign=bottom><a href='javascript:history.back()'>返回</a>　<a href='javascript:window.print()'>打印</a></td></tr></table>";
	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
	}
	str +=strTmp
	str += window.location.href
	str +=	"</td></tr></table></center>";
	str +=	"</body></html>";
	document.write(str);
	document.close();
}

function setReviewSpan()
{
	if (document.getElementById("review_span"))
	{
		document.getElementById("review_span_show").innerHTML = document.getElementById("review_span").innerHTML;
	}
	else
	{
		setTimeout(setReviewSpan, 1000);
	}
}
setReviewSpan();