﻿
function chkForm() {
    var Form = document.forms[0];
    //Form.encoding = "multipart/form-data";
    
    // 제목
    if (getElement(Form, "txtTitle").value == "") {
        alert("タイトルを入力してください");
        getElement(Form, "txtTitle").focus();
        return false;
    }    

    // 이름
    if (getElement(Form, "txtUserNm").value == "") {
        alert("お名前を入力してください");
        getElement(Form, "txtUserNm").focus();
        return false;
    }

    // 이메일
    else if (getElement(Form, "txtEmail01").value == "" || getElement(Form, "txtEmail02").value == "") {
        alert("E-Mailを入力してください");
        getElement(Form, "txtEmail01").focus();
        return false;
    }

    // 전화번호
    else if (getElement(Form, "txtPhone1").value == "" || getElement(Form, "txtPhone2").value == "" || getElement(Form, "txtPhone3").value == "") {
        alert("電話番号を入力してください");
        getElement(Form, "txtPhone1").focus();
        return false;
    }

    // 내용
    else if (getElement(Form, "txtContent").value == "") {
        alert("内容を入力してください");
        getElement(Form, "txtContent").focus();
        return false;
    }

    return true;
} 
