if (!(/^(http(s)?:\/\/)?(www\.)?[\w-]+\.\w{2,4}(\/)?$/).test($("#web").val())) {
alert("请输入正确的网址"); $("#web").focus(); return false;} if (!(/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/).test($("#qudao").val())) { alert("邮箱输入格式错误,请重新输入"); $("#qudao").focus(); return false; }if (!(/^((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)$/gi).test($("#lianxidianhua").val())) {
alert("联系电话输入格式错误,请重新输入"); $("#lianxidianhua").focus(); return false; }