var myWindow = '';
    
var verCor = 200;
var horCor = 180;
    
function open_window(url, wSize, hSize) {
  if (!myWindow.closed && myWindow.location) {
    myWindow.focus();
  } else {
    myWindow=window.open(url, '','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=no,resizable=no,left='+((screen.width-(wSize+verCor))/2)+',top='+((screen.height-(hSize+horCor))/2)+',width='+(wSize+verCor)+',height='+(hSize+horCor)+'');
  }
  if (!myWindow.opener) {
    myWindow.opener = blank;
  }
  if (window.focus) {
    myWindow.focus();
  }
  return false;
}

function resizeWindow() {
  this.window.resizeTo(document.images['img'].width+verCor+10, document.images['img'].height+horCor+10);
  this.window.moveTo((screen.width-(document.images['img'].width+verCor))/2, (screen.height-(document.images['img'].height+horCor))/2);
}
