// JavaScript Document
function checkInput(form) {
    msg = "下記の情報を送信してよろしいですか?\n"
    // Last Name
    if (!checkInputText(form.LastName)) {
        alert("姓を入力してください。");
        return false;
    }
    msg += "姓: " + form.LastName.value + "\n";
    // First Name
    if (!checkInputText(form.FirstName)) {
        alert("名を入力してください。");
        return false;
    }
    msg += "名: " + form.FirstName.value + "\n";
	
    // Phone (Required)
    if (!checkInputText(form.Phone)) {
        alert("電話番号を入力してください。");
        return false;
    }
    // Phone (Format)
    if (!checkPhoneNumber(form.Phone.value)) {
        alert("電話番号を正しく入力してください。");
        return false;
    }
    msg += "電話番号: " + form.Phone.value + "\n";
	
    // Email (Required)
    if (!checkInputText(form.Email)) {
        alert("Eメールアドレスを入力してください。");
        return false;
    }
    // Email (Format)
    if (!checkFormatEmail(form.Email)) {
        alert("Eメールアドレスを正しく入力してください。");
        return false;
    }
    msg += "Eメールアドレス: " + form.Email.value + "\n";
	
    // Comment
    if (!checkInputText(form.Comment)) {
        alert("コメントを入力してください。");
        return false;
    }
    msg += "コメント: " + form.Comment.value + "\n";
    if (!confirm(msg)) {
        return false;
    }    
    return true;
}


