function checklogin(the) { if($.trim(the.wxbt.value)=="") { $.message({content:"求助的文献标题不能为空"}); the.wxbt.focus(); return false } if($.trim(the.wxzy.value)=="") { $.message({content:"求助文献摘要不能为空,如果没有,请填写,暂时摘要"}); the.wxzy.focus(); return false } if($.trim(the.nc.value)=="") { $.message({content:"您的昵称不能为空"}); the.nc.focus(); return false } if($.trim(the.qq.value)=="") { $.message({content:"您的qq不能为空"}); the.qq.focus(); return false } if($.trim(the.yx.value)=="") { $.message({content:"您的邮箱不能为空"}); the.yx.focus(); return false } if($.trim(the.yx.value).indexOf('@',0) == -1 || $.trim(the.yx.value).indexOf('.',0) == -1) { $.message({content:"邮箱格式不正确"}); the.yx.focus(); return false } if($.trim(the.yzm.value)=="") { $.message({content:"验证码不能为空"}); the.yzm.focus(); return false } var id = ; if($.trim(the.yzm.value)!=id) { $.message({content:"验证码错误"}); the.yzm.focus(); return false } } $(function(){ $("#onlinepay .ip").focus(function(){$(this).removeClass();$(this).addClass('ipon');}); $("#onlinepay .ip").blur(function(){$(this).removeClass();$(this).addClass('ip')}); })