//Pass values by calling the function elsewhere
//Example: newWindow('test.html',50,50,220,250)" opens "test.html" 
//in a new window that is 50 pixels from top and left and 220 by 250 
//pixels in size.

var popup=0;
function newWindow(newURL,left,top,width,height)
{
  popup = window.open(newURL,'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}