function showpic(pic,w,h) {  
var picWin = null; 
var str1 = "resizable=no,width=" + w +",height=" + h + ",toolbar=no,scrollbars=no";
var str2 = "<a href=# onClick=self.close()><img src=" + pic + " border=0  width=" + w + " height=" + h + " alt='закрыть окошко'></a></body>"; 
picWin = window.open("","",str1);
picWin.document.writeln("<body marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>"); 
picWin.document.writeln(str2);
return false;
}
