//Àò¨ú·í«e¦C¦L¬ÛÃö¼Æ¾Ú
var forSPrint = new Object();

forSPrint.data ={
	artiBodyId 	: "artibody",				//­¶­±¤º¥D­n¤º®e node id	
	titleId    	: "artibodytitle",			//­¶­±¼ÐÃD³¡¤Ànode id	
	pageLogoId 	: "pagelogo",	//­¶­±logo®e¾¹ªºid
	pageWayId	: "lo_links",	//­¶­±¸ôÂI®e¾¹ªºid
	
	pageLogoHtml: "",	//ªì©lÅã¥Üªº   logo html
	titleHtml	: "",	//ªì©lÅã¥Üªº¼ÐÃDhtml
	artiBodyHtml: "",	//ªì©lÅã¥Üªº¥D­n¤º®ehtml
	pageWayHtml : "",	//ªì©l­¶­±¸ôÂIhtml
	
	curPageNum 	: 1,	//·í«e­¶½X
	//¬ÛÃö­¶ªºurl ±q²Ä1­¶¶}©l
	pageUrl    	: new Array()
}; 

forSPrint.GetPageInitInfo = function() {
	//Àò¨ú·í«e­¶½X ©M ¬ÛÃö­¶ªºurl
	var re;
	var hrefPattern;
	var hrefStrArray = new Array();
	var hrefArray = new Array();
	var currentPageNo;

	hrefArray[0] = window.location.href;
	currentPageNo = 1;
	var pageNode = document.getElementById("_function_code_page");
	if(pageNode){
		var html = document.getElementById("_function_code_page").innerHTML;
		if((/(<img)+/ig).test(html)){//for img page
			hrefPattern = /(<a\shref="[^<>]+">\[\d+\]<\/a>)|(\[<strong>\d+<\/strong>\])/ig;
			if(hrefStrArray = html.match(hrefPattern)){
				re = new RegExp("<a href=\"(.*?)\">\[[0-9]+\]<\/a>","i");
				for(var i = 0 ; i < hrefStrArray.length ; i ++){
					if(re.exec(hrefStrArray[i])){
						hrefArray[i] = RegExp.$1;
					}else{
						hrefArray[i] = window.location.href;
						currentPageNo = (i + 1);
					}
				}
			}
		}else{//for text page			
			hrefPattern = /¡@(<a href=\".*?\">){0,1}\[\d+\](<\/a>){0,1}/ig;	
			if(hrefStrArray = html.match(hrefPattern)){
				re = new RegExp("<a href=\"(.*?)\">\[[0-9]+\]<\/a>","i");
				for(var i = 0 ; i < hrefStrArray.length ; i ++){
					if(re.exec(hrefStrArray[i])){
						hrefArray[i] = RegExp.$1;
					}else{
						hrefArray[i] = window.location.href;
						currentPageNo = (i + 1);
					}
				}
			}
		}
	}
	
   forSPrint.data.pageUrl = hrefArray;
   forSPrint.data.curPageNum = currentPageNo;


   //Àò¨úªì©lÅã¥Üªº   logo html
	if(forSPrint.data.pageLogoId != '' && getHtmlbyNote(forSPrint.data.pageLogoId) != null)
	{
		//forSPrint.data.pageLogoHtml = document.getElementById(forSPrint.data.pageLogoId).innerHTML;
		forSPrint.data.pageLogoHtml = getHtmlbyNote(forSPrint.data.pageLogoId)
	}
	
	
   //Àò¨úªì©l­¶­±¸ôÂIhtml
	if(forSPrint.data.pageWayId != '' && getHtmlbyNote(forSPrint.data.pageWayId) != null)
	{
		//forSPrint.data.pageWayHtml = document.getElementById(forSPrint.data.pageWayId).innerHTML;
		forSPrint.data.pageWayHtml = getHtmlbyNote(forSPrint.data.pageWayId)
	}

   //Àò¨úªì©lÅã¥Üªº¼ÐÃDhtml
	if(forSPrint.data.titleId != '' && getHtmlbyNote(forSPrint.data.titleId) != null)
	{
		//forSPrint.data.titleHtml = document.getElementById(forSPrint.data.titleId).innerHTML;
		forSPrint.data.titleHtml = getHtmlbyNote(forSPrint.data.titleId)
	}

   //Àò¨úªì©lÅã¥Üªº¥D­n¤º®ehtml
	if(forSPrint.data.artiBodyId != '' && getHtmlbyNote(forSPrint.data.artiBodyId) != null)
	{
		//forSPrint.data.artiBodyHtml = document.getElementById(forSPrint.data.artiBodyId).innerHTML;
		forSPrint.data.artiBodyHtml = getHtmlbyNote(forSPrint.data.artiBodyId)
	}



}



forSPrint.Print = function(){
	//Àò¨ú¦C¦L¼Æ¾Ú
	forSPrint.GetPageInitInfo();

	var info =	"<html>"	+"\n"+
		"<head>"	+"\n"+
		"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />"	+"\n"+
		"<title></title>"	+"\n"+
		"<meta name=\"Keywords\" content=\",\" />"	+"\n"+
		"<meta name=\"Description\" content=\"\" />"	+"\n"+
		"<style type=\"text/css\" media=\"screen\">"	+"\n"+
		"*{margin:0;padding:0; font-family:\"§ºÅé\";}"	+"\n"+
		"body {background: #FFF;color:#000; font-size:12px;}"	+"\n"+
		"ul,li{list-style:none;}"	+"\n"+
		"ul,p,ol{line-height:20px;}"	+"\n"+
		"select,input{vertical-align:middle;}"	+"\n"+
		"img{border:0;}"	+"\n"+
		".f12{font-size:12px; line-height:20px;}"	+"\n"+
		".f14{font-size:14px;}"	+"\n"+
		"h1{font-size:22px;margin: 0px;border-bottom:1px #7D8388 solid;}"	+"\n"+
		".from_info{ font-size:12px; text-align:center; color:#000;font-weight:normal}"	+"\n"+
		"#PriCon{font-size:14px;width:560px; text-align:left;}"	+"\n"+
		"#PriCon p{ line-height:23px;margin:15px 0;}"	+"\n"+
		"#PriCon img{border:1px #000 solid;}"	+"\n"+
		"#PriCon.noImg img{display:none;}"	+"\n"+
		".sprint_sp {}" + "\n"+
		".sprint_s {}" + "\n"+
		".sprint_p {display:none;}" + "\n"+
		".sprint_none {display:none;}" + "\n"+
		".medialogo{float:right; height:18px;}"	+"\n"+
		".linkRed01 {text-decoration:underline;color:#000;}" +"\n"+
		".linkRed01 a{text-decoration:underline;color:#000;}" +"\n"+
		"a{text-decoration: underline;color: #000; }"	+"\n"+
		"a:hover{color: #f00;}"	+"\n"+
		".selFZ{padding:0 2px; background:#999; border:1px #6f6f6f solid; text-decoration:none; cursor:default; color:#fff;}"	+"\n"+
		".NselFZ{text-decoration:underlinel; cursor:pointer; padding:0 5px;"	+"\n"+
		".selFZ,.NselFZ{padding-top:2px;}"	+"\n"+
		".yqin {display:inline; height:0px; width:0px; position:absolute; text-align:left;}"	+"\n"+
		".linkRed02 a{text-decoration:none;color:#000;}"	+"\n"+
		".linkRed02 a:hover{color:#f00;}"	+"\n"+
		"</style>"	+"\n"+
		"<!--[if IE]>"	+"\n"+
		"<style type=\"text/css\" media=\"screen\">"	+"\n"+
		"#printDialog { filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100); filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=3, OffY=3,Color=\"#e0e0e0\", Positive=\"true\");}"	+"\n"+
		"</style>"	+"\n"+
		"<![endif]-->"	+"\n"+
		"<style type=\"text/css\" media=\"print\">"	+"\n"+
		"*{margin:0;padding:0; font-family:\"§ºÅé\";}"	+"\n"+
		"body {background: #FFF;color:#000; font-size:12px; text-align:left;}"	+"\n"+
		"ul,li{list-style:none;}"	+"\n"+
		"ul,p,ol{line-height:20px;}"	+"\n"+
		"select,input{vertical-align:middle;}"	+"\n"+
		"img{border:0;}"	+"\n"+
		"h1{font-size:22px;margin: 0px;border-bottom:1px #7D8388 solid;}"	+"\n"+
		".f12{font-size:12px; line-height:20px;}"	+"\n"+
		".f14{font-size:14px;}"	+"\n"+
		"a{text-decoration: underline;color: #000}"	+"\n"+
		"a:hover{color: #f00;}"	+"\n"+
		".selFZ{padding:0 2px; background:#999; border:1px #6f6f6f solid; text-decoration:none; cursor:default; color:#fff;}"	+"\n"+
		".NselFZ{text-decoration:underlinel; cursor:pointer; padding:0 5px;}"	+"\n"+
		".selFZ,.NselFZ{padding-top:2px;}"	+"\n"+
		"#PriCon{font-size:14px;width:560px;text-align:left;}"	+"\n"+
		"#PriCon p{line-height:23px;margin:15px 0;}"	+"\n"+
		"#PriCon img{border:1px #000 solid;}"	+"\n"+
		"#PriCon.noImg img{display:none;}"	+"\n"+
		".sprint_sp {}" + "\n"+
		".sprint_s {display:none;}" + "\n"+
		".sprint_p {}" + "\n"+
		".sprint_none {display:none;}" + "\n"+
		".medialogo{float:right; height:18px;}"	+"\n"+
		".linkRed01 {text-decoration:underline;color:#000;}" +"\n"+
		".linkRed01 a{text-decoration:underline;color:#000;}" +"\n"+
		".yqin {display:inline; height:0px; width:0px; position:absolute; text-align:left;}"	+"\n"+
		".from_info{ font-size:12px; text-align:center; color:#000;font-weight:normal}"	+"\n"+
		".linkRed02 a{text-decoration:none;color:#000;}"	+"\n"+
		".linkRed02 a:hover{color:#f00;}"	+"\n"+
		"#NoPrinter1,#NoPrinter2,#NoPrinter3,#NoPrinter4{display:none;}"	+"\n"+
		"#printDialog { display:none; visibility:hidden;}"	+"\n"+
		"#allIframe { display:none;}"	+"\n"+
		"</style>"	+"\n"+
		"<"+"script language=\"JavaScript\" type=\"text/javascript\">"	+"\n"+
		"<!--//--><![CDATA[//><!--"	+"\n"+
		
		"var flag=false;"	+"\n"+
		"function DrawImage(ImgD){"	+"\n"+
		"	var image=new Image();"	+"\n"+
		"	var iwidth = 999;"	+"\n"+
		"	var iheight = 21; //©w¸q¤¹³\°ª«×¡A·í¼e«×¤j©ó³o­Ó­È®Éµ¥¤ñ¨ÒÁY¤p"	+"\n"+
		"	image.src=ImgD.src;"	+"\n"+
		"	if(image.width>0 && image.height>0){"	+"\n"+
		"		flag=true;"	+"\n"+
		"		if(image.width/image.height>= iwidth/iheight){"	+"\n"+
		"			if(image.width>iwidth){ "	+"\n"+
		"				ImgD.width=iwidth;"	+"\n"+
		"				ImgD.height=(image.height*iwidth)/image.width;"	+"\n"+
		"			}else{"	+"\n"+
		"				ImgD.width=image.width; "	+"\n"+
		"				ImgD.height=image.height;"	+"\n"+
		"			}"	+"\n"+
		"		}else{"	+"\n"+
		"			if(image.height>iheight){ "	+"\n"+
		"				ImgD.height=iheight;"	+"\n"+
		"				ImgD.width=(image.width*iheight)/image.height; "	+"\n"+
		"			}else{"	+"\n"+
		"				ImgD.width=image.width; "	+"\n"+
		"				ImgD.height=image.height;"	+"\n"+
		"			}"	+"\n"+
		"		}"	+"\n"+
		"	}"	+"\n"+
		"} "	+"\n"+
		"//½Õ¥Î¡G<img src=\"¹Ï¤ù\" onload=\"javascript:DrawImage(this)\">"	+"\n"+
		
		"try{"+
		"	document.domain = \"sina.com.cn\";"	+"\n"+
		"}catch(e){}" +"\n"+
		"var sPrint = new Object();"	+"\n"+
		"sPrint.data ={"	+"\n"+
		"	artiBodyId 	: \""+forSPrint.data.artiBodyId+"\",	//­¶­±¤º¥D­n¤º®e node id	"	+"\n"+
		"	titleId    	: \""+forSPrint.data.titleId+"\",		//­¶­±¼ÐÃD³¡¤Ànode id	"	+"\n"+
		"	pageLogoId 	: \""+forSPrint.data.pageLogoId+"\",	//­¶­±logo®e¾¹ªºid"	+"\n"+
		"	pageWayId	: \""+forSPrint.data.pageWayId+"\",		//­¶­±¸ôÂI®e¾¹ªºid"	+"\n"+
		"	"	+"\n"+
		"	pageLogoHtml: \""+escape(forSPrint.data.pageLogoHtml)+"\",	//ªì©lÅã¥Üªº   logo html"	+"\n"+
		"	titleHtml	: \""+escape(forSPrint.data.titleHtml)+"\",		//ªì©lÅã¥Üªº¼ÐÃDhtml"	+"\n"+
		"	artiBodyHtml: \""+escape(forSPrint.data.artiBodyHtml)+"\",	//ªì©lÅã¥Üªº¥D­n¤º®ehtml"	+"\n"+
		"	pageWayHtml : \""+escape(forSPrint.data.pageWayHtml)+"\",	//ªì©l­¶­±¸ôÂIhtml"	+"\n"+
		"	"	+"\n"+
		"	curPageNum 	: "+forSPrint.data.curPageNum+",				//·í«e­¶½X"	+"\n"+
		"	//¬ÛÃö­¶ªºurl ±q²Ä1­¶¶}©l"	+"\n"+
		"	pageUrl    	: new Array("	+"\n";
		var pageTotalTmp = forSPrint.data.pageUrl.length;
		if(pageTotalTmp == 1){
			info += "	\""+forSPrint.data.pageUrl[0]+"\""	+"\n"
		}else if(pageTotalTmp > 1){
			for(var i = 0; i < pageTotalTmp - 1; i++){
				info += "	\""+forSPrint.data.pageUrl[i]+"\","	+"\n"
			}
			info += "	\""+forSPrint.data.pageUrl[pageTotalTmp - 1]+"\""	+"\n"
		}else{
			throw new Error("forSPrint.data.pageUrl.length < 1")
		}
		info += "	)"	+"\n"+
		"}; "	+"\n"+
		"//--><!]]>"	+"\n"+
		"</script"+">"	+"\n"+
		"</head>"	+"\n"+
		"<body>"	+"\n"+
		"<center>"	+"\n"+
		"  <table width=\"600\" cellspacing=\"0\" id=\"NoPrinter1\" style=\"border-bottom:1px #DDD9D3 solid;\">"	+"\n"+
		"    <tr align=\"left\" valign=\"middle\">"	+"\n"+
		"      <td width=\"4\" height=\"36\"></td>"	+"\n"+
		"      <td class=\"f14\" style=\"padding-top:2px;\">Preview<input name=\"printImgCheckbox\" id=\"printImgCheckbox\" type=\"checkbox\" value=\"checkbox\" checked onClick=\"sPrint.printImgCboxChg(this);\" style=\"margin: 0px 2px 4px 10px;\">Print the images</td>"	+"\n"+
		"      <td width=\"70\" class=\"f14\" style=\"padding-top:2px;\">Size¡G</td>"	+"\n"+
		"      <td width=\"115\" class=\"f14\" valign=\"top\"><table cellspacing=\"0\" class=\"f14\" style=\"margin-top:8px;\">"	+"\n"+
		"          <tr align=\"left\" valign=\"middle\">"	+"\n"+
		"            <td class=\"NselFZ\" id=\"topadmenu_0\" onClick=\"sPrint.doPriZoom(20);sPrint.ChgFz(0);\" height=\"20\">Large</td>"	+"\n"+
		"            <td class=\"NselFZ\" id=\"topadmenu_1\" onClick=\"sPrint.doPriZoom(16);sPrint.ChgFz(1);\">Big</td>"	+"\n"+
		"            <td class=\"selFZ\" id=\"topadmenu_2\" onClick=\"sPrint.doPriZoom(14);sPrint.ChgFz(2);\">Middle</td>"	+"\n"+
		"            <td class=\"NselFZ\" id=\"topadmenu_3\" onClick=\"sPrint.doPriZoom(12);sPrint.ChgFz(3);\">Small</td>"	+"\n"+
		"          </tr>"	+"\n"+
		"        </table>"	+"\n"+
		"      </td><td width=\"90\"><a href=\"javascript:sPrint.Print();\">Print</a></td>"	+"\n"+
		"      <td width=\"65\"><a href=\"javascript:sPrint.GoBack()\">Close</a></td>"	+"\n"+
		"    </tr>"	+"\n"+
		"  </table>"	+"\n"+
		"  <table width=\"600\" cellspacing=\"0\">"	+"\n"+
		"    <tr align=\"center\">"	+"\n"+
		"      <td width=\"1\" style=\"background:#DDD9D3;\" id=\"NoPrinter3\"></td>"	+"\n"+
		"      <td width=\"598\" valign=\"top\"><table width=\"560\" cellspacing=\"0\" style=\"margin-top:7px;\">"	+"\n"+
		"          <tr valign=\"top\">"	+"\n"+
		"            <td width=\"150\" align=\"left\" id=\"pagelogo\"></td>"	+"\n"+
		"            <td style=\"padding-top:12px; line-height:21px;\" class=\"f12\" id=\"lo_links\"></td>"	+"\n"+
		"          </tr>"	+"\n"+
		"        </table>"	+"\n"+
		"        <table cellspacing=\"0\">"	+"\n"+
		"          <tr>"	+"\n"+
		"            <td height=\"34\"></td>"	+"\n"+
		"          </tr>"	+"\n"+
		"        </table>"	+"\n"+
		"        <table cellspacing=\"0\" width=\"560\">"	+"\n"+
		"          <tr align=\"center\">"	+"\n"+
		"            <td style=\"font-size:22px; font-weight:bold; line-height:40px;\" id=\"artibodyTitle\"></td>"	+"\n"+
		"          </tr>"	+"\n"+
		"        </table>"	+"\n"+
		"        <div id=\"PriCon\"></div>"	+"\n"+
		"		<div id=\"WzLy\" style=\"font-size:12px; margin:30px 0 40px 0; padding:0 15px; text-align:left; line-height:18px;\"> From¡G<span id=\"artiPath\"></span></div>"	+"\n"+
		"	  </td>"	+"\n"+
		"      <td width=\"1\" style=\"background:#DDD9D3;\" id=\"NoPrinter4\"></td>"	+"\n"+
		"    </tr>"	+"\n"+
		"  </table>"	+"\n"+
		"  <table width=\"600\" cellspacing=\"0\" id=\"NoPrinter2\" style=\"border-top:1px #DDD9D3 solid;\">"	+"\n"+
		"    <tr align=\"left\" valign=\"middle\">"	+"\n"+
		"      <td width=\"4\" height=\"36\"></td>"	+"\n"+
		"      <td class=\"f14\" style=\"padding-top:2px;\">Preview<input name=\"printImgCheckbox2\" id=\"printImgCheckbox2\" type=\"checkbox\" value=\"checkbox\" checked onClick=\"sPrint.printImgCboxChg(this);\" style=\"margin: 0px 2px 4px 10px;\">print the images</td>"	+"\n"+
		"      <td width=\"70\" class=\"f14\" style=\"padding-top:2px;\">Size¡G</td>"	+"\n"+
		"      <td width=\"115\" class=\"f14\" valign=\"top\"><table cellspacing=\"0\" class=\"f14\" style=\"margin-top:8px;\">"	+"\n"+
		"          <tr align=\"left\" valign=\"middle\">"	+"\n"+
		"            <td class=\"NselFZ\" id=\"topadmenu2_0\" onClick=\"sPrint.doPriZoom(20);sPrint.ChgFz2(0);\" height=\"20\">Large</td>"	+"\n"+
		"            <td class=\"NselFZ\" id=\"topadmenu2_1\" onClick=\"sPrint.doPriZoom(16);sPrint.ChgFz2(1);\">Big</td>"	+"\n"+
		"            <td class=\"selFZ\" id=\"topadmenu2_2\" onClick=\"sPrint.doPriZoom(14);sPrint.ChgFz2(2);\">Middle</td>"	+"\n"+
		"            <td class=\"NselFZ\" id=\"topadmenu2_3\" onClick=\"sPrint.doPriZoom(12);sPrint.ChgFz2(3);\">Small</td>"	+"\n"+
		"          </tr>"	+"\n"+
		"        </table></td>"	+"\n"+
		"      <td width=\"90\"><a href=\"javascript:sPrint.Print();\">Print</a></td>"	+"\n"+
		"      <td width=\"65\"><a href=\"javascript:sPrint.GoBack()\">Close</a></td>"	+"\n"+
		"    </tr>"	+"\n"+
		"  </table>"	+"\n"+
		"</center>"	+"\n"+
		"<!-- print dialog start -->"	+"\n"+
		"<div id=\"printDialog\" style=\"width:250px; display:none; text-align:center; padding:15px 10px 10px 10px; background:#ecebea; border:1px solid #ddd9d3; position:absolute; right:10px; top:30px;\">"	+"\n"+
		"	<div id=\"pageTotalInfo\" style=\"padding:0 0 10px 0\"></div>"	+"\n"+
		"	<div id=\"printBtnSelect\"><input type=\"button\" value=\"¦C¦L¥þ³¡­¶\" onClick=\"sPrint.PrintAllPage();\" />&nbsp;&nbsp;<input type=\"button\" value=\"¦C¦L·í«e­¶\" onClick=\"sPrint.PrintCurPage();\" /></div>"	+"\n"+
		"	<div id=\"onloadInfo\" style=\"padding:5px 0 0 10px;\"></div>"	+"\n"+
		"	<div id=\"startPrintDiv\" style=\"display:none; padding:10px 0 0 0;\"><input type=\"button\" value=\"&nbsp;¦C¦L&nbsp;\" onClick=\" sPrint.StartPrintAllPage();\" />&nbsp;&nbsp;<input type=\"button\" value=\"¨ú®ø¦C¦L\" onClick=\"sPrint.CancelPrintAllPage();\" /></div>"	+"\n"+
		"	<div style=\"position:absolute; top:5px; right:3px; width:20px; height:15px; cursor:pointer;\" onClick=\"javascript:sPrint.ClosePrintDialog();\"><span onMouseOver=\"this.style.fontWeight = \'bold\'\" onMouseOut=\"this.style.fontWeight=\'normal\'\">¡Ñ</span></div>"	+"\n"+
		"</div>"	+"\n"+
		"<!-- print dialog end -->"	+"\n"+
		"<!-- iframe start -->"	+"\n"+
		"<div id=\"allIframe\"></div>"	+"\n"+
		"<!-- iframe end -->"	+"\n"+
		"<script language=\"JavaScript\" type=\"text/javascript\">"	+"\n"+
		"sPrint.$ = function(objId){"	+"\n"+
		"	if(document.getElementById){"	+"\n"+
		"		return eval(\'document.getElementById(\"\' + objId + \'\")\');"	+"\n"+
		"	}else if(document.layers){"	+"\n"+
		"		return eval(\"document.layers[\'\" + objId +\"\']\");"	+"\n"+
		"	}else{"	+"\n"+
		"		return eval(\'document.all.\' + objId);"	+"\n"+
		"	}"	+"\n"+
		" }"	+"\n"+
		" "	+"\n"+
		"//============================= ¿ï¾Ü¦r¸¹ start ====================="	+"\n"+
		"sPrint.doPriZoom = function(size){"	+"\n"+
		"	var PriCon = sPrint.$(\"PriCon\");"	+"\n"+
		"	if(!PriCon){"	+"\n"+
		"		return;"	+"\n"+
		"	}"	+"\n"+
		"	var PriConChild = PriCon.childNodes;"	+"\n"+
		"	PriCon.style.fontSize = size + \"px\";"	+"\n"+
		"	for(var i = 0; i < PriConChild.length; i++){"	+"\n"+
		"		if(PriConChild[i].nodeType == 1){"	+"\n"+
		"			PriConChild[i].style.fontSize = size + \"px\";"	+"\n"+
		"			PriConChild[i].style.lineHeight = size + size + \"px\";"	+"\n"+
		"		}"	+"\n"+
		"	}"	+"\n"+
		"	//¦pªG¸ü¤J§¹²¦ §ó·s»Ý­n¯È±i¼Æ"	+"\n"+
		"	if(sPrint.startPrint){"	+"\n"+
		"		sPrint.onloadInfoNode.innerHTML = \'¦@\' + sPrint.pageTotal +\'­¶¡A¥þ³¡¸ü¤J§¹²¦¡A¤j¬ù»Ý­n\' + sPrint.GetNeedPageTotal() + \'­¶¯È\';"	+"\n"+
		"	}"	+"\n"+
		"}"	+"\n"+
		"sPrint.ChgFz = function(FZBtn_num){"	+"\n"+
		"	for(var i=0;i<4;i++){sPrint.$(\"topadmenu_\"+i).className=\"NselFZ\";}"	+"\n"+
		"	sPrint.$(\"topadmenu_\"+FZBtn_num).className=\"selFZ\";"	+"\n"+
		"	for(var i=0;i<4;i++){sPrint.$(\"topadmenu2_\"+i).className=\"NselFZ\";}"	+"\n"+
		"	sPrint.$(\"topadmenu2_\"+FZBtn_num).className=\"selFZ\";"	+"\n"+
		"}"	+"\n"+
		"sPrint.ChgFz2 = function(FZBtn_num2){"	+"\n"+
		"	for(var i=0;i<4;i++){"	+"\n"+
		"		sPrint.$(\"topadmenu2_\"+i).className=\"NselFZ\";"	+"\n"+
		"	}"	+"\n"+
		"	sPrint.$(\"topadmenu2_\"+FZBtn_num2).className=\"selFZ\";"	+"\n"+
		"	for(var i=0;i<4;i++){"	+"\n"+
		"		sPrint.$(\"topadmenu_\"+i).className=\"NselFZ\";"	+"\n"+
		"	}"	+"\n"+
		"	sPrint.$(\"topadmenu_\"+FZBtn_num2).className=\"selFZ\";"	+"\n"+
		"}"	+"\n"+
		"//============================= ¿ï¾Ü¦r¸¹ end ====================="	+"\n"+
		""	+"\n"+
		"//print dialog ºu°Ê"	+"\n"+
		"sPrint.Scroll = function(o){"	+"\n"+
		"	var initTop = parseInt(o.style.top);"	+"\n"+
		"	window.onscroll = function(){"	+"\n"+
		"		o.style.top = initTop + document.body.scrollTop + \"px\";		"	+"\n"+
		"   } "	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//ªð¦^Â_¦æ³B²zstring"	+"\n"+
		"sPrint.BreakWord = function(str,intLen){"	+"\n"+
		"	var strTemp = \"\";"	+"\n"+
		"	if(str.length > intLen){//¦Ò¼{´«¦æ¹ï¨ä"	+"\n"+
		"		strTemp = \"<br />\";"	+"\n"+
		"	}"	+"\n"+
		"	while(str.length > intLen){"	+"\n"+
		"		strTemp += str.substr(0,intLen)+\"<br />\";"	+"\n"+
		"		str = str.substr(intLen,str.length);"	+"\n"+
		"	}"	+"\n"+
		"	return strTemp += str;"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		""	+"\n"+
		"//¦C¦L©Ò»Ý¼Æ¾Ú¸ê°T ¹ï¶H"	+"\n"+
		"sPrint.pagelogoNode 	= sPrint.$(\"pagelogo\");				//¤å³¹logo node"	+"\n"+
		"sPrint.artibodyTitleNode= sPrint.$(\"artibodyTitle\"); 	//¤å³¹¼ÐÃD node"	+"\n"+
		"sPrint.loLinksNode 		= sPrint.$(\"lo_links\");			//­¶­±¸ôÂI node"	+"\n"+
		"sPrint.priConNode 		= sPrint.$(\"PriCon\");			//¥¿¤ånode"	+"\n"+
		"sPrint.artiPathNode 	= sPrint.$(\"artiPath\");			//¤å³¹¨Ó·½ node"	+"\n"+
		"sPrint.pageTotal 		= sPrint.data.pageUrl.length;		//­¶½XÁ`¼Æ"	+"\n"+
		"sPrint.printDialog 		= sPrint.$(\"printDialog\");		//¦C¦L¹ï¸Ü¤è¶ô"	+"\n"+
		"sPrint.onloadInfoNode	= sPrint.$(\"onloadInfo\"); 		//¸ü¤J¸ê°TÅã¥Ü node"	+"\n"+
		"sPrint.allIframeNode	= sPrint.$(\"allIframe\");		//¸ü¤J©Ò¦³­¶­±ªº node"	+"\n"+
		"sPrint.onloadNum 		= 0;							//·í«e¶}©l¸ü¤J­¶ªº¯Á¤Þ§Ç¦C­È"	+"\n"+
		"sPrint.startPrint 		= false;						//·í«e¬O§_¤w¸g±N©Ò¦³¤º®e¼g¤J¦¹­¶¤¤ ¨Ã·Ç³Æ¦C¦L  ¾A¥Î¤ë¦h­¶¦C¦L±¡ªp"	+"\n"+
		"sPrint.heightPerPage 	= 800; 							//¨C­¶¯È¥i¥H¦C¦Lªº°ª«×"	+"\n"+
		"sPrint.pageTotalInfoNode = sPrint.$(\"pageTotalInfo\");	//­¶­±Á`¼Æ¸ê°T"	+"\n"+
		"sPrint.printBtnSelectNode = sPrint.$(\"printBtnSelect\");	//¬O§_¦C¦L¿ï¾Ünode"	+"\n"+
		"sPrint.printImgCheckbox	 = sPrint.$(\"printImgCheckbox\");	//¬O§_¦C¦L¹Ï¤ù checkbox"	+"\n"+
		"sPrint.printImgCheckbox2 = sPrint.$(\"printImgCheckbox2\");	//¬O§_¦C¦L¹Ï¤ù checkbox ©³³¡"	+"\n"+
		"sPrint.printImgOk 		= true;	//Àq»{¬O§_¦C¦L¹Ï¤ù"	+"\n"+
		"sPrint.imgMaxHeight		= 900;	//¹Ï¤ù­­¨î³Ì¤j°ª«×"	+"\n"+
		""	+"\n"+
		"//¦C¦L¥D¨ç¼Æ"	+"\n"+
		"sPrint.Print = function(){"	+"\n"+
		"	//¦pªG³æ­¶¼Æ"	+"\n"+
		"	if(sPrint.pageTotal == 1){"	+"\n"+
		"		window.print();"	+"\n"+
		"	}else if(sPrint.pageTotal > 1){//¦pªG¦h­¶¼Æ"	+"\n"+
		"		if(sPrint.onloadNum == 0){	//ÁÙ¥¼¸ü¤J¨ä¥L­¶ ´£¥Ü¦h­¶¦C¦L§_¡H"	+"\n"+
		"			//Åã¥Ü¦@¦h¤Ö­¶»Ý­n¦C¦L"	+"\n"+
		"			sPrint.pageTotalInfoNode.innerHTML = \'<p>¥»¤å¦@¦³\' + sPrint.pageTotal + \'­¶¡A±z¬O§_¥þ³¡¦C¦L¡H</p>\';"	+"\n"+
		"			//¥´¶}¦h­¶¦C¦Ldialog"	+"\n"+
		"			sPrint.OpenPrintDialog();"	+"\n"+
		"		}else if(sPrint.onloadNum < sPrint.pageTotal){	//¦pªG¥¿¦b¸ü¤J­¶ «h´£¥Üµ¥«Ý"	+"\n"+
		"			//alert(\"½Ð­@¤ßµ¥«Ý¡A©Ò¦³­¶ÁÙ¥¼¸ü¤J§¹²¦.\\n³æÀ»½T©wÄ~Äò¸ü¤J\");"	+"\n"+
		"			//¥´¶}¦h­¶¦C¦Ldialog"	+"\n"+
		"			sPrint.OpenPrintDialog();"	+"\n"+
		"			return;"	+"\n"+
		"		}else if(sPrint.startPrint){//¦pªG¦h­¶¤w¸g¸ü¤J§¹²¦ «hª½±µ¦C¦L«á°h¥X"	+"\n"+
		"			window.print();"	+"\n"+
		"			return;"	+"\n"+
		"		}		"	+"\n"+
		"	}"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//¶È¦C¦L·í«e­¶"	+"\n"+
		"sPrint.PrintCurPage = function(){"	+"\n"+
		"	//Ãö³¬¦C¦Ldialog"	+"\n"+
		"	sPrint.ClosePrintDialog();	"	+"\n"+
		"	//¦C¦L·í«e­¶"	+"\n"+
		"	window.print();"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//¥þ³¡¦C¦L"	+"\n"+
		"sPrint.PrintAllPage = function(){"	+"\n"+
		"	//ÁôÂÃ¦C¦L2­Ó«ö¶s"	+"\n"+
		"	sPrint.printBtnSelectNode.style.display = \"none\";"	+"\n"+
		"	//§ó§ïÅã¥Ü­¶­±Á`¼Æ¸ê°T"	+"\n"+
		"	sPrint.pageTotalInfoNode.innerHTML = \'<p>¥»¤å¦@¦³\' + sPrint.pageTotal + \'­¶»Ý­n¸ü¤J¡A½Ð±z­@¤ßµ¥«Ý</p>\';"	+"\n"+
		"	"	+"\n"+
		"	//¸ü¤J²Ä¤@­Ó­¶­± ¨ÃÅã¥Ü¸ü¤J¸ê°T"	+"\n"+
		"sPrint.allIframeNode.innerHTML = \'<iframe id=\"iframeForData\" name=\"iframeForData\" src=\"\'+sPrint.data.pageUrl[0]+ \'?t=\' + new Date().getTime() + \'\" width=\"0\" marginwidth=\"0\" height=\"0\" marginheight=\"0\"  scrolling=\"no\" frameborder=\"0\" onload=\"sPrint.OnloadBack();\" onerror=\"return true;\"></iframe>\';"	+"\n"+
		"	sPrint.onloadNum = 1;"	+"\n"+
		"	sPrint.onloadInfoNode.innerHTML = \'²Ä1­¶¥¿¦b¸ü¤J...\';"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//¶}©l¦C¦L©Ò¦³­¶­±"	+"\n"+
		"sPrint.StartPrintAllPage = function(){	"	+"\n"+
		"	sPrint.ClosePrintDialog();	//Ãö³¬dialog	"	+"\n"+
		"	window.print();	//¦C¦L"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//¨ú®ø¥þ³¡¦C¦L"	+"\n"+
		"sPrint.CancelPrintAllPage = function(){	"	+"\n"+
		"	sPrint.ClosePrintDialog(); //Ãö³¬dialog"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//ªð¦^¨ì¥¿¤å­¶"	+"\n"+
		"sPrint.GoBack = function (){"	+"\n"+
		"	//bubu­×§ï Ãö³¬µ¡¤f"	+"\n"+
		"	window.close();"	+"\n"+
		"	return;"	+"\n"+
		"	var steps = -1;"	+"\n"+
		"	if(sPrint.onloadNum == 0){"	+"\n"+
		"	steps = -1;"	+"\n"+
		"	}else{"	+"\n"+
		"		steps = (sPrint.onloadNum) * (-1);"	+"\n"+
		"	}"	+"\n"+
		"	history.go(steps);"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//©Ò¦³¸ü¤J­¶­±ªº¦^½Õ¨ç¼Æ"	+"\n"+
		"sPrint.OnloadBack = function(){"	+"\n"+
		"	//¦pªG²Ä¤@­Ó¸ü¤J«á»Ý­n°µ«Ü¦h ¦]¬°¦h­¶±¡ªp ¦X°_¨Ó¦C¦L®É »Ý­n¨Ï¥Î²Ä¤@­¶ªºdocument.title¡B¼ÐÃD¡B ¤å³¹¨Ó·½µ¥¸ê°T"	+"\n"+
		"	if(sPrint.onloadNum == 1){"	+"\n"+
		"		//§ó·sdocument.title"	+"\n"+
		"		//document.title = frames[\'iframeForData\'].document.title;"	+"\n"+
		"		//§ó·s¼ÐÃD"	+"\n"+
		"		sPrint.artibodyTitleNode.innerHTML = frames[\"iframeForData\"].document.getElementById(sPrint.data.titleId).innerHTML;"	+"\n"+
		"		//§ó·s¤å³¹¨Ó·½¸ê°T Âo±¼°Ñ¼Æ"	+"\n"+
		"		sPrint.artiPathNode.innerHTML = sPrint.BreakWord(frames[\"iframeForData\"].location.href.replace(/\\?.*/gi,\'\'),90);"	+"\n"+
		"		//²MªÅ·í«e­¶¤º®e ·Ç³Æ«ö­¶³°Äò¸ü¤J"	+"\n"+
		"		sPrint.priConNode.innerHTML = \"\";"	+"\n"+
		"	}"	+"\n"+
		""	+"\n"+
		"	//alert(frames[\'iframeForData\'].location +\"///\"+sPrint.onloadNum);	"	+"\n"+
		"	//±N¸Ó¤º®e´¡¤J¨ì­¶­±«e¶i¦æ¹LÂo"	+"\n"+
		"	sPrint.priConNode.innerHTML += sPrint.HandlerBodyHtml(frames[\'iframeForData\'].document.getElementById(sPrint.data.artiBodyId).innerHTML);//iframe ­¶ùØ¤]¦³GetObj ¨ç¼Æ"	+"\n"+
		"	//¿é¥X¸ü¤J§¹²¦¸ê°T"	+"\n"+
		"	sPrint.onloadInfoNode.innerHTML = \'²Ä\' + sPrint.onloadNum + \'­¶¸ü¤J§¹²¦\';"	+"\n"+
		"	//ÀË´ú¬O§_ÁÙ¦³­¶­±»Ý­n¸ü¤J"	+"\n"+
		"	if(sPrint.onloadNum < sPrint.pageTotal){//¸ü¤J¤U¤@­¶ ¨ÃÅã¥Ü¸ü¤J¸ê°T"	+"\n"+
		"		sPrint.onloadNum++;"	+"\n"+
		"		frames[\"iframeForData\"].location.href = sPrint.data.pageUrl[sPrint.onloadNum - 1] + \'?t=\' + new Date().getTime();"	+"\n"+
		"		sPrint.onloadInfoNode.innerHTML = \'²Ä\'+(sPrint.onloadNum)+\'­¶¥¿¦b¸ü¤J...\';		"	+"\n"+
		"	}else{//¸ü¤J§¹²¦ Åã¥Ü¸ü¤J§¹²¦¸ê°T"	+"\n"+
		"		//ÁôÂÃ ­¶­±Á`¼Æ¸ê°T"	+"\n"+
		"		sPrint.pageTotalInfoNode.style.display = \"none\";"	+"\n"+
		"		sPrint.onloadInfoNode.innerHTML = \'¦@\' + sPrint.pageTotal +\'­¶¡A¥þ³¡¸ü¤J§¹²¦¡A¤j¬ù»Ý­n\' + sPrint.GetNeedPageTotal() + \'­¶¯È\';"	+"\n"+
		"		//Åã¥Ü¶}©l¦C¦L«ö¶s"	+"\n"+
		"		sPrint.$(\"startPrintDiv\").style.display = \"block\";"	+"\n"+
		"		//¼Ð°O¤w¸g¼g¤J§¹²¦"	+"\n"+
		"		sPrint.startPrint = true;"	+"\n"+
		"	}"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//³B²z¥¿¤åhtml"	+"\n"+
		"sPrint.HandlerBodyHtml = function(str){"	+"\n"+
		"	var strTmp = str;"	+"\n"+
		"	//Âo±¼ ¥¿¤å¤º³¡¤å¦r¾É¯è"	+"\n"+
		"	strTmp = strTmp.replace(/<!--\\s+¥¿¤å¤º³¡¤å¦r¾É¯è\\s+:\\s+begin -->[\\s\\S]*<!--\\s+¥¿¤å¤º³¡¤å¦r¾É¯è\\s+:\\s+end\\s+-->/,\"\");"	+"\n"+
		"	//¥h°£ artibody¤º¦C¦L®e¾¹¥H¤Î¥H«áªº©Ò¦³html¤º®e"	+"\n"+
		"	strTmp = strTmp.replace(/<span\\s+id=[\"\']?_function_code_page[\"\']?>[\\s\\S]*/i, \"\");"	+"\n"+

		"	//¹LÂo±¼iaskÃöÁä¦rªºhtml¼Ð°O"	+"\n"+
		"	strTmp = strTmp.replace(/<span\\s+class=.?yqlink.?>[\\s\\S]*?class=.?akey.?\\s+title=[\\s\\S]*?>([\\s\\S]*?)<\\/a><\\/span>/gi, \"$1\");"	+"\n"+
		"	//¸j©wimg onload"	+"\n"+
		"	strTmp = strTmp.replace(/<img/gi,\"<img onload=\\\"sPrint.ResizeImg(this);\\\"\");"	+"\n"+
		"	return strTmp;"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//­«·s©w¸q¶W°ª¹Ï¤ù°ª«×"	+"\n"+
		"sPrint.ResizeImg = function(obj){"	+"\n"+
		"	if(obj.height > sPrint.imgMaxHeight){"	+"\n"+
		"		obj.height = sPrint.imgMaxHeight;"	+"\n"+
		"		obj.style.pageBreakAfter = \"always\";"	+"\n"+
		"	}"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//¥´¶}¦C¦Ldialog"	+"\n"+
		"sPrint.OpenPrintDialog = function(){"	+"\n"+
		"	sPrint.printDialog.style.display = \"block\";"	+"\n"+
		"}"	+"\n"+
		"//Ãö³¬¦C¦Ldialog"	+"\n"+
		"sPrint.ClosePrintDialog = function(){"	+"\n"+
		"	sPrint.printDialog.style.display = \"none\";"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//ªð¦^¦Lªí¾÷»Ý­n¯È±i¼Æ"	+"\n"+
		"sPrint.GetNeedPageTotal = function(){"	+"\n"+
		"	var needPageTotal;"	+"\n"+
		"	return needPageTotal = Math.round(sPrint.priConNode.offsetHeight/sPrint.heightPerPage);"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//¬O§_¦C¦L¹Ï¤ù"	+"\n"+
		"sPrint.printImgCboxChg = function(obj){"	+"\n"+
		"	if(obj.checked == true){		"	+"\n"+
		"		sPrint.DisplayBodyImg(true);"	+"\n"+
		"	}else{"	+"\n"+
		"		sPrint.DisplayBodyImg(false);"	+"\n"+
		"	}"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		"//¬O§_Åã¥Ü¥¿¤å¹Ï¤ù"	+"\n"+
		"sPrint.DisplayBodyImg = function(bol){"	+"\n"+
		"	if(bol){"	+"\n"+
		"		sPrint.printImgCheckbox.checked = true;"	+"\n"+
		"		sPrint.printImgCheckbox2.checked = true;"	+"\n"+
		"		sPrint.priConNode.className = \"\";"	+"\n"+
		"		"	+"\n"+
		"		//Åã¥Ü¦C¦L¹Ï¤ù«e¹M¾ú¹Ï¤ù ­«©w¸q¶W°ª¹Ï¤ù°ª«×"	+"\n"+
		"		var imgs = sPrint.priConNode.getElementsByTagName(\"img\");"	+"\n"+
		"		for(var i = 0; i < imgs.length; i++){"	+"\n"+
		"			sPrint.ResizeImg(imgs[i]);"	+"\n"+
		"		}"	+"\n"+
		"	}else{"	+"\n"+
		"		sPrint.printImgCheckbox.checked = false;"	+"\n"+
		"		sPrint.printImgCheckbox2.checked = false;"	+"\n"+
		"		sPrint.priConNode.className = \"noImg\";"	+"\n"+
		"	}"	+"\n"+
		"	//¦pªG¸ü¤J§¹²¦ ­«·s­pºâ¦C¦L­¶¼Æ"	+"\n"+
		"	if(sPrint.startPrint){"	+"\n"+
		"		sPrint.onloadInfoNode.innerHTML = \'¦@\' + sPrint.pageTotal +\'­¶¡A¥þ³¡¸ü¤J§¹²¦¡A¤j¬ù»Ý­n\' + sPrint.GetNeedPageTotal() + \'­¶¯È\';	"	+"\n"+
		"	}	"	+"\n"+
		"}"	+"\n"+
		""	+"\n"+
		""	+"\n"+
		"//ªì©l¤Æ"	+"\n"+
		"sPrint.Init = function(){"	+"\n"+
		"	document.title = \"\";	//³]¸m·í«e­¶title ¥H§K¦C¦L¥X		"	+"\n"+
		"	sPrint.pagelogoNode.innerHTML 	= unescape(sPrint.data.pageLogoHtml);	//Åã¥Ü­¶­±logo"	+"\n"+
		"	sPrint.loLinksNode.innerHTML 	= unescape(sPrint.data.pageWayHtml).replace(/#000099/g,\"#000000\");	//Åã¥Ü­¶­±¸ôÂI ¨Ã¨Ï¥Î¶Â¦â"	+"\n"+
		"	sPrint.artibodyTitleNode.innerHTML = unescape(sPrint.data.titleHtml);	//Åã¥Ü­¶­±¼ÐÃD"	+"\n"+
		"	sPrint.priConNode.innerHTML 	= sPrint.HandlerBodyHtml(unescape(sPrint.data.artiBodyHtml));	//Åã¥Ü·í«e­¶¤º®e"	+"\n"+
		"	sPrint.artiPathNode.innerHTML 	= sPrint.BreakWord(location.href,92);	//Åã¥Ü¤å³¹¨Ó·½url ¥¼¦Ò¼{Â_¦æ"	+"\n"+
		"	sPrint.Scroll(sPrint.printDialog);		//printDialog ºu°Ê	"	+"\n"+
		"	//©w¦ìprintDialogªºªì©l¦ì¸m"	+"\n"+
		"	//¥Ñcss©w¦ì"	+"\n"+
		"}"	+"\n"+
		"sPrint.Init();"	+"\n"+
		"//®Ú¾ÚsPrint.printImgOk ªì©l¤Æcheckbox ¸Ñ¨MieùØ¨ê·s«á°O¿ý·í«echeckboxª¬ºAªºbug"	+"\n"+
		"window.onload=function(){"	+"\n"+
		"	if(sPrint.printImgOk){"	+"\n"+
		"		sPrint.DisplayBodyImg(true);"	+"\n"+
		"	}else{"	+"\n"+
		"		sPrint.DisplayBodyImg(false);"	+"\n"+
		"	}"	+"\n"+
		"}"	+"\n"+
		"</script>"	+"\n"+
		"</body>"  +"\n"+
		"</html>";
		//document.open();
		//·s«Øµ¡¤f
		var newWindow=window.open(); 
		newWindow.document.open("text/html"); 
		newWindow.document.write(info); 
		newWindow.document.close(); 


		//document.write(info);
		//document.close();
		//¹M¾úcheckbox ¥¢®Ä
		var arr = newWindow.document.body.getElementsByTagName("input") ; 
         for ( var i = 0 ;i< arr.length ;i++) 
         { 
          var con = arr[i] ; 
          if ( con.type =="radio" ) 
          { 
           con.onclick="javascript:;";
          } 
         } 

}