﻿<!--

// 打印页面
function doPrint(){
	var str="<html>";
	var article;
	var css;
	var strAdBegin="<!--pic_cnt_start-->";
	var strAdEnd="<!--pic_cnt_end-->";
	var strTmp;
	
		css="<style>"
		+"body{font-family:宋体}"
		+"td {font-size:14px;line-height:1.8em;}"
		+".title {font-size:24px;font-weight:bold;line-height:1.6em}"
	    +"</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><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=0><tr><td>";
		str +=  "<div align=center class=title>" + document.getElementById('nstit').innerHTML + "</div><br>"
		article=document.getElementById('nsc').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 +=	"</td></tr></table>";
		str += window.location.href;
		str +=	"</center></body></html>";
		document.write(str);
		document.close();
}


// 缩放字体
function setfontsize(size){
	document.getElementById('nsc').style.fontSize=size+'px';
}


//检查DIV是否存在
function checkdiv(divid){
	var chkid = document.getElementById(divid);
	if(chkid != null){
		return true; 
	}else {
		return false;
	}
}


// 复制网址
function copyToClipBoard(){
	var clipBoardContent=''; 
	clipBoardContent+=document.title;
	clipBoardContent+='\r\n';
	clipBoardContent+=window.location.href;
	window.clipboardData.setData("Text",clipBoardContent);
	//alert("您已复制链接及标题，请粘贴到QQ/MSN等发给好友!");
}

// 加入收藏
function AddFavor(){window.external.AddFavorite(window.location.href,window.document.title);}


//-->