// 画像の事前読み込み
function firstInit () {
    imgArray = firstInit.arguments;
    overImg = new Array ();
    
    for (i=0; i<(imgArray.length); i++) {
        overImg[i] = new Image().src = imgArray[i];
    }
}

// ロールオーバー
function changeImg (imgId, imgSrc) {
    if (document.getElementById) {
        document.getElementById(imgId).src = imgSrc;
    }
}
// 060412 coms start
// 画像を表示
function showImg (id) {
    if(document.getElementById) {
        document.getElementById(id).style.visibility = "visible";
    } else if(document.all) {
        document.all(id).style.visibility = "visible";
    } else if(document.layers) {
        document.layers[id].visibility = 'show';
    }
}
// 画像を隠す
function hideImg (id) {
    if(document.getElementById) {
        document.getElementById(id).style.visibility = "hidden";
    } else if(document.all) {
        document.all(id).style.visibility = "hidden";
    } else if(document.layers) {
        document.layers[id].visibility = 'hide';
    }
}
// 060412 coms end

// 100524 HEA0189 by Cho
// CMark
function showCMark (id) {
    if(document.getElementById(id) != undefined) {
        document.getElementById(id).style.visibility = "visible";
    } else if(document.all(id) != undefined) {
        document.all(id).style.visibility = "visible";
    } else if(document.layers) {
        document.layers[id].visibility = 'show';
    }
}

function hideCMark (MyFormName, objname, objvalue, id) {
    for (i = 0; i < document.forms[MyFormName].elements[objname].length; i++) {
        if ( document.forms[MyFormName].elements[objname][i].value == objvalue ) {
            if ( !document.forms[MyFormName].elements[objname][i].checked ) {
                if(document.getElementById) {
                    document.getElementById(id).style.visibility = "hidden";
                } else if(document.all) {
                    document.all(id).style.visibility = "hidden";
                } else if(document.layers) {
                    document.layers[id].visibility = 'hide';
                }
            }
        }
    }
}
//100524 HEA0189 by Cho
function hideCMarkMust (id) {
    if(document.getElementById(id) != undefined) {
        document.getElementById(id).style.visibility = "hidden";
    } else if(document.all(id) != undefined) {
        document.all(id).style.visibility = "hidden";
    } else if(document.layers) {
        document.layers[id].visibility = 'hide';
    }
}



// Gナビゲーション
function popupmenu (id, imgid, imgsrc, type) {
    hiderollover (type);
    hideall ();
    changeImg (imgid, imgsrc);
    if(document.getElementById) {
        document.getElementById(id).style.visibility = "visible";
    } else if(document.all) {
        document.all(id).style.visibility = "visible";
    } else if(document.layers) {
        document.layers[id].visibility = 'show';
    }
    if(document.getElementById) {
        document.getElementById("hidearea").style.visibility = "visible";
    } else if(document.all) {
        document.all("hidearea").style.visibility = "visible";
    } else if(document.layers) {
        document.layers["hidearea"].visibility = 'show';
    }
}
function hidenavi (type) {
    hiderollover (type);
    hideall ();
    if(document.getElementById) {
        document.getElementById("hidearea").style.visibility = "hidden";
    } else if(document.all) {
        document.all("hidearea").style.visibility = "hidden";
    } else if(document.layers) {
        document.layers["hidearea"].visibility = 'hide';
    }
}
function hideall () {
    if(document.getElementById) {
        document.getElementById("headermenusub1").style.visibility = "hidden";
    } else if(document.all) {
        document.all("headermenusub1").style.visibility = "hidden";
    } else if(document.layers) {
        document.layers["headermenusub1"].visibility = 'hide';
    }
    if(document.getElementById) {
        document.getElementById("headermenusub2").style.visibility = "hidden";
    } else if(document.all) {
        document.all("headermenusub2").style.visibility = "hidden";
    } else if(document.layers) {
        document.layers["headermenusub2"].visibility = 'hide';
    }
    if(document.getElementById) {
        document.getElementById("headermenusub3").style.visibility = "hidden";
    } else if(document.all) {
        document.all("headermenusub3").style.visibility = "hidden";
    } else if(document.layers) {
        document.layers["headermenusub3"].visibility = 'hide';
    }
    if(document.getElementById) {
        document.getElementById("headermenusub4").style.visibility = "hidden";
    } else if(document.all) {
        document.all("headermenusub4").style.visibility = "hidden";
    } else if(document.layers) {
        document.layers["headermenusub4"].visibility = 'hide';
    }
    if(document.getElementById) {
        document.getElementById("headermenusub5").style.visibility = "hidden";
    } else if(document.all) {
        document.all("headermenusub5").style.visibility = "hidden";
    } else if(document.layers) {
        document.layers["headermenusub5"].visibility = 'hide';
    }
}

// 2010/01/19 張 CEA0206_登録会予約ページの流入強化策
function hiderollover (type) {
    if (type == "toroku") {
        changeImg ('headerMenu01','/sol/contents/img/headerMenuTR01.gif');
        changeImg ('headerMenu02','/sol/contents/img/headerMenu02.gif');
    } else {
        changeImg ('headerMenu01','/sol/contents/img/headerMenu01.gif');
        changeImg ('headerMenu02','/sol/contents/img/headerMenu02a.gif');
    }
    
    changeImg ('headerMenu03','/sol/contents/img/headerMenu03.gif');
    changeImg ('headerMenu04','/sol/contents/img/headerMenu04.gif');
    changeImg ('headerMenu05','/sol/contents/img/headerMenu05.gif');
}

// プラグインチェック
var contentVersion = 6;
var FlashCanPlay = false;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if ( plugin ) {
  var words = navigator.plugins["Shockwave Flash"].description.split(" ");
  for (var i = 0; i < words.length; ++i) {
    if (isNaN(parseInt(words[i])))
    continue;
    var PluginVersion = words[i]; 
  }
  var FlashCanPlay = PluginVersion >= contentVersion;
} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
  document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & contentVersion))) \n');
  document.write('</SCR' + 'IPT\> \n');
}

// ポップアップウィンドウ
function popWin (f,w,h,n) {
  nw = window.open(f, "pop" + n, "width=" + w + ", height=" + h + ", toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes,resizable=no");
  
  wx = w;
  wy = h;
  x  = (screen.availWidth  - wx) / 2;
  y  = (screen.availHeight - wy) / 2;
  
  nw.moveTo(x,y);
}

// ポップアップウィンドウ右上
function popWinRT (f,w,h,n) {
  nw = window.open(f, "pop" + n, "width=" + w + ", height=" + h + ", toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes,resizable=no");
  
  wx = w;
  wy = h;
  x  = (screen.availWidth  - wx);
  y  = 0;
  
  nw.moveTo(x,y);
}


//  20070222　以下追加js

// 職歴入力の各オフィス製品シートの表示・非表示の切替
function disp (id) {
     document.getElementById(id).style.display = "block";
}
function nodisp (id) {
     document.getElementById(id).style.display = "none";
}

// ポップアップウィンドウ　最新情報の反映について
function popNotice(){
    window.open("/sol/contents/mypage/renew/job/notice.html","RS","width=450,height=450,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
// ポップアップウィンドウ　個人情報の取り扱いについて
function popPrivacy(){
    window.open("/sol/contents/mypage/renew/userinfo/cmn/privacy.html","RS","width=450,height=450,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
// ポップアップウィンドウ　職務解説表示
function popCommentS01(){
    window.open("/sol/contents/mypage/renew/userinfo/cmn/subSyokusyuHelp.html#s01","RS","width=650,height=300,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
function popCommentS02(){
    window.open("/sol/contents/mypage/renew/userinfo/cmn/subSyokusyuHelp.html#s02","RS","width=650,height=300,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
function popCommentS03(){
    window.open("/sol/contents/mypage/renew/userinfo/cmn/subSyokusyuHelp.html#s03","RS","width=650,height=300,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
function popCommentS04(){
    window.open("/sol/contents/mypage/renew/userinfo/cmn/subSyokusyuHelp.html#s04","RS","width=650,height=300,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
function popCommentS05(){
    window.open("/sol/contents/mypage/renew/userinfo/cmn/subSyokusyuHelp.html#s05","RS","width=650,height=300,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
function popCommentS06(){
    window.open("/sol/contents/mypage/renew/userinfo/cmn/subSyokusyuHelp.html#s06","RS","width=650,height=300,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
// ポップアップウィンドウ　職歴職務内容例文
function popHelp01(){
    window.open("/sol/contents/mypage/renew/userinfo/cmn/help.html#h01","RS","width=650,height=450,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
function popHelp02(){
    window.open("/sol/contents/mypage/renew/userinfo/cmn/help.html#h02","RS","width=650,height=450,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
function popHelp03(){
    window.open("/sol/contents/mypage/renew/userinfo/cmn/help.html#h03","RS","width=650,height=450,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
function popHelp04(){
    window.open("/sol/contents/mypage/renew/userinfo/cmn/help.html#h04","RS","width=650,height=450,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
function popHelp05(){
    window.open("/sol/contents/mypage/renew/userinfo/cmn/help.html#h05","RS","width=650,height=450,top=0,left=0,status=yes,toolbar=no,resizable=no,titlebar=no,scrollbars=yes");
    return;
}
