<!--

//ログイン処理
function GoInput() {
    
    if (chkInput() == true) {
        document.fm1.action="chkLogin.asp";
        document.fm1.method="post";
        document.fm1.submit();
    }
}

//戻る
function GoBack() {

    location.href="syou.asp";

}

//入力チェック
function chkInput() {

    var strID = document.fm1.txtLoginName.value;
    var strPW = document.fm1.txtLoginPass.value;
    
    if (strID == '') {
        alert('ログインIDを入力してください。');
        document.fm1.txtLoginName.focus();
        document.fm1.txtLoginName.select();
        return false;
    }
    
    if (strPW == '') {
        alert('パスワードを入力してください。');
        document.fm1.txtLoginPass.focus();
        document.fm1.txtLoginPass.select();
        return false;
    }
    
    if (strID.match(/[^0-9a-z]/g)) {
        alert('ログインIDに大文字や記号が使われています。');
        document.fm1.txtLoginName.focus();
        document.fm1.txtLoginName.select();
        return false;
    }

    if (strPW.match(/[^0-9a-z]/g)) {
        alert('パスワードに大文字や記号が使われています。');
        document.fm1.txtLoginPass.focus();
        document.fm1.txtLoginPass.select();
        return false;
    }

    if (strID.length > 12) {
        alert('ログインIDは半角英数字で入力してください。');
        document.fm1.txtLoginName.focus();
        document.fm1.txtLoginName.select();
        return false;
    }

    if (strPW.length > 8) {
        alert('パスワードは半角英数字で入力してください。');
        document.fm1.txtLoginPass.focus();
        document.fm1.txtLoginPass.select();
        return false;
    }
    
    return true

}

-->
