﻿
function ClosePrintDlg()
{document.getElementById('PrintDlg_Station').style.display='none';document.getElementById('PrintDlg_BK').style.display='none';}
function ShowPrintDlg()
{var hisy=GetCookie("Print_Helper");if(hisy)
{StartPrint();return;}
var doc=window.document;var scr=window.screen;var bar=doc.getElementById("PrintDlg_Station");var divAllBody=doc.getElementById("PrintDlg_BK");var barHolder=document.getElementById("PrintDlg_Holder");var isMSIE=(navigator.appName=="Microsoft Internet Explorer");bar.style.display="";bar.style.top=((document.documentElement.clientHeight-bar.scrollHeight)/2).toString()+"px";bar.style.left=((scr.width-bar.scrollWidth)/2).toString()+"px";barHolder.style.top=bar.style.top;barHolder.style.left=bar.style.left;barHolder.style.width=bar.scrollWidth;barHolder.style.height=bar.scrollHeight;divAllBody.style.display="";divAllBody.style.top="0px";divAllBody.style.left="0px";if(isMSIE)
{try{divAllBody.style.filter="alpha(opacity=40);"}catch(e){}
try{barHolder.style.filter="alpha(opacity=40);"}catch(e){}}
else
{try{divAllBody.style.MozOpacity=0.5;}catch(e){}
try{barHolder.style.MozOpacity=0;}catch(e){}}
divAllBody.style.width=doc.body.scrollWidth.toString()+"px";if(doc.documentElement.clientHeight>doc.body.scrollHeight)
{divAllBody.style.height=doc.documentElement.clientHeight.toString()+"px";}
else
{divAllBody.style.height=doc.body.scrollHeight.toString()+"px";}
document.getElementById("anchorPrintHelperClose").scrollIntoView(true);}
function StartPrint()
{if(showWuGe)
{document.getElementById("divWuGe").style.display="";}
document.getElementById("divWuXing").style.display="";document.getElementById("tableClassic").style.display="";var hisy=GetCookie("Print_Helper");if(hisy)
{if(hisy.toLowerCase()=="true")
{doPrint(true);}
else
{doPrint(false);}}
else
{if(document.getElementById("cbPrintRemerber").checked)
{SetCookie("Print_Helper",document.getElementById("cbPrintClassic").checked.toString());}
doPrint(document.getElementById("cbPrintClassic").checked);}}
