function infoshowBox() { this.ShowURL = function my_ShowURL(url,target) { switch (target) { case "new": newWindow = window.open(url); if (newWindow) newWindow.focus(); break; case "popup": newWindow = window.open(url,"Virtuocity_info","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=600, height=400"); if (newWindow) newWindow.focus(); break; case "infoframe": top.bottom.info.location.replace(url); ctl.SetActiveMenuItem("main", "info"); break; case "help": top.bottom.info.location.replace(url); ctl.SetActiveMenuItem("main", "help"); break; case "forum": top.bottom.info.location.replace(url); ctl.SetActiveMenuItem("main", "forum"); break; case "PPTBord": top.bottom.menubar.openFrame(); top.bottom.info.location.replace(url); ctl.SetActiveMenuItem('main', 'PPTBord'); break; case "goto": top.location.href = url; break; default: try { el = eval(target); el.location.replace(url); } catch(error) { alert("ShowURL invalid target " + target + " using popup instead"); window.open(url,"Virtuocity_info","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=400, height=400"); break; }; } }; } ctl.RegisterInfoShow(new infoshowBox());