function block_city(){
	$('#city_table').show();
}
function none_city(){
	$('#city_table').hide();
}
$(document).ready(function() {
	$('.chk_login').click(function() {
		$.blockUI({
			message: $('#chk_login_form'),
			css: { 
			width: '360px',
			top: '150px',
			//left: '30%',
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#fff', 
            '-webkit-border-radius': '10px', 
            '-moz-border-radius': '10px', 
            opacity: 1, 
            color: '#000' 
        }});
		$('.chk_login_close').attr('title','取消登入').click($.unblockUI);
		});
	}
);
$(document).ready(function() {
	$('.chk_callme').click(function() {
		$.blockUI({
			message: $('#callme_form'),
			css: { 
			width: '360px',
			top: '150px',
			//left: '30%',
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#fff', 
            '-webkit-border-radius': '10px', 
            '-moz-border-radius': '10px', 
            opacity: 1, 
            color: '#000' 
        }});
		$('.chk_login_close').attr('title','取消登入').click($.unblockUI);
		});
	}
);
function title_chkform(s){
	var rege = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;
	var chknum = /^([a-zA-Z0-9])+$/;
	var flag = true;
	if (s.title_mail.value == ''){
		alert("請輸入帳號!");
		s.title_mail.focus();
		flag = false;
		return false;
	}
	if (s.title_mail.value.length == 0 || rege.exec(s.title_mail.value) == null) {
		alert("您輸入的信箱格式錯誤，請重新輸入!");
		s.title_mail.focus();
		flag = false;
		return false;
	}
	if (s.title_pwd.value == ''){
		alert("請輸入密碼!");
		s.title_pwd.focus();
		flag = false;
		return false;
	}
	if (s.title_pwd.value.length == 0 || chknum.exec(s.title_pwd.value) == null) {
		alert("您輸入的密碼格式錯誤，請重新輸入!");
		s.title_pwd.focus();
		flag = false;
		return false;
	}
	if(flag==true)
		s.submit();
}
