function OpenComments (c) {
    window.open(c, 'comments', 'width=480,height=520,scrollbars=yes,status=yes');
}
function OpenTrackback (c) {
    window.open(c, 'trackback', 'width=480,height=520,scrollbars=yes,status=yes');
}


function myin(u){
window.status = u;
return true;
}
function myout(){
window.status = '';
return true;
}
if (document.layers)
document.captureevents(event.mouseover | event.mouseout);
document.onmouseout = myout;

//サブウィンドウ
var nw="";
function subwin(url){
    if( sbwin_closed(nw) ) {
        nw = window.open(url, 'win',"width=320,height=280");
    } 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
}


function add_favorite(){
window.external.AddFavorite('http://jill.fool.jp/blog/','茶碗と箸');
}
