文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>发布房产信息网页的前台页面js部分...

发布房产信息网页的前台页面js部分...

时间:2010-08-17  来源:zf_missyou

< type="text/javascript"> function But_Click() { var txtTitle = document.getElementById("txtTitle").value; var txtTitlel = document.getElementById("txtTitle").value.length; var txtSeq = document.getElementById("txtSeq").value.length; var txtArea12 = document.getElementById("txtArea12").value; var txtDetialAddress12 = document.getElementById("txtDetialAddress12").value; var txtDetialAddress12l = document.getElementById("txtDetialAddress12").value.length; var txtAcreage = document.getElementById("txtAcreage").value; var txtOtherAcreage = document.getElementById("txtOtherAcreage").value; var txtAcreagel = document.getElementById("txtAcreage").value.length; var txtInFloor = document.getElementById("txtInFloor").value; var txtInFloorl = document.getElementById("txtInFloor").value.length; var txtSumFloor = document.getElementById("txtSumFloor").value; var txtSumFloorl = document.getElementById("txtSumFloor").value.length; var txtLinkMan = document.getElementById("txtLinkMan").value; var txtBuildDate = document.getElementById("txtBuildDate").value; var txtBuildDatel = document.getElementById("txtBuildDate").value.length; var txtPhone11 = document.getElementById("txtPhone11").value; var txtPhone12 = document.getElementById("txtPhone12").value; var txtPhone12l = document.getElementById("txtPhone12").value.length; var txtmobile1 = document.getElementById("txtmobile1").value; var txtmobile1l= document.getElementById("txtmobile1").value.length; var goodChar = "0123456789"; //数字 var cx; var goodCharx = "0123456789"; //数字 var cxx; var txtmobile2 = document.getElementById("txtmobile2").value; var txtmobile3 = document.getElementById("txtmobile3").value; var txtmobile2l= document.getElementById("txtmobile2").value.length; var txtmobile3l = document.getElementById("txtmobile3").value.length; var txtPhone13 = document.getElementById("txtPhone13").value; var txtPhone13l = document.getElementById("txtPhone13").value.length; var txtPhone22 = document.getElementById("txtPhone22").value; var txtPhone22l = document.getElementById("txtPhone22").value.length; var txtPhone23 = document.getElementById("txtPhone23").value; var txtPhone23l = document.getElementById("txtPhone23").value.length; var txtPhone32 = document.getElementById("txtPhone32").value; var txtPhone32l = document.getElementById("txtPhone32").value.length; var txtPhone33 = document.getElementById("txtPhone33").value; var txtPhone33l = document.getElementById("txtPhone33").value.length; var txtPhone42 = document.getElementById("txtPhone42").value; var txtPhone42l = document.getElementById("txtPhone42").value.length; var txtPhone43 = document.getElementById("txtPhone43").value; var txtPhone43l = document.getElementById("txtPhone43").value.length; var txtPhone52 = document.getElementById("txtPhone52").value; var txtPhone52l = document.getElementById("txtPhone52").value.length; var txtPhone53 = document.getElementById("txtPhone53").value; var txtPhone53l = document.getElementById("txtPhone53").value.length; var txtRemark12 = document.getElementById("txtRemark12").value.length; var txtBuyPriceTotal1=document.getElementById("txtBuyPriceTotal1").value; var txtBuyPriceUnit1=document.getElementById("txtBuyPriceUnit1").value; var DDLSectionID=document.getElementById("DDLSectionID").value; var txtManageFree = document.getElementById("txtManageFree").value; if(txtTitle == "" ) { alert("请输入标题"); return false; } else if( txtTitlel > 20 ) { alert("标题最多可输入20个字符"); return false; } else if( txtRemark12 > 100 ) { alert("房源描述最多可输入100个字符"); return false; } else if (txtSeq > 10) { alert("房源编号最多可输入10个字符"); return false; } else if (txtArea12 == "" || txtArea12== "请输入小区名称") { alert("请输入小区名称"); return false; } else if (txtDetialAddress12 == "" || txtDetialAddress12== "请输入详细地址") { alert("请输入详细地址"); return false; } else if (txtDetialAddress12l > 20) { alert("详细地址最多可输入20个中文字符"); return false; } else if (DDLSectionID==-1) { alert("请选择所属区县"); return false; } // else if (e == "请 选 择") // { // alert("请选择房源编号"); // return false; // } else if (txtAcreage == "") { alert("请输入建筑面积"); return false; } if(isNaN(txtAcreage)) { alert("建筑面积只能是数字"); return false; } if(isNaN(txtOtherAcreage)) { alert("使用面积只能是数字"); return false; } if(isNaN(txtBuyPriceTotal1)) { alert("总价只能是数字"); return false; } if(isNaN(txtBuyPriceUnit1)) { alert("单价只能是数字"); return false; } if(txtBuyPriceTotal1 == "" && txtBuyPriceUnit1=="" ) { alert("请输入房屋价格"); return false; } if (txtAcreagel7) { alert("您输入的建筑面积不符合要求"); return false; } var txtOtherAcreage=txtOtherAcreage*1; var txtAcreage=txtAcreage*1; if(txtOtherAcreage > txtAcreage ) { alert("使用面积不能大于建筑面积"); return false; } else if (txtInFloor == "") { alert("请输入房屋所在层数"); return false; } for(var i1=0;i1year1 || txtBuildDate1
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载