﻿var pop_window = '';
function open_window( url ) {
    if ( ! url ) {
         return false;
    }

    if (!pop_window.closed && pop_window.location) {
        pop_window.focus();
    } else {
        pop_window=window.open( url, '',
            'toolbar=0,location=0,directories=0,status=1,menubar=0,' +
            'scrollbars=yes,resizable=yes,' +
            'width=' + 1000 + ',' +
            'height=' + 600 );
    }

    if ( ! pop_window.opener ) {
       pop_window.opener = window.window;
    }

    if ( window.focus ) {
        pop_window.focus();
    }

    return true;
}

var pop_window1 = '';
function open_window1( url ) {
    if ( ! url ) {
         return false;
    }

    if (!pop_window1.closed && pop_window1.location) {
        pop_window1.focus();
    } else {
        pop_window1=window.open( url, '',
            'toolbar=0,location=0,directories=0,status=1,menubar=0,' +
            'scrollbars=yes,resizable=yes,' +
            'width=' + 400 + ',' +
            'height=' + 300 );
    }

    if ( ! pop_window1.opener ) {
       pop_window1.opener = window.window;
    }

    if ( window.focus ) {
        pop_window1.focus();
    }

    return true;
}