     //メニューボタンクリック時動作ファンクション
    function clickMenu(pFormName, pButtonNo){
        pageInitialize();
        lForwardName = "";
        switch (pButtonNo) {
        case 1:
            lForwardName="top";
            break;
        case 2:
            lForwardName="job";
            break;
        case 3:
            lForwardName="request";
            break;
        case 4:
            lForwardName="company";
            break;
        case 5:
            lForwardName="faq";
            break;
        case 6:
            lForwardName="policy";
            break;
        case 7:
            lForwardName="customer";
            break;
        default:
            lForwardName="job";
            break;
            }
        submitForward(pFormName, lForwardName);
	}
        
        
    //ボタン選択ファンクション
    function onButton(pThis, pName, pPath){
        pThis.style.cursor = "pointer";
        pThis.src=pPath+"button/main/"+pName+"_on.png";
        }
    function offButton(pThis, pName, pPath){
        pThis.style.cursor = "default";
        pThis.src=pPath+"button/main/"+pName+"_off.png";
        }
        
    //ログインイベント
    function clickLogin(pFormName){
        initSubmitForward(pFormName, "login");
        }

    //JACヘッダロゴクリックイベント
    function clickLogo(pFormName){
        initSubmitForward(pFormName, "top");
        }

    //選択ファンクション
    function mouseOver(pThis){
        pThis.style.cursor='pointer';
        pThis.style.color='red';
        }
    function mouseOut(pThis){
        pThis.style.cursor='default';
        pThis.style.color='blue';
        }

    //シンガポールライフ実行イベント
    function clickSporeLife(){
        url = "/sinlife/sporelife1.html";
        winStyle = "dialogWidth:520px; dialogHeight:520px; help:no;maximize:no; minimize:no; scrollbars:no";
        retValue = window.showModalDialog(url,"",winStyle);
        
        if (navigator.userAgent.indexOf("Gecko") != -1) {
            if (navigator.userAgent.indexOf("rv:1.6") != -1) {
                winStyle = "Width=520px, Height=520px, resizable=no, menubar=no,location=no,scrollbars=no,status=no,titlebar=no, toolbar=no";
                window.open(url, "", winStyle);
                }
            }
        }

    //メルマガエントリイベント
    function entryMailMaga(mailCategory, pFormname, infoBox){
        if (chkdata(mailCategory) == true){
            document.getElementById(infoBox).value=mailCategory;
            initSubmitForward(pFormname, "entry");
            }
        }
    
    //メルマガ情報チェック
    function isValidEmail(mailCategory){ 
        param=document.getElementById(mailCategory).value;
        if(param==""){
            return true;
            }
        re = /[\w\-\_]{1,}\@[\w\-\_]{1,}\.\w{2,}/g;
        result_array=param.match(re);
        if(result_array){
            //return true;
        }else{
            alert("E-mailアドレスの形式が正しくありません。");
            document.getElementById(mailCategory).select();
            document.getElementById(mailCategory).focus();
            return false;
            }
        }     
    function chkdata(mailCategory) {
        if (!document.getElementById(mailCategory).value.match(/\S/)) {
            alert("E-mailアドレスを入力してください。");
            document.getElementById(mailCategory).focus();
            return false;
        }else{
            if (isValidEmail(mailCategory)==false) {
                    return false;
                    }
            }
        return true;
        }
