
function open_new(FileName,Width,Height,Top,Left,NoRes,NoScr)
{

var str=""

        if ( Width > 0 )
        {
                str="width="+Width
        }
        if ( Height > 0 )
        {
                str+=str.length > 0 ? ",height="+Height:"height="+Height
        }
        if ( Top > 0 )
        {
                str+=str.length > 0 ? ",top="+Top:"top="+Top
        }
        if ( Left > 0 )
        {
                str+=str.length > 0 ? ",left="+Left:"left="+Left
        }
        //window.open(FileName,"s_win","width="+Width+",height="+200+",top="+Top+",left="+Left)
        if ( str.length <= 0 )
        {
                str="width="+screen.width-30+",height="+screen.height-30
        }
        if ( NoRes > 0 )
        {
                str+=str.length > 0 ? ",resizable=0":"resizable=0"
        }
        else {
                str+=str.length > 0 ? ",resizable=1":"resizable=1"
        }
        if ( NoScr > 0 )
        {
                str+=str.length > 0 ? ",scrollbars=0":"scrollbars=0"
        }
        else
        {
                str+=str.length > 0 ? ",scrollbars=1":"scrollbars=1"
        }
        //s_win = '';
        //if location.href="http://www.hydrosfera.ru/http://www.hydrosfera.ru" then
        window.open(FileName,"s_win",str).focus();


}
