var inputName;function onLoadFrame(a){if($(a)!=null){$(a).style.display="none";}else{setTimeout("onLoadFrame('loaderID')",1000);}}onload=function(){var b=document.getElementsByTagName("input");if(b.length>0){for(var a=0;a<b.length;a++){b[a].onfocus=function(){inputName=this.name;};}}};function wac_ajax_popup(f,g,k,e){var l="wac_ajax_frame";
var j=284;var b=264;if(e){j=300;b=410;}var d=new Element("div",{id:"loaderID",style:""});var c=new Element("div",{id:"frameID",style:"display:none;"});var i=new Element("img",{src:"/images/popup-loader.gif",id:"popupLoader",style:"position:absolute;left:50%"});var a=new Element("iframe",{style:"z-index:1000;padding:0;margin:0;width:100%;height:"+b+"px;overflow: hidden;",src:f,id:l,name:l,border:"0",frameborder:"0",scrolling:"no",marginwidth:"0",marginheight:"0",onload:onLoadFrame("loaderID")});
d.appendChild(i);c.appendChild(d);c.appendChild(a);Modalbox.show(c,{title:g,width:j+6,height:b+2,slideDownDuration:0,slideUpDuration:0,overlayDuration:0,resizeDuration:0},inputName);$("MB_content").setStyle({width:j+"px"});if(k){$("MB_close").update("<span>"+k+"</span>");}return false;}
