1、制作企业信息管理系统的登陆页面2.制作企业信息管理系统的注册页面3.使用JavaScript完成登陆页面和注册页面的验证功能,具体要求如下:1)登录页面验证用户名、密码不能为空。2)注册页面验证:用户名只能由数字和字母组成密码只能由数字或字母组成,长度为6~12位,两次密码必须相同邮箱、电话、邮编格式必须正确4.在各个文本框之后(提示关键词:innerHTML)或者使用小窗口(提示关键词:alert)弹出相应的错误信息/*用户名只能由数字或字母组成*/functionUser(){varvalue=document.getElementById(user).value;varcurretuser=/^[A-Za-z0-9]+$/;if(curretuser.test(value)){}else{window.alert(请输入字母或者数字!!!);}}/*密码只能由数字或字母组成,长度为6~12位*/functionPassword(){varvalue=document.getElementById(password).value;varcurretuser=/^[A-Za-z0-9]{6,12}$/;if(curretuser.test(value)){}else{window.alert(错误!密码只能由数字或字母组成,长度为6-12位!!!);}}/*两次密码必须一样*/functionTestPassword(){varvalue=document.getElementById(password).value;varvalue1=document.getElementById(password2).value;if(value==value1){}else{window.alert(两次输入的密码必须一样!!!);}}邮箱格式必须正确functionEmail(){varvalue=document.getElementById(email).value;varvalue1=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;if(value1.test(value)){}else{window.alert(邮箱格式错误!!!);}电话号码必须符合规范functionPhone(){varvalue=document.getElementById(phone).value;varvalue1=/^\d{3,4}\-?\d{8}$/;if(value1.test(value)){}else{window.alert(电话号码格式错误!!!);}}邮编书写符合规范functionCode(){varvalue=document.getElementById(code).value;varvalue1=/^\d{6}$/;if(value1.test(value)){}else{window.alert(邮编格式错误!!!);}}Login(登录)页面:styletype=text/css.container{width:400px;height:400px;position:relative;}.B{position:absolute;top:130px;left:200px;bottom:250px;right:100px;}/stylebodybgcolor=#52BDFEdivclass=containertablebackground=1.jpgwidth=700height=400trtdwidth=20%/tdtdwidth=20%form/formtdwidth=9%/tr/table/divdivclass=Btablebgcolor=#FFFFFFtrtdheight=30fontcolor=#0000CC请登录!/font/tdtd/td/trtrtdheight=30*用户名:/tdtdinputtype=textname=text1id=user/td/trtrtdheight=30*密码:/tdtdinputtype=passwordname=password1id=password//td/trtrtdheight=30*验证码:/tdtdinputtype=textname=text2id=checknumber//td/trtrtdheight=30ahref=register.htmlfontcolor=#FF00FF没账号?去注册/font/a/tdtdinputname=buttontype=buttonvalue=登录onClick=User(),Password(),Checknumber()//td/tr/table/div欢迎(首页)界面:%@pagelanguage=javaimport=java.util.*pageEncoding=UTF-8%%Stringpath=request.getContextPath();StringbasePath=request.getScheme()+://+request.getServerName()+:+request.getServerPort()+path+/;%!DOCTYPEHTMLPUBLIC-//W3C//DTDHTML4.01Transitional//ENhtmlheadbasehref=%=basePath%titlewelcome.jsp/titlemetahttp-equiv=pragmacontent=no-cachemetahttp-equiv=cache-controlcontent=no-cachemetahttp-equiv=expirescontent=0metahttp-equiv=keywordscontent=keyword1,keyword2,keyword3metahttp-equiv=descriptioncontent=Thisismypage!--linkrel=stylesheettype=text/csshref=styles.css--styletype=text/css.dqwz{position:absolute;top:120px;left:190px;}.welcome{position:absolute;top:230px;left:600px;}.text{position:absolute;top:300px;left:500px;}.picture{position:absolute;top:390px;left:600px;}.end{position:absolute;top:600px;left:5px;}/style/headbodyimgsrc=images/lab0401.pngwidth=1350height=100tablecellpadding=5cellspacing=0border=0bgcolor=#D3D3D3trtdwidth=120height=1li首页面/li/tdtrtdwidth=120height=1li通讯管理/li/td/trtrtdwidth=120height=1ulli通讯录管理/li/ul/td/trtrtdwidth=120height=1ulli短消息管理/li/ul/td/trtrtdwidth=120height=1li个人管理/li/tdtd/td/trtrtdwidth=120height=1ulli日程安排/li/ul/td/trtrtdwidth=120height=1ulli工作记录/li/ul/td/trtrtdwidth=120height=1li企业管理/li/tdtd/td/trtrtdwidth=120height=1ulli公司公告/li/ul/td/trtrtdwidth=120height=1ulli工作会议/li/ul/td/trtrtdwidth=120height=1li退出/li/td/tr/tabledivclass=dqwztablep当前位置:首页面ahref=login02.jsp【退出】/a/p/table/divdivclass=welcometableimgsrc=images/lab0403.PNG/table/divdivclass=texttableph1欢迎使用企业信息管理系统/h1/p/table/divdivclass=picturetableimgsrc=images/lab0402.jpgwidth=150height=150/table/divdivclass=endtablestyle=bottom:300pxheight=50width=1430trtdheight=50colspan=2align=centerbgcolor=#ADFF2FCopyright©1998-2015XX大学XX学院XX班级AllRightsReserved/td/tr/table/div/body/html