function Sel2(i){
	if(document.formSel.check2 .checked){
		document.getElementById("chk"+i.toString()).style.display = 'block';
	}else{
	    document.getElementById("chk"+i.toString()).style.display = 'none';
	}
}
function Sel3(i){
	if(document.formSel.check3 .checked){
		document.getElementById("chk"+i.toString()).style.display = 'block';
	}else{
	    document.getElementById("chk"+i.toString()).style.display = 'none';
	}
}
function Sel4(i){
	if(document.formSel.check4 .checked){
		document.getElementById("chk"+i.toString()).style.display = 'block';
	}else{
	    document.getElementById("chk"+i.toString()).style.display = 'none';
	}
}
function Sel5(i){
	if(document.formSel.check5 .checked){
		document.getElementById("chk"+i.toString()).style.display = 'block';
	}else{
	    document.getElementById("chk"+i.toString()).style.display = 'none';
	}
}
function bankApper(){
	document.getElementById("bank01").style.display = 'block';
	document.getElementById("zfb").style.display = 'none';
}
function bankHidden(){
	document.getElementById("bank01").style.display = 'none';
	document.getElementById("zfb").style.display = 'block';
}

function checkFirstStep(){
if(formSel.check2.checked==false&&formSel.check3.checked==false&&formSel.check4.checked==false&&formSel.check5.checked==false){
alert("请至少选择一项您想想要的产品!");
	document.formSel.check2.focus();
	return false;
}
}
function othersUnCheck(){
	if(document.form2.areas.checked){
		document.getElementById("others").checked=false;
	}else{
	    document.getElementById("others").checked=true;
	}
}
function beijingUnCheck(){
	if(document.form2.others.checked){
		document.getElementById("areas").checked=false;
	}else{
	    document.getElementById("areas").checked=true;
	}
}

function checkSecStep(){
	if(form2.areas.checked==false&&form2.others.checked==false){
	alert("请确认你所在的地区!");
	return false;
	}
}
function checkThirdStep(){
	if(form3.username.value==""){
	alert("请确认收货人姓名!");
	document.form3.username.focus();
	return false;
	}
	if(form3.address.value==""){
	alert("请确认收货人地址!");
	document.form3.address.focus();
	return false;
	}
	
	if(form3.tel.value==""&&form3.sj.value==""){
	alert("手机和固定电话二者必填其一");
	document.form3.tel.focus();
	return false;
	}


	
}
function checkForthStep(){
	if(form4.username.value==""){
	alert("请确认收货人姓名!");
	document.form4.username.focus();
	return false;
	}
	if(form4.tel.value==""&&form4.sj.value==""){
	alert("手机和固定电话二者必填其一");
	document.form4.tel.focus();
	return false;
	}
		if(form4.address.value==""){
	alert("请确认收货人地址!");
	document.form4.address.focus();
	return false;
	}

}
function objSP_Article() {this.ImgUrl=""; this.LinkUrl=""; this.Title="";}
function SlidePic_Article(_id) {this.ID=_id; this.Width=0;this.Height=0; this.TimeOut=5000; this.Effect=23; this.TitleLen=0; this.PicNum=-1; this.Img=null; this.Url=null; this.Title=null; this.AllPic=new Array(); this.Add=SlidePic_Article_Add; this.Show=SlidePic_Article_Show; this.LoopShow=SlidePic_Article_LoopShow;}
function SlidePic_Article_Add(_SP) {this.AllPic[this.AllPic.length] = _SP;}
function SlidePic_Article_Show() {
  if(this.AllPic[0] == null) return false;
  document.write("<div align='center' ><a id='Url_" + this.ID + "' href=''><center><img id='Img_" + this.ID + "' style='width:" + this.Width + "px; height:" + this.Height + "px; filter: revealTrans(duration=2,transition=23);' src='javascript:null' border='0'><br></a>");
  if(this.TitleLen != 0) {document.write("<span id='Title_" + this.ID + "'></span></div>");}
  else{document.write("</center></div>");}
  this.Img = document.getElementById("Img_" + this.ID);
  this.Url = document.getElementById("Url_" + this.ID);
  this.Title = document.getElementById("Title_" + this.ID);
  this.LoopShow();
}
function SlidePic_Article_LoopShow() {
  if(this.PicNum<this.AllPic.length-1) this.PicNum++ ; 
  else this.PicNum=0; 
  this.Img.filters.revealTrans.Transition=this.Effect; 
  this.Img.filters.revealTrans.apply(); 
  this.Img.src=this.AllPic[this.PicNum].ImgUrl;
  this.Img.filters.revealTrans.play();
  this.Url.href=this.AllPic[this.PicNum].LinkUrl;
  if(this.Title) this.Title.innerHTML="<a href="+this.AllPic[this.PicNum].LinkUrl+" target=_blank>"+this.AllPic[this.PicNum].Title+"</a>";
  this.Img.timer=setTimeout(this.ID+".LoopShow()",this.TimeOut);
}
