var newWin;
function openNewWindowFullControl(page,width,height,scrollbars,resizable,screenX,screenY,top,left,status,menubar,directories,location,toolbar)
{
     if (null != newWin && !newWin.closed) closeNewWindow();

     var props = 'width=' +width +',height=' +height +',scrollbars='+scrollbars +',resizable=' +resizable  +',screenX=' +screenX +',screenY='+screenY +',top=' +top +',left=' +left +',status=' +status +',menubar='
+menubar +',directories=' +directories +',location=' +location +'toolbar='
+toolbar;

     newWin=window.open(page,'',props);

     newWin.focus();
 }

