$(document).ready(function(){
    $(function(){
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
//【电话号码正则校验】
        $("#Phone").blur(function(){
            if($(this).val()){
                if(!$(this).val().match(/^[0-9-]{7,13}$/)){
                    alert('0~9半数字で入力ください。');
                    $(this).focus();
                    $(this).select();
                    $(this).click(function(){
                        if(!$(this).val().match(/^[0-9-]{7,13}$/)){
                            $(this).val("");
                        }
                    });
                }
            }
        });
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
//【邮件地址正则校验】
        $("#Email").blur(function(){
            if($(this).val()){
				if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
					alert('半角でご入力ください。記入例：***@hotmail.com');
					$(this).focus();
					$(this).select();
					$(this).click(function(){
						if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
							$(this).val("");
						}
					});
				}
			}   
        });
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
//【邮件地址正则校验】
        $("#NewMail").blur(function(){
            if($(this).val()){
				if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
					alert('半角でご入力ください。記入例：***@hotmail.com');
					$(this).focus();
					$(this).select();
					$(this).click(function(){
						if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
							$(this).val("");
						}
					});
				}
			}   
        });
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
//【邮件地址正则校验】
        $("#EdtMail1").blur(function(){
            if($(this).val()){
				if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
					alert('半角でご入力ください。記入例：***@hotmail.com');
					$(this).focus();
					$(this).select();
					$(this).click(function(){
						if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
							$(this).val("");
						}
					});
				}
			}   
        });
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
//【邮件地址正则校验】
        $("#EdtMail2").blur(function(){
            if($(this).val()){
				if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
					alert('半角でご入力ください。記入例：***@hotmail.com');
					$(this).focus();
					$(this).select();
					$(this).click(function(){
						if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
							$(this).val("");
						}
					});
				}
			}   
        });
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
//【邮件地址正则校验】
        $("#LevMail").blur(function(){
            if($(this).val()){
				if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
					alert('半角でご入力ください。記入例：***@hotmail.com');
					$(this).focus();
					$(this).select();
					$(this).click(function(){
						if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
							$(this).val("");
						}
					});
				}
			}   
        });
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
//【邮件地址正则校验】
        $("#OneEmail").blur(function(){
            if($(this).val()){
				if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
					alert('半角でご入力ください。記入例：***@hotmail.com');
					$(this).focus();
					$(this).select();
					$(this).click(function(){
						if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
							$(this).val("");
						}
					});
				}
			}   
        });
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
//【邮件地址正则校验】
        $("#TwoEmail").blur(function(){
            if($(this).val()){
				if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
					alert('半角でご入力ください。記入例：***@hotmail.com');
					$(this).focus();
					$(this).select();
					$(this).click(function(){
						if(!$(this).val().match(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)){
							$(this).val("");
						}
					});
				}
			}   
        });
/*-------------------------------------------------------------------------------------------------------------------------------------------------*/       
    });
});
