var winTmp = null;

function popImage(sUrl, iWidth, iHeight)
{
    if (winTmp != null) {
        winTmp.close();
    }
    winTmp = window.open('', '', 'width='+iWidth+',height='+iHeight);
    winTmp.document.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1257"><title>Palangos žemėlapis</title></head><body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"><img src="' + sUrl+ '" border=0></body></html>');
    winTmp.focus();
    return false;
}
