function dh(x){
   document.getElementById("nav"+x).style.display="";
}
function dhh(x){
   document.getElementById("nav"+x).style.display="none";
}


//发起人简介
function fqr(n){
    for(i=0;i<8;i++){
   document.getElementById("ff"+i).style.display="none"
   document.getElementById("ff"+n).style.display=""
 }
}


//媒体报道
function mtbd(z){
    for(i=0;i<4;i++){
   document.getElementById("bd"+i).style.display="none"
   document.getElementById("bd"+z).style.display=""
 }
}




//常务理事
function tui(u){
    for(i=0;i<11;i++){
   document.getElementById("bb"+i).style.display="none"
   document.getElementById("bb"+u).style.display=""
   document.getElementById("on"+i).style.textDecoration="none"
   document.getElementById("on"+u).style.textDecoration="underline"
 }
}



//理事
function ls(h){
    for(i=0;i<111;i++){
   document.getElementById("ybb"+i).style.display="none"
   document.getElementById("ybb"+h).style.display=""
 }
}


//对话与交流
function er(y){
	for(i=0;i<2;i++){
   document.getElementById("lj"+i).style.display="none";
   document.getElementById("lj"+y).style.display=""
}
}


//其它活动

function cb(x){
	for(i=0;i<3;i++){
		document.getElementById("bao"+i).style.display="none"
		document.getElementById("bao"+x).style.display=""

		}

	}

/*===================================yhzc===========================================*/
function qb(){
 a=document.f1.username.value.length
 if(a<6){alert("用户名不可以超过七位")
 document.f1.username.select()
 return false
 }

 b=document.f1.pw1.value
 if(b.length<6){alert("密码不可以小于六位")
 document.f1.pw1.select()
 return false
 }

 c=document.f1.pw2.value
 if(b!=c){alert("验证码与密码必须相同")
 document.f1.pw2.select()
 return false}

}

function aa(){
 a=document.f1.username.value.length
 if(a<6){alert("用户名不可以超过七位")
 document.f1.username.select()
 return false}
}

function bb(){
 b=document.f1.pw1.value
 if(b.length<6){alert("密码不可以小于六位")
 document.f1.pw2.select()
 return false}
}

function cc(){
 c=document.f1.pw2.value
 if(c!=b){alert("验证码与密码必须相同")
 document.f1.pw2.select()
 return false}
}
/*=====================================xxxx=========================================*/
function db(){
 a=document.form1.username.value.length
 if(a<6){alert("姓名不可为空")
 document.form1.username.select()
 return false}

 b=document.form1.dz.value
 if(b==""){alert("地址不可为空")
 document.form1.dz.select()
 return false}
 c=document.form1.tel.value
 if(isNaN(c)){alert("电话号码必须为数字")
  document.form1.tel.select()
  return false
  }
  else if(c.length<11){alert("电话不可以小于11位")
  document.form1.tel.select()
  return false
  }

 d=document.form1.email.value
 if(d==""){alert("邮箱必须填写")
  document.form1.email.select()
 return false
 }
 else if(d.indexOf("@")==-1){alert("邮箱填写不正确")
 document.form1.email.select()
 return false}

 e=document.form1.sf.value
 if(isNaN(e)){alert("身份证号码必须为数字")
  document.form1.sf.select()
  return false}
  else if(e.length<15){alert("身份证号码不可以小于15位")
  document.form1.sf.select()
  return false}
}
function hh(){
 a=document.form1.username.value.length
 if(a<6){alert("姓名不可为空")
 document.form1.username.select()
 return false}
}

function jj(){
  b=document.form1.dz.value
 if(b==""){alert("地址不可为空")
 document.form1.dz.select()
 return false}
}

function kk(){
  c=document.form1.tel.value
 if(isNaN(c)){alert("电话号码必须为数字")
  document.form1.tel.select()
  return false
  }
  else if(c.length<11){alert("电话不可以小于11位")
  document.form1.tel.select()
  return false
  }
}

function ll(){
  d=document.form1.email.value
 if(d==""){alert("邮箱必须填写")
 return false}
 else if(d.indexOf("@")==-1){alert("邮箱填写不正确")
 document.form1.email.select()
 return false}
}
function nn(){
   e=document.form1.sf.value
 if(isNaN(e)){alert("身份证号码必须为数字")
  document.form1.sf.select()
  return false}
  else if(e.length<15){alert("身份证号码不可以小于15位")
  document.form1.sf.select()
  return false}
}

//首页
var an=0
function qh(){
  document.getElementById("sstu").src="/html/images/"+an+".jpg"
  for(i=0;i<4;i++){document.getElementsByName("lj")[i].style.background="#000"
                   document.getElementsByName("lj")[i].style.color="#fff"
	  }
  document.getElementsByName("lj")[an].style.background="#f60"
  document.getElementsByName("lj")[an].style.textDecoration="none"
  an++;
  if(an==4){an=0}
  setTimeout("qh()",2000)
}

function hg(n){
  document.getElementById("sstu").src="/html/images/"+n
  for(i=0;i<4;i++){document.getElementsByName("lj")[i].style.background="#000"
                    document.getElementsByName("lj")[i].style.color="#fff"

  }
  document.getElementsByName("lj")[n].style.background="#f60"
  document.getElementsByName("lj")[n].style.textDecoration="none"
}

//商界名家午餐会

function wch(c){
	for(i=0;i<4;i++){
		document.getElementById("hg"+i).style.display="none"
		document.getElementById("hg"+c).style.display=""

		}

	}

//在线报名

function zx(){
 a=document.form2.username.value.length
 if(a<2){alert("姓名不可为空，必须大于六位")
 document.form2.username.select()
 return false}

 b=document.form2.ad.value
 if(b==""){alert("地址不可为空")
 document.form2.ad.select()
 return false}
 c=document.form2.tel.value
 if(isNaN(c)){alert("电话号码必须为数字")
  document.form2.tel.select()
  return false
  }
  else if(c.length<11){alert("电话不可以小于11位")
  document.form2.tel.select()
  return false
  }
}

function xm(){
 a=document.form2.username.value.length
 if(a<2){alert("姓名不可为空,必须大于两位")
 document.form2.username.select()
 return false}
}

function dzz(){
  b=document.form2.ad.value
 if(b==""){alert("地址不可为空")
 document.form2.ad.select()
 return false}
}

function ddhh(){
  c=document.form2.tel.value
 if(isNaN(c)){alert("电话号码必须为数字")
  document.form2.tel.select()
  return false
  }
  else if(c.length<11){alert("电话不可以小于11位")
  document.form2.tel.select()
  return false
  }
}













