

var w=0;
var popnm, popw, poph, popsb, popsz, poptb, popst;

var w1=0;
var popnm1, popw1, poph1, popsb1, popsz1, poptb1, popst1;

function PopUpDefault()
{
    popnm='popup';
    popw='520';
    poph='300';
    popsb='yes';  // scrollbar
    popsz='yes';  // resize
    poptb='yes';   // toolbar
    popst='yes';  // status

    popnm1='popup1';
    popw1='800';
    poph1='550';
    popsb1='yes';  // scrollbar
    popsz1='yes';  // resize
    poptb1='yes';   // toolbar
    popst1='yes';  // status
}

function OpenPopUp(pgurl) {
    if (w != 0 && w.closed == false) w.focus();
    w = window.open(pgurl,popnm,'height='+poph+',width='+popw+',scrollbars='+popsb+',resizable='+popsz+',toolbar='+poptb+',status='+popst);
    w.focus();
    return false;
}

function OpenPopUp1(pgurl1) {
    if (w1 != 0 && w1.closed == false) w1.focus();
    w1 = window.open(pgurl1,popnm1,'height='+poph1+',width='+popw1+',scrollbars='+popsb1+',resizable='+popsz1+',toolbar='+poptb1+',status='+popst1);
    w1.focus();
    return false;
}

function ClosePopUp() {
    if (w != 0 && w.closed == false) w.close();
    if (w1 != 0 && w1.closed == false) w1.close();
    return true;  
}

PopUpDefault();

