// --- Window functions -------------------------
function openWindow(url, name) {
  popupWin = window.open(url, name, 'scrollbars=yes,resizable=yes,status=no,personal=no,menu=no,location=no,toolbar=no,left=20,top=20,width=770,height=500')
}

//useage: put each parameter in single quotes example: openSizedWindow('http://www.mercuryinteractive.com','myName','400','500');
function openSizedWindow(url, name, myHeight, myWidth) 
{
 popupWin = window.open(url, name, 'scrollbars=yes,resizable=no,status=no,personal=no,menu=no,location=no,toolbar=no,left=20,top=20,width='+myWidth+',height='+myHeight+'');
}

function openSizedWindowPlain(url, name, myHeight, myWidth) 
{
 popupWin = window.open(url, name, 'scrollbars=no,resizable=no,status=no,personal=no,menu=no,location=no,toolbar=no,left=20,top=20,width='+myWidth+',height='+myHeight+'');
}

function openSizedWindowUI(url, name, myHeight, myWidth) 
{
 popupWin = window.open(url, name, 'scrollbars=yes,resizable=yes,status=yes,personal=no,menubar=yes,location=yes,toolbar=yes,left=20,top=20,width='+myWidth+',height='+myHeight+'');
}
// ----------------------------------------------
