
var Window={show:function(base,isModal,args,params,e,callback,ajax){var base=compono.getByID(base);var body=compono.getByClassName("div","window-body",base);body.innerHTML="";if(e)
compono.window.show(base,isModal,e);base.className="window window-openup window-loading";compono.appendClassName(args['class'],base);var x
if(!ajax){x=new Ajax.Request();}else{x=ajax;}
x.header.add("If-Modified-Since",new Date());x.method="GET";x.url=args['url'];x.window=base;x.callback=callback;x.onComplete=function(){var re=/<div\s+id=\"body\"[^>]*>((?:.|\s)*)<\/div>\s*<\/form>$/im;var s=this.request.responseText;body.innerHTML=(re.test(s)?re.exec(s)[1]:this.request.responseText);if(this.callback)this.callback.call();compono.removeClassName("window-loading",base);}
for(i in params)x.params.add(i,params[i]);x.load();base.style.left=((screen.width-base.offsetWidth)/2)+"px";var t=((screen.height-base.offsetHeight)/2-100+document.documentElement.scrollTop);base.style.top=(t<10?10:t)+"px";base.getElementsByTagName("h2")[0].innerHTML=args['title'];},open:function(u,w,h,s){var l=(screen.width/2)-(w/2);var t=(screen.height/2)-(h/2);var win=window.open(u,'_blank','top='+t+',left='+l+',width='+w+',height='+h+',status=yes,scrollbars='+((s)?'yes':'no')+',resizable=yes,location=no,directories=no,menubar=no,toolbar=no');}}