﻿<?xml version="1.0" encoding="utf-8"?>
<snippet name = "Pop-Up Window" description = "Opens a new browser window, given a URL and the left, top, width, and height of the window." preview="code" type="block">
<insertText location="beforeSelection">
<![CDATA[var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
]]>
</insertText>
<insertText location="afterSelection"><![CDATA[]]>
</insertText>
</snippet>
