Here's an example of what we're talking about
:
function enlarge (wURL, sp)
{
var specs = "width=800,height=600,top=30,left=30," +
"screenx=30,screeny=30," +
"resizable=yes,scrollbars=yes";
if (sp) specs = sp;
if (globalWin)
{
globalWin.close ();
globalWin = "";
}
popWin = open (wURL, "popWindow", specs);
popWin.focus ();
globalWin = popWin;
return popWin;
} In your code, I can't tell anything about the switch statement, other than it looks like it's probably silly.