function ShowLab(flag){
  var iframe = document.getElementById("iframe1")
  var img0=document.getElementById("img0")
  //var img1=document.getElementById("img1")
  var img2=document.getElementById("img2")
  //alert("3333");
  img0.src="homeimages/link1.gif"
  //alert("4444");
  //img1.src="homeimages/link3.gif"
  img2.src="homeimages/link2.gif"
 
  if (flag==0)
  {
     iframe.src = "index/etick.asp";
	 img0.src="homeimages/link1_1.gif"
  }
  else if (flag==1)
  {
     //iframe.src = "index/train.htm";
	 //img1.src="homeimages/link3_1.gif"
  }
  else
  { 
     iframe.src = "index/ntick.asp"; 
	 img2.src="homeimages/link2_1.gif"
   }
   
}

//提交用户登陆表单
function submitForm2(){
   var obj = form2  
   if (isnull(obj.UserName.value)){
       alert("请输入会员名称!")
	   obj.UserName.focus()
	   return false
   }
   if (isnull(obj.Pwd.value)){
       alert("请输入会员名称!")
	   obj.Pwd.focus()
	   return false
   }
   form2.submit();
}

//修改用户注册属性连接函数
function LinkEtdReg(flag){
   if (flag!=""&&flag!=null)
      location.href = "RegistInf/EdtRegDetail.asp?CustName1="+flag
   else
      location.href = "RegistInf/EdtReg.asp";
}

//打开历史订单列表
function openHisOrder(){
  var OrderNo,AccType
  retvalue = window.showModalDialog("order/hisordList.asp","","dialogWidth:540px;dialogHeight:500px;center=yes;help=0;status=0;");
  if (retvalue!=""&&retvalue!=null){
	  if (retvalue.indexOf("||")>0){
		 OrderNo = retvalue.substring(0,retvalue.indexOf("||"));
		 AccType = retvalue.substring(retvalue.indexOf("||")+2,retvalue.length);
		 if (AccType == "1")
			window.location.href = "order/netpay.asp?suc="+suc+"&orderno="+OrderNo;
		  else
			window.location.href = "order/zs_netpay.asp?suc="+suc+"&orderno="+OrderNo;
	   }
	   else
		  window.location.href = "order/HisCfmOrder.asp?suc="+suc+"&ser="+retvalue;
  }
}

//打开领取礼品的页面
function openGift(CustName){
  if (CustName==""){
	 alert("请先登录系统!");
	 return;
  }
  window.open("gift/CustApp.asp","","width=300,height=300");	
}
