if (document.form1.hy_user.value == ""){
layer.open({
content: '手机号码必须正确输入'
,skin: 'msg'
if (document.form1.hy_user.value == ""){
layer.open({
content: '手机号码必须正确输入'
,skin: 'msg'
if ($('#hy_user').val() == ""){
layer.msg('用户名不能为空');
$("#hy_user").focus();
return false;
Sub info_red(ts,tz)'红色背景得示框
response.Write "<script type='text/javascript'>layer.open({content: '"&ts&"',skin: 'msg',style: 'background-color:#d71f1f; color:#fff; border:none;',time: 2,end: function(){location.href='"&tz&"';}});</script>"
radio注册协议是否同意,不同意的让注册会员
<input name="xy" type="radio">
var val=$('input:radio[name="xy"]:checked').val();
if(val==null){
function check(){
if ($('#a_name').val() == ""){
layer.open({
content: '机构名称必须输入'
,skin: 'msg'
function check(){
if ($('#a_cx').val() == ""){
layer.open({
content: '车型必须输入'
,skin: 'msg'
$(".m_header_bar_back").click(function() {
window.location.href = document.referrer;
});
$(".m_header_bar_menu").click(function() {
window.location.href='/';
<ul class="btn">
<li><INPUT NAME="hy_user" id="hy_user" type="text" class="_input" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" placeholder="用户名,只能输入英文或数字,4位数以上" /></li>
function check(){
if (document.form1.hy_mobile.value == ""){
layer.open({
content: '手机号码必须正确输入'
,skin: 'msg'