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(r,q,n,s){var h="wac_ajax_frame";
var o=348;var w=220;if(s){o=300;w=440;}var t=new Element("div",{id:"loaderID",style:""});var u=new Element("div",{id:"frameID",style:"display:none;"});var p=new Element("img",{src:"/images/popup-loader.gif",id:"popupLoader",style:"position:absolute;left:50%;"});var x=new Element("iframe",{style:"z-index:1000;padding:0;margin:0; background:white; width:"+o+"px;height:"+w+"px;overflow: hidden;",src:r,id:h,name:h,border:"0",frameborder:"0",scrolling:"no",marginwidth:"0",marginheight:"0",onload:onLoadFrame("loaderID")});
t.appendChild(p);u.appendChild(t);u.appendChild(x);var v=o+10;if(BrowserDetect.browser=="Explorer"&&BrowserDetect.version=="6"){v=o+20;}Modalbox.show(u,{title:q,width:v,height:w+2,slideDownDuration:0,slideUpDuration:0,overlayDuration:0,resizeDuration:0},inputName);$("MB_content").setStyle({width:o+"px"});
if(n){$("MB_close").update("<span>"+n+"</span>");}return false;}