﻿
function doPrint()
{

	var body;
	var str="<html>\r\n";
	str += "<head>\r\n";
	str += "<meta http-equiv='Content-Type' content='text/html; charset=utf-8 ' />\r\n";
	str += "<title>"+document.title+"</title>\r\n";
	str+="<link href=\"../styles/default.css\" rel=\"stylesheet\" type=\"text/css\">";
	str+="<link href=\"../styles/about.css\" rel=\"stylesheet\" type=\"text/css\">";
	str += "<style media=print>.Noprint{display:none;}.PageNext{page-break-after: always;}</style>";
	str += "<body bgcolor='#ffffff' topmargin='30' leftmargin='5' onload='window.print();'>\r\n";
	str += document.all.printScript.innerHTML;
//    str +="<center class='Noprint'><p><object id='WebBrowser'  classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'  height='0'  width='0'></object><input type='button' value='打印' onclick='document.all.WebBrowser.ExecWB(6,1)'> ";
//    str +="<input type='button' value='直接打印' onclick='document.all.WebBrowser.ExecWB(6,6)'> ";
//    str +="<input  type='button' value='页面设置' onclick='document.all.WebBrowser.ExecWB(8,1)'>"; 
//    str +="</p><p><input type='button' value='打印预览' onclick='document.all.WebBrowser.ExecWB(7,1)'>"; 
//    str +="[字体：";
//    str +=" <input type='button' value='大' onclick='javascript:ContentSize(16)'> ";
//    str +="  <input type='button' value='中' onclick='javascript:ContentSize(14)'> ";
//    str +=" <input type='button' value='小' onclick='javascript:ContentSize(12)'>";

//	str += "</p><hr align='center' width='90%' size='1' noshade='noshade'></center>";
//	str += "<div contenteditable='true'>";

	body= document.all.printBody.innerHTML;
	str+=body;
	
	str += "</div>\r\n</body>\r\n</html>";
	document.write(str);
	document.close();
}
