<!--#include file="../conn/conn.asp"-->
<!--#include file="../conn/config.asp"-->
<!--#include file="../conn/nosql.asp"-->
<%if session("user")="" then
response.write "<script language='javascript'>"
response.write "alert('您没还有登录，请登录后再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if
if session("id")="" then 
response.write "<script language='javascript'>"
response.write "alert('您没还有登录，请登录后再访问本页！');"
response.write"this.location.href='/index.asp';</SCRIPT>"
response.end
end if%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>在线冲值-<%=webname%></title>
<link href="../css.css" REL="stylesheet" TYPE="text/css">
<style type="text/css">
<!--
body {
	background-image: url();
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {color: #FFFFFF}
.style2 {color: #FF0000}
.style10 {color: #FF3300;
	font-weight: bold;
}
-->
</style>
<SCRIPT language=javascript>
//--检测登陆-->

	   function DoLogin() {

	      var UsernameGet = trim(document.loginForm.UsernameGet.value);
		  var PasswordGet = trim(document.loginForm.PasswordGet.value);
		  var Verifycode = trim(document.loginForm.Verifycode.value);

          if(UsernameGet == "") {
		    alert("请输入会员登录名！");
			document.loginForm.UsernameGet.focus();
		    return false;
		  } 
		  if(PasswordGet == "") {
		    alert("请输入您的会员密码！");
			document.loginForm.PasswordGet.focus();
		    return false;
		  } 
		  if(Verifycode == "") {
		    alert("请输入您的登录验证码！");
			document.loginForm.Verifycode.focus();
		    return false;
		  }  
		  
		  
		 }

           function trim(inputString) {
	   
              if (typeof inputString != "string") { return inputString; }
              var retValue = inputString;
              var ch = retValue.substring(0, 1);
              while (ch == " ") { 
	          //检查字符串开始部分的空格
                  retValue = retValue.substring(1, retValue.length);
                  ch = retValue.substring(0, 1);
              }
              ch = retValue.substring(retValue.length-1, retValue.length);
              while (ch == " ") {
                 //检查字符串结束部分的空格
                 retValue = retValue.substring(0, retValue.length-1);
                 ch = retValue.substring(retValue.length-1, retValue.length);
              }
              while (retValue.indexOf("  ") != -1) { 
	         //将文字中间多个相连的空格变为一个空格
                 retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); 
              }
              return retValue;
           } 

//-->
</SCRIPT>
<script language="JavaScript" type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<script Language="JavaScript"> 
function FormCheck() 
{ 
if (trim(document.Form1.user.value) =="")
{
alert("请填写您的用户名！");
document.Form1.user.focus();
return false;
}
var filter=/^\s*[A-Za-z0-9]{6,20}\s*$/;
if (!filter.test(document.Form1.user.value)) { 
alert("用户名填写不正确,请重新填写！可使用的字符为（A-Z a-z 0-9）长度不小于6个字符，不超过20个字符，注意不要使用空格。"); 
document.Form1.user.focus();
document.Form1.user.select();
return false; 
} 
if (trim(document.Form1.pass.value) =="") 
{
alert("请填写您的密码！");
document.Form1.pass.focus();
return false; 
}
var filter=/^\s*[A-Za-z0-9]{6,20}\s*$/;
if (!filter.test(document.Form1.pass.value)) { 
alert("密码填写不正确,请重新填写！可使用的字符为（A-Z a-z 0-9 ）长度不小于6个字符，不超过20个字符，注意不要使用空格。"); 
document.Form1.pass.focus();
document.Form1.pass.select();
return false; 
} 
if(trim(document.Form1.confirmpassword.value) ==""){
alert("请输入您的确认密码！");
document.Form1.confirmpassword.focus();
return false;
}
if (document.Form1.pass.value!=document.Form1.confirmpassword.value ){
alert("两次填写的密码不一致，请重新填写！"); 
document.Form1.pass.focus();
document.Form1.pass.select();
return false; 
} 
if (trim(document.Form1.question.value) =="") 
{ 
alert("请选择密码提示问题！"); 
document.Form1.question.focus(); 
return (false); 
} 
if (trim(document.Form1.answer.value) =="") 
{ 
alert("请输入密码提示答案！"); 
document.Form1.answer.focus(); 
return (false); 
} 
if (trim(document.Form1.name.value) =="") 
{ 
alert("请输入您的真实姓名！"); 
document.Form1.name.focus(); 
return (false); 
} 
var  check=true;
      for(var i=0;i<document.Form1.ch.length;i++){

 if (document.Form1.ch[i].checked) {
		 check=false;
		break;
        }	
       }
              if (check){
          alert("请填写您的性别！");
          document.Form1.ch[1].focus();
          return (false);
       }  
if (trim(document.Form1.email.value) =="")
{
alert("请输入您的电子邮件地址！");
document.Form1.email.focus();
document.Form1.email.select();
return false;
}
var str1 = document.Form1.email.value
if(str1.indexOf("@") == -1 || str1.indexOf(".") == -1){ 
alert("E-mail格式不正确,请重新填写！"); 
document.Form1.email.focus();
document.Form1.email.select();
return false; 
} 
if (trim(document.Form1.homename.value) =="") 
{ 
alert("请输入个人主页的名称！"); 
document.Form1.homename.focus(); 
return (false); 
}  
document.Form1.submit()
}
//-->
//-->
function trim(inputString) {
	   
              if (typeof inputString != "string") { return inputString; }
              var retValue = inputString;
              var ch = retValue.substring(0, 1);
              while (ch == " ") { 
	          //检查字符串开始部分的空格
                  retValue = retValue.substring(1, retValue.length);
                  ch = retValue.substring(0, 1);
              }
              ch = retValue.substring(retValue.length-1, retValue.length);
              while (ch == " ") {
                 //检查字符串结束部分的空格
                 retValue = retValue.substring(0, retValue.length-1);
                 ch = retValue.substring(retValue.length-1, retValue.length);
              }
              while (retValue.indexOf("  ") != -1) { 
	         //将文字中间多个相连的空格变为一个空格
                 retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); 
              }
              return retValue;
           } 

//--> 
</script>
</head>

<body><!--#include file="../top.asp"-->
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200" valign="top"><!--#include file="../left.asp"--></td>
    <td valign="top"><form name="form1" method="post" action="send.asp">
      <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="28">
            <%shijian=now()
				  years=year(shijian)
				  months=month(shijian)
				  days=day(shijian)
				  if months<10 then
				  months=0&months
				  else
				  months=months
				  end if
				  if days<10 then
				  days=0&days
				  else
				  days=days
				  end if
				  				 dim yz
                randomize timer
                 yz=Int((8999)*Rnd +1009)
				  dd=years&months&days&yz&days&yz
				 ymd=years&months&days

%>
          </td>
        </tr>
        <tr>
          <td height="28">&nbsp;</td>
        </tr>
        <tr>
          <td height="28"><span class="style2">请输入要冲值的金额:</span>
              <input name="C_Merchant_amount" type="text" id="C_Merchant_amount2" value="00.01" size="18" class="wenbenkuang">
              <font color="#999999">不可空值，单位：元，小数点后保留两位，如13.45 </font> </td>
        </tr>
        <tr>
          <td height="28">冲值编号: <%=dd%>
              <input name="C_Merchant_oid" type="hidden" class="wenbenkuang" id="C_Merchant_oid2" value="<%=dd%>">
              <font color="#999999">订单编号，如冲值不成功请劳记编号联系客服</font></td>
        </tr>
        <tr>
          <td height="28">冲值日期: <%=ymd%>
              <input name="C_Merchant_ymd" type="hidden" class="wenbenkuang" id="C_Merchant_ymd2" value="<%=ymd%>">
              <font color="#999999">订单的产生日期</font></td>
        </tr>
        <tr>
          <td height="50">
            <input name="RegisterButton" type="image"  id="RegisterButton2" src="../images/regent7.gif" width="84" height="29" border="0" />
            <table align="center" width="100%" border="0" 

cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>如果在您成功支付后没有获得相关产品或服务，请将您记下的 <font color="#FF6600">定单号</font>及相关信息提供给<font color="#FF6600">您所购物的 网站</font>以便尽快获得解决。如果有争议，请与我们联系，我们将为您提供帮助！</td>
              </tr>
              <tr>
                <td><span class="style12"><strong class="style12">注意：请在支付前关闭弹出窗口拦截 功能，例如：3721上网助手 或 Google工具栏 等，以 便及时收到你所购买的产品或服务。</strong> </span></td>
              </tr>
          </table></td>
        </tr>
      </table>
    </form>      <span class="style10"> </span></td>
  </tr>
</table>
<table width="90%" height="10"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table><!--#include file="../end.asp"-->
</body>
</html>