function openWin(myLink,windowName)
{
if(! window.focus)return;
var myWin=window.open("",windowName, "toolbar=yes,menubar=no,location=no,scrollbars=yes,resizable=yes,width=800,height=550");
myWin.focus();
myLink.target=windowName;
}

function openBigWin(myLink,windowName)
{
if(! window.focus)return;
var myWin=window.open("",windowName, "toolbar=yes,menubar=no,location=no,scrollbars=yes,resizable=yes,width=900,height=700");
myWin.focus();
myLink.target=windowName;
}

function wopen(url, name, w, h)
{
// Fudge factors for window decoration space.
 // In my tests these work well on all platforms & browsers.
w += 32;
h += 96;
 var win = window.open(url,
  name, 
  'width=' + w + ', height=' + h + ', ' +
  'location=no, menubar=yes, ' +
  'status=no, toolbar=no, scrollbars=no, resizable=yes');
 win.resizeTo(w, h);
 win.focus();
}
function openRegisterWin(myLink,windowName)
{
    if(! window.focus)return;
    var myWin=window.open(myLink,windowName, "toolbar=yes,menubar=no,location=no,scrollbars=yes,resizable=yes,width=525,height=400");
    myWin.focus();
    myLink.target="_blank";
}

