// 

var nw="";
function loadTosubwin(url){
    if( sbwin_closed(nw) ) {
        nw = window.open(url, 'win',"width=570,height=700,scrollbars=yes");
    } else {
        nw.location.href=url;
    }
    nw.focus();
}

//子ウインドウ有無確認関数
function sbwin_closed(winVar) {
    var ua = navigator.userAgent;
    if( !winVar )
        if( ua.indexOf('MSIE 4')!=-1 && ua.indexOf('Win')!=-1 ) 
            return winVar.closed
        else return typeof winVar.document != 'object'
    else return true
}

var nww="";
function loadTosubwinWide(url){
    if( sbwin_closedw(nww) ) {
        nww = window.open(url, 'winw',"width=878,height=700,scrollbars=yes");
    } else {
        nww.location.href=url;
    }
    nww.focus();
}

//子ウインドウ有無確認関数
function sbwin_closedw(winVar) {
    var ua = navigator.userAgent;
    if( !winVar )
        if( ua.indexOf('MSIE 4')!=-1 && ua.indexOf('Win')!=-1 ) 
            return winVar.closed
        else return typeof winVar.document != 'object'
    else return true
}


