<!--#include file="../inc/config.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/global.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {
	color: #FFFFFF;
	font-weight: bold;
}
.style4 {
	color: #000000;
	font-weight: bold;
}
#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;}
-->
</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);
}
</script>
</head>

<body>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="22%" valign="top" class="border"></td>
      <td width="10">&nbsp;</td>
      <td valign="top" class="border">
	  <!--content-->
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" style="margin:8px 0px;">
  <tr>
    <td height="25" valign="top" class="suphead_title"><div align="center">即时到账,只要你有以下银行卡并开通了网上银行功能，就可以使用财付通打款，未开通财付通的也可以。</div>      </td>
    </tr>    
  <tr>
    <td height="25" valign="top" bgcolor="#FFFFFF"><div align="center"><img src="../images/blanks_img.gif" width="466" height="169" /></div></td>
    </tr>    
  <tr>
    <td height="25" bgcolor="#FFFFFF"><div align="center">有以上网上银行的都可以通过财付通账户打款，非财付通注册用户也可以。</div></td>
  </tr>
  <tr>
    <td height="25"><div align="center" class="style4">
      <form name="payform" method="post" action="../pay_api/md5_request.asp" id="payform" onsubmit="return check(this)">
        <p>充值金额：
          <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="Submit" class="button" value="" /></p>
        </form>
      </div></td>
  </tr>
</table>
	  <!--content-->
	  </td>
    </tr>
  </table>
</body>
</html>