﻿var font_head = '<p class="errortext">';
var font_tail = '</p>';
var empty = "EMPTY"

if ( navigator.userAgent.indexOf ( "Opera" ) == -1 ){ //Opera回避

  Validator.register({

//    "#inquiry_year" : {
//    	"/^$/": empty,
//    	"/.*/": ""
//    },
//	
//	"#inquiry_month1" : {
//      "/^$/": empty,
//      "/.*/": ""
//    },
//	
//	"#inquiry_day1" : {
//      "/^$/": empty,
//      "/.*/": ""
//    },
//	
//	"#inquiry_time1" : {
//      "/^$/": empty,
//      "/.*/": ""
//    },
//	
//	"#inquiry_time2" : {
//      "/^$/": empty,
//      "/.*/": ""
//    },
//	
//	"#inquiry_num" : {
//		"/[^-0-9]/": " "+font_head+"　 半角数字で入力してください（ご利用人数）"+font_tail,
//    	"/^$/": empty,
//    	"/.*/": ""
//    },
//	
//	"#inquiry_fa_no" : {
//    	"/^$/": empty,
//    	"/.*/": ""
//    },
//
//	"#inquiry_usage" : {
//    	"/^$/": empty,
//    	"/.*/": ""
//    },

	"#inquiry_company" : {
    	"/^$/": empty,
    	"/.*/": ""
    },
	
	"#inquiry_kana1" : {
//    	"/[^ぁ-ん゛゜ー 　]/": " "+font_head+"　 全角ひらがなで入力してください（姓）"+font_tail,
    	"/[^ァ-ヶ゛゜ー 　]/": " "+font_head+"　 全角カタカナで入力してください（姓）"+font_tail,
    	"/^$/": empty,
    	"/.*/": ""
    },

    "#inquiry_kana2" : {
//    	"/[^ぁ-ん゛゜ー 　]/": " "+font_head+"　 全角ひらがなで入力してください（名）"+font_tail,
    	"/[^ァ-ヶ゛゜ー 　]/": " "+font_head+"　 全角カタカナで入力してください（名）"+font_tail,
    	"/^$/": empty,
    	"/.*/": ""
    },
	
	"#inquiry_name1" : {
    	"/[!-~]/": " "+font_head+"　 全角で入力してください（姓）"+font_tail,
    	"/^$/": empty,
    	"/.*/": ""
    },

    "#inquiry_name2" : {
    	"/[!-~]/": " "+font_head+"　 全角で入力してください（名）"+font_tail,
    	"/^$/": empty,
    	"/.*/": ""
    },
	
	"#inquiry_post1" : {
    	"/[^-0-9]/": " "+font_head+"　 半角数字で入力してください（郵便番号）"+font_tail,
    	"/^$/": empty,
    	"/.*/": ""
    },

//	"#inquiry_post2" : {
//    	"/[^-0-9]/": " "+font_head+"　 半角数字で入力してください（郵便番号）"+font_tail,
//    	"/^$/": empty,
//    	"/.*/": ""
//    },
	
	"#inquiry_address" : {
		"/^$/": empty,
    	"/.*/": ""
    },
	"#inquiry_address2" : {
		"/^$/": empty,
    	"/.*/": ""
    },
	
	
	"#inquiry_tel1" : {
    	"/[^-0-9]/": " "+font_head+"　 半角数字で入力してください"+font_tail,
    	"/^$/": empty,
    	"/.*/": ""
    },
	
	"#inquiry_tel2" : {
    	"/[^-0-9]/": " "+font_head+"　 半角数字で入力してください"+font_tail,
    	"/^$/": empty,
    	"/.*/": ""
    },
	
	"#inquiry_tel3" : {
    	"/[^-0-9]/": " "+font_head+"　 半角数字で入力してください"+font_tail,
    	"/^$/": empty,
    	"/.*/": ""
    },
	
	"#inquiry_email" : {
    	"/[^!-~]/": " "+font_head+"　 半角英数字で入力してください"+font_tail,
      "/^$/": empty,
      "/.*/": ""
    }

  });

}


