if(typeof dhtmlwindow=="undefined"){alert('ERROR: Modal Window script requires all files from "DHTML Window widget" in order to work!')}var dhtmlmodal={veilstack:0,open:function(c,b,e,g,a,h){var f=dhtmlwindow;this.interVeil=document.getElementById("interVeil");this.veilstack++;this.loadveil();if(h=="recal"&&f.scroll_top==0){f.addEvent(window,function(){dhtmlmodal.adjustveil()},"load")}var c=f.open(c,b,e,g,a,h);c.controls.firstChild.style.display="none";c.controls.onclick=function(){dhtmlmodal.close(this._parent,true)};c.show=function(){dhtmlmodal.show(this)};c.hide=function(){dhtmlmodal.close(this)};return c},loadveil:function(){var a=dhtmlwindow;a.getviewpoint();this.docheightcomplete=(a.standardbody.offsetHeight>a.standardbody.scrollHeight)?a.standardbody.offsetHeight:a.standardbody.scrollHeight;this.interVeil.style.width=a.docwidth+"px";this.interVeil.style.height=this.docheightcomplete+"px";this.interVeil.style.left=0;this.interVeil.style.top=0;this.interVeil.style.visibility="visible";this.interVeil.style.display="block"},adjustveil:function(){if(this.interVeil&&this.interVeil.style.display=="block"){this.loadveil()}},closeveil:function(){this.veilstack--;if(this.veilstack==0){this.interVeil.style.display="none"}},close:function(b,a){b.contentDoc=(b.contentarea.datatype=="iframe")?window.frames["_iframe-"+b.id].document:b.contentarea;if(typeof a!="undefined"){b.onclose=function(){return true}}if(dhtmlwindow.close(b)){this.closeveil()}},show:function(a){dhtmlmodal.veilstack++;dhtmlmodal.loadveil();dhtmlwindow.show(a)}};document.write('<div id="interVeil"></div>');dhtmlwindow.addEvent(window,function(){if(typeof dhtmlmodal!="undefined"){dhtmlmodal.adjustveil()}},"resize");