<%temp_customer_manage_account_fill_show=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_customer_manage_account_fill_show -->

<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.defray_amount.value == "")
  {
    alert("请在 充值金额 域中输入值。");
    theForm.defray_amount.focus();
    return (false);
  }

  if (theForm.defray_amount.value.length < 1)
  {
    alert("在 充值金额 域中，请至少输入 1 个字符。");
    theForm.defray_amount.focus();
    return (false);
  }

  var checkOK = "0123456789-.,";
  var checkStr = theForm.defray_amount.value;
  var allValid = true;
  var validGroups = 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 (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else if (ch == "," && decPoints != 0)
    {
      validGroups = false;
      break;
    }
    else if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("在 充值金额 域中，只能输入 数字 字符。");
    theForm.defray_amount.focus();
    return (false);
  }

  if (decPoints > 1 || !validGroups)
  {
    alert("请在 defray_amount 域中输入一个有效数字。");
    theForm.defray_amount.focus();
    return (false);
  }

  var chkVal = allNum;
  var prsVal = parseFloat(allNum);
  if (chkVal != "" && !(prsVal >= 0 && prsVal <= 10000000))
  {
    alert("请在 充值金额 域中输入值 大于或等于 0 与 小于或等于 10000000。");
    theForm.defray_amount.focus();
    return (false);
  }
  return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan --><form method="POST" action="do.asp?tr=customer|manage|fill|out" name=FrontPage_Form1 onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript">
	<table cellspacing="0" cellpadding="0" height="100%" width=100% style="border: 1px solid #ebebeb" <%=site.object(site.object_p).style%> >
		<tr>
			<td colspan="5" align=center height=85>
			<img align=absmiddle border="0" src="<%=site.object(site.object_p).image%>/banner_01.gif" width="128" height="79"></td>
		 </tr>
		 <tr >
		   <td colspan="5" width="100%" align=left background="<%=site.object(site.object_p).image%>/dot03.gif" height="1" ></td>
		 </tr>
			<%
			site.object(site.object_p).rs.open"select * from jins_payment_list where payment_online=1 and payment_open=1 order by payment_num ",conn,1,1
			checked="checked"
			do while not site.object(site.object_p).rs.eof
			response.write "<tr>"
			response.write "<td bgcolor='#f7f7f7' align=left width=40% style='padding-left:20' height=30>"
			response.write "<input type=radio name=payment "&checked&" value='"&site.object(site.object_p).rs("payment_id")&"'> "&site.object(site.object_p).rs("payment_name")&"<br>"
			response.write "</td>"
			response.write "<td bgcolor='#f7f7f7' align=left width=60% height=30>"
			response.write "<img title='支付方式说明: "&trim(site.object(site.object_p).rs("payment_description"))&"' border='0' src='"&site.object(site.object_p).image&"/icon_info.gif' hspace=5 align=absmiddle> <a target=_blank href='"&site.object(site.object_p).rs("payment_url")&"'><img border='0' hspace=15 align=absmiddle src='"&site.object(site.object_p).image&"/ttt.gif' ></a>"
			response.write "</td>"
			response.write "</tr>"
			checked=""
			site.object(site.object_p).rs.movenext
			loop
			%>
		 <tr >
		   <td colspan="5" width="100%" align=left background="<%=site.object(site.object_p).image%>/dot03.gif" height="1" ></td>
		 </tr>
		<tr>
			<td colspan="5"  align=center style="line-height:35px;" height=40>
			充值金额：<%=site.info.unit_money(1)%>
			<!--webbot bot="Validation" S-Display-Name="充值金额" S-Data-Type="Number" S-Number-Separators=",." B-Value-Required="TRUE" I-Minimum-Length="1" S-Validation-Constraint="Greater than or equal to" S-Validation-Value="0" S-Validation-Constraint="Less than or equal to" S-Validation-Value="10000000" -->
			<input type="text" name="defray_amount" size="12">
			<%randomize%>
			<input type="hidden" name="str_time" value='<%=year(now())&month(now())&day(now())&replace(timer(),".","")&"_"&int((rnd*100000)+1)%>'>
			<input type="submit" value="开始在线充值" name="B1">&nbsp; <input type="reset" value="重置" name="B2"></td>
		 </tr>
	</table>
</form>
