maxpic = function(img, w, h, t) { var win = window.open('','_blank',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + w + ", height=" + h ); win.document.open("text/html"); with (win.document) { write("" + t + ""+""+"Закрыть окно"+""); } }