<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/function.asp"-->
<!--#include file="checklogin.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改信息</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {color: #FF0000}
.width100{width:100%;}
.border1 {border:1px solid #c8c8c8;}
.style2 {
	color: #FFFFFF;
	font-weight: bold;
}
.style4 {
	color: #000000;
	font-weight: bold;
}
.border{ border:1px solid #c8c8c8;}
#payform .money{ width:82px; height:23px; line-height:23px; border:1px solid #ccc; padding-left:3px;}
#payform .money.this{ width:80px; border:2px solid #97B8D4;}
#payform .button{ width:95px; height:32px; border:0; background:url(../images/butt_next.gif); cursor:hand;}

.tab2 .on { BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; background-color:#FFFFFF; height:24px; color:#01548a; font-size:14px; font-weight:bold; text-align:center; cursor:hand; }
.tab2 .off { BORDER-BOTTOM: #c8c8c8 1px solid;  cursor:hand;  color:#01548a; font-size:14px; height:24px; text-align:center; }
.tab2 .head { BORDER-BOTTOM: #c8c8c8 1px solid;  cursor:hand;  color:#01548a; font-size:14px; height:24px; text-align:center; font-weight:bold;}
.tab2 TH { BACKGROUND: #c8c8c8; WIDTH: 1px;}
-->
</style>
<script type="text/javascript">
function check(obj){
	var amt = obj.money.value;
	// 检查充值金额不能为空
	if(amt == "")
	{
		window.alert("请填写有效的充值金额！") ;
		obj.money.focus();
		return false;
	}
	// 检查最小的充值金额
	if(amt < 0.01)
	{
		window.alert("最少充值金额为0.01元");
		obj.money.focus();
		return false;
	}
	return true;
}
function checkint(elem)
{
  var checkOK = ".0123456789";
  var checkStr = elem.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
		ch = checkStr.charAt(i);
    	for (j = 0;  j < checkOK.length;  j++)
      	if (ch == checkOK.charAt(j))
        break;
    	if (j == checkOK.length)
    	{
      		allValid = false;
      		break;
    	}
  }
  if (!allValid)
  {
    	alert("只能输入数字。");
    	elem.focus();
    	return (false);
  }
  return (true);
}
function vtab(m,n,s) {
	s = s + 1;
	for(var i=1;i<s;i++) {
		document.getElementById("l_"+m+"_"+i).className="off";
		document.getElementById("c_"+m+"_"+i).style.display="none";
	}
	document.getElementById("l_"+m+"_"+n).className="on";
	document.getElementById("c_"+m+"_"+n).style.display="block";
}
</script>
</head>

<body>
<!--#include file="top.asp"-->
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" class="border">
  <tr>
    <td height="28" class="th_title">会员信息</td>
  </tr>
  <tr>
    <td class="td_row"><div align="center">即时到账,只要你有以下银行卡并开通了网上银行功能，就可以在线完成充值。</div></td>
  </tr>
  <tr>
    <td><div align="center"><img src="../images/blanks_img.gif" width="466" height="169" /></div></td>
  </tr>
  <tr>
    <td class="td_row"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="border1">
      <tr>
        <td><DIV>
            <table class="tab2" cellspacing="0" cellpadding="0" width="100%" border="0">
              <tr>
                <td id="l_d_1" onclick="javascript:vtab('d',1,2);" class="on">财付通</td>
                <th></th>
                <td id="l_d_2" onclick="javascript:vtab('d',2,2);" class="off">支付宝</td>
              </tr>
            </table>
          <div class="container">
              <div id="c_d_1">
                <form name="payform" method="post" action="../pay_api/tenpay/index.asp" id="payform" onsubmit="return check(this)" target="_blank">
                  <p align="center">充值金额：
                    <input name="money" type="text" class="money" id="money" onblur="checkint(this)" value="100" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
                    元
                    <input type="submit" name="Submit3" class="button" value="" />
                  </p>
                  <p align="center">财付通在线支付</p>
                </form>
              </div>
            <div id="c_d_2" style="display:none;">
                <form name="payform" method="post" action="../pay_api/alipay/index.jsp" id="payform" onsubmit="return check(this)" target="_blank">
                  <p align="center">充值金额：
                    <input name="money" type="text" class="money" id="money" onblur="checkint(this)" value="100" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
                    元
                    <input type="submit" name="Submit3" class="button" value="" />
                  </p>
                  <p align="center">支付宝在线支付</p>
                </form>
              </div>
            <!--end alipay-->
          </div></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
<%
call connclose()
%>