//Открывает изображение в отдельном окне
function winimg(head,img,w,h){
windop=window.open("","mywin","width=820,height=700 0");
windop.document.open();
windop.document.write("<html><head><title>"+head+"</title></head>");
windop.document.write("<body bgcolor=#ffffcc>");
windop.document.write("<center><font face=Arial,Verdana size=3 color=#000080><h4>"+head+"</h4></font></center>");
windop.document.write("<img src='"+img+"' alt='"+head+"' title='"+head+"' width='"+w+"' height='"+h+"'>");
windop.document.write("<center><form><input type='button' value='Закрыть' onClick='window.close()'></form></center>")
windop.document.write("</body></html>");
windop.document.close();
}


