/***********************
//print page
***********************/
function doZoom(size){
	document.getElementById('zoom').style.fontSize=size+'px'
         setTailPosition()
}

function doPrint(){
var str="<html>\n<meta http-equiv='content-type' content='text/html; charset=gb2312'>";
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> <font color=#ca90ef>|</font> '.toLowerCase()
var strdoPrint="doPrint()";
var strTmp;

	css="<style>"
	+"td,.f12{font-size:12px}"
	+"body{font-family:宋体}"
	+".f24 {font-size:24px;}"
	+".f14 {font-size:14px;}"
	+".title14 {font-size:14px;line-height:130%}"
	+".l17 {line-height:170%;}"
	+".x14 {font-size:14px;line-height:130%}"
         +"a.zwy:link,a.zwy:active,a.zwy:visited,a.zwy:hover{text-decoration:none;color: #311bad;}"
	+"a.htt:link,a.htt:active,a.htt:visited{text-decoration:none;color: #7b4109;}"
	+"</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 +=	"</td><td align=right valign=bottom><a href='javascript:window.print()'>打印</a></td></tr></table>";
	str +=	"<table width=600 border=0 cellpadding=0 cellspacing=0 bgcolor=#fff3ff><tr><td>";
	
		article=document.getElementById('bodycontent').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>";
win=window.open("myprint");
win.document.open()
win.document.write(str);
win.document.close();
}
/***********************
//mail to
***********************/
function mailPage()
{
 subject="转载:"+document.title;
strTmp="aaa"
article=document.getElementById('bodycontent').innerText;
mailStr="mailto:seame1981@yahoo.com.cn?subject="+subject+"&body="+article;
window.open(mailStr);
}
/****************
// AddToFavs
****************/
  function AddToFavs()
  {
    FavUrl=location.href;
    FavTitle = document.title;
    window.external.AddFavorite(FavUrl, FavTitle);
  }