// 『全て』で開閉させるブロックの総数
var syslen = 5;

function byID(_id){
    if(document.getElementById){ return document.getElementById(_id) }
    if(document.all){ return document.all(_id); }
}

// 開閉システム プロパティ型
function OpenClose(_arg){
    var cur;
    if(cur = byID(_arg).style){
        if(cur.display != 'block'){ cur.display = 'block'; }
        else{ cur.display = 'none'; }
    }
}
function AllOC(_arg){
    if(_arg){ var val = 'block'; }else{ var val = 'none'; }
    for(i=1; i<=syslen; i++){ if(byID('sub'+i)){ byID('sub'+i).style.display = val; } }
}

function gazou(mySrc){
document.myimg.src=mySrc;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function t2_win(theURL) {
window.open(theURL, '', 'width=700, height=780, scrollbars=yes');}