function Progress(hwnd1,num){this.hwnd=hwnd1;this.init=function(){if(!document.all("progressPanel")){var tmp="<div id=progressPanel style=\"position:absolute;top:-250;left:-200;width:228;height:30;z-index:1000;overflow:hidden;display:none\">";tmp+='<iframe name="progressFrame" allowTransparency="true" style="width:100%;height:100%" src="about:blank"></iframe>';tmp+="</div>";document.body.insertAdjacentHTML("beforeEnd",tmp);}this.inited=true;};this.hide=function __stop_(sScript){if(!this.inited)this.init();if(!this.showing)return;this.showing=false;try{this.hidemask();progressPanel.style.display="";var tmp=(sScript==null?"":sScript)+";progressPanel.style.top='-200';progressPanel.style.left='-200';";setTimeout(tmp,0);}catch(ex){alert(ex.description)};};this.img=new Image();this.img.src="/resource/_console/jspconsole/loading.gif";this.imgxp=new Image();this.imgxp.src="/script/util/pp.gif";this.inited=false;this.progressmaskDiv=null;this.showMask=function(){if(this.progressmaskDiv==null||!this.progressmaskDiv){var isMozilla=(typeof document.implementation!='undefined')&&(typeof document.implementation.createDocument!='undefined')&&(typeof HTMLDocument!='undefined');this.progressmaskDiv=document.createElement("DIV");this.progressmaskDiv.style.cssText="position:absolute;top:0px;left:0px;background-color:black;z-index:999;";if(isMozilla)this.progressmaskDiv.style.cssText="display:none;position:absolute;top:0px;left:0px;background-color:black;opacity:0.20;";else this.progressmaskDiv.style.cssText="display:none;position:absolute;top:0px;left:0px;background-color:black;filter:alpha(opacity=20);";this.progressmaskDiv.innerHTML="<iframe src='about:blank' id=maskIFrame name=maskIFrame frameborder='0' onload=\"maskIFrame.document.bgColor='black';\" style='width:100%;height:100%;'></iframe>";this.progressmaskDiv.style.height=(document.body.scrollHeight>document.body.clientHeight?document.body.scrollHeight:document.body.clientHeight);this.progressmaskDiv.style.width=document.body.clientWidth;document.body.appendChild(this.progressmaskDiv);}if(this.progressmaskDiv&&maskIFrame&&maskIFrame.document)this.progressmaskDiv.style.display='';else setTimeout(this.hwnd+".showMask()",50);};this.hidemask=function(){if(this.progressmaskDiv)this.progressmaskDiv.style.display='none';};this.showing=false;this.show=function(_msgString,pstyle,left1,top1){if(!this.inited)this.init();if(this.showing)return;try{this.showing=true;this.showMask();var tmp="<html><body onselectstart='return false;' oncontextmenu='return false' scroll=no style='margin:0;padding:0;cursor:default;border:1 #c70 solid;background-color:#FFFFE1;color:#000'>";tmp+="<div style=\"width:100%;height:100%;\">";tmp+="<div align=center style='font-size:9pt;padding-top:7;'><img id=proImg src=\""+this.img.src+"\" align=absmiddle \><span style='margin-left:5;color:darkblue;font-size:14px;'>"+(_msgString==null||_msgString==""?"正在装载数据,请稍候":_msgString)+" . . .</span></div>";tmp+="</div></body></html>";var a=progressFrame.document;a.open();a.write(tmp);a.close();}catch(e){};progressPanel.style.display="";if(left1==null)progressPanel.style.left=(document.body.clientWidth-progressPanel.offsetWidth)/2;else progressPanel.style.left=left1;if(top1==null)progressPanel.style.top=(document.body.clientHeight-progressPanel.offsetHeight)/2+document.body.scrollTop;else progressPanel.style.top=top1;};}