function launchWindow(i,e){return foswiki.Window.openPopup(foswiki.getPreference("SCRIPTURLPATH")+"/view"+foswiki.getPreference("SCRIPTSUFFIX")+"/",{web:i,topic:e,template:"viewplain"}),!1}foswiki.Window={POPUP_WINDOW_WIDTH:600,POPUP_WINDOW_HEIGHT:480,POPUP_ATTRIBUTES:"titlebar=0,resizable,scrollbars",openPopup:function(i,e,n){if(!i)return null;var l="",t="",o=i,u=[],s=foswiki.Window.POPUP_WINDOW_WIDTH,p=foswiki.Window.POPUP_WINDOW_HEIGHT,r=foswiki.Window.POPUP_ATTRIBUTES;if(e){var P=[];null!=e.web&&P.push(e.web),null!=e.topic&&P.push(e.topic),o+=P.join("/");var a=[];null!=e.skin&&a.push("skin="+e.skin),null!=e.template&&a.push("template="+e.template),null!=e.section&&a.push("section="+e.section),null!=e.cover&&a.push("cover="+e.cover),null!=e.urlparams&&a.push(e.urlparams),(l=a.join(";")).length>0&&(l="?"+l),null!=e.topic&&(t=e.topic),null!=e.name&&(t=e.name),null!=e.width&&(s=e.width),null!=e.height&&(p=e.height),null!=e.attributes&&(r=e.attributes)}u.push("width="+s),u.push("height="+p),u.push(r);var h=u.join(","),c=open(o+l,t,h);return c?(c.focus(),c):(n&&n.document&&(n.document.location.href=o),null)}};
