// JavaScript Document
document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown = norightclick;  // for all others

//打印
function printing(tb)
{
 var nw = window.open('','','width=800,height=600')
 nw.document.open("text/html","GB2312")
 nw.document.write("<object classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2' id='wb'height='0' width='0'></object>")
 nw.document.write(document.getElementById(tb).outerHTML)
 nw.document.write("<scrip"+"t>document.all.wb.ExecWB(7,1)</sc"+"ript>")
 nw.document.write("<script>document.print();</script>")
}

function printing1(tb)
{
 var nw = window.open('','','width=1024,height=768')
 nw.document.open("text/html","GB2312")
 nw.document.write("<object classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2' id='wb'height='0' width='0'></object>")
 nw.document.write(document.getElementById(tb).outerHTML)
  nw.document.write("<scrip"+"t>document.all.wb.ExecWB(8,1)</sc"+"ript>")
 nw.document.write("<scrip"+"t>document.all.wb.ExecWB(7,1)</sc"+"ript>")
 nw.document.write("<script>document.print();</script>")
}
	function doPrint(tt){
	var str="<html>";
	var article;
	var css;
	var strAdBegin="<!--NEWSZW_HZH_BEGIN-->";
	var strAdEnd="<!--NEWSZW_HZH_END-->";
	var strdoPrint="doPrint()";
	var strTmp;
	
		css="<style>"
		+"body{font-family:Arial"
		+"td,th,.f12{font-size:10px}"
		+".f24 {font-size:12px;}"
		+".f14 {font-size:12px;}"
		+".title14 {font-size:12px;line-height:130%}"
		+".l17 {line-height:170%;}"	
		+"#article td th{font-size:12px;}"
		+"</style>";
	
		str +=	css;
		str +=	'<meta http-equiv="content-type" content="text/html; charset=gb2312">';
		str +=	'<title>'+document.title+'</title>';
		str +=	"<body   topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 onLoad='window.print()'>";
		str +=	"<center>";
		str +=	"<table width=923 border=0 cellpadding=0 cellspacing=0><tr><td align=center>";
		
		article=document.getElementById(tt).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 doPrint1(){
	var str="<html>";
	var article;
	var css;
	var strAdBegin="<!--NEWSZW_HZH_BEGIN-->";
	var strAdEnd="<!--NEWSZW_HZH_END-->";
	var strdoPrint="doPrint1()";
	var strTmp;
	
		css="<style>"
		+"body{font-family:Arial}"
		+"td,.f12{font-size:12px}"
		+".f24 {font-size:12px;}"
		+".f14 {font-size:14px;}"
		+".title14 {font-size:12px;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   topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 onLoad='window.print()'>";
		str +=	"<center>";
		str +=	"<table width=100% border=0 cellpadding=0 cellspacing=0 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();

	}	
//结束打印
