// limsc@maya.com dependency - setup.java function Window(name, URL, w, h, x, y) { var o=this; o._obj=null; o._name=name; o.features={}; o.URL=URL; o.x=x||0; o.y=y||0; o.width=w||100; o.height=h||100; o.getRef=_W_getRef; o.open=_W_open; o.close=_W_close; } function _W_getRef() { return this._obj; } function _W_close() { this._obj.close(); } function _W_open(modal, args) { var o=this,delim="=",spc=","; var cnfg="",x=o.x,y=o.y,w=o.width,h=o.height,feat=o.features; if (!isNaN(x) && !isNaN(y)) { var l,t; if (IE && modal) { l="dialogLeft"; t="dialogTop"; delim=":"; spc="; "; } else if (IE) { l="left"; t="top"; } else { l="screenX"; t="screenY"; } feat[l]=x; feat[t]=y; } if (w!=null && h!=null) { if (IE && modal) { feat["dialogWidth"]=w+"px"; feat["dialogHeight"]=h+"px"; } else { feat["width"]=w; feat["height"]=h; } } for (var key in feat) { cnfg += key+delim+feat[key]+spc; } if (IE && modal) { return win.showModalDialog(o.URL,args||"",cnfg); } else { this._obj = win.open(o.URL,o._name,cnfg); } }