var inputName;function onLoadFrame(b){if($(b)!=null){$(b).style.display="none";}else{setTimeout("onLoadFrame('loaderID')",1000);}}onload=function(){var c=document.getElementsByTagName("input");if(c.length>0){for(var d=0;d<c.length;d++){c[d].onfocus=function(){inputName=this.name;};}}};function wac_ajax_popup(q,p,m,r){var h="wac_ajax_frame";
var n=430;var u=240;if(r){n=300;u=390;}var s=new Element("div",{id:"loaderID",style:""});var t=new Element("div",{id:"frameID",style:""});var o=new Element("img",{src:"/images/popup-loader.gif",id:"popupLoader",style:"position:absolute;left:50%;"});var v=new Element("iframe",{style:"z-index:1000;padding:0;margin:0; background:white; width:"+n+"px;height:"+u+"px;overflow: hidden;",src:q,id:h,name:h,border:"0",frameborder:"0",scrolling:"no",marginwidth:"0",marginheight:"0",onload:onLoadFrame("loaderID")});
s.appendChild(o);t.appendChild(s);t.appendChild(v);Modalbox.show(t,{title:p,width:n+6,height:u+2,slideDownDuration:0,slideUpDuration:0,overlayDuration:0,resizeDuration:0},inputName);$("MB_content").setStyle({width:n+"px"});if(m){$("MB_close").update("<span>"+m+"</span>");}return false;}