//title - заголовок
//width - ширина
//height - высота
//content - контент
function open_window(title, width, height, content)
{
    ScrWindow=window.open("","","toolbar=no,location=no,left=0,top=0,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width="+width+",height="+height+"");
    if (ScrWindow != null && ScrWindow.opener == null) ScrWindow.opener=window;
    ScrWindow.document.open();
    ScrWindow.document.writeln ("<html><head><title>"+title+"</title></head><body>"+content+"</body></html>");
    ScrWindow.document.close();
}