function PopupPicture(src, width, height, name) {
    var w = window.open(src, '_blank', 'width='+width+',height='+height);
    if(w) w.focus();
    w.document.write('<html><head><meta http-equiv="Content-Type" content="html/text; charset=windows-1250"/><title>'+name+'</title></head><body onclick="window.close();" topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0"><img src="'+src+'" width="'+width+'" height="'+height+'" alt="'+name+'" onclick="window.close();" /></body></html>');
    return w;
}
