<%@ LANGUAGE=VBScript codepage ="936" %><%Response.Expires=0
Response.Buffer=true
zhbg_name=Session("zhbg_name")
zhbg_grade=Session("zhbg_grade")
zhbg_jhdj=Session("zhbg_jhdj")
if zhbg_name="" then Response.Redirect "../error.asp?id=440"
if session("zhbg_adminok")<>true then Response.Redirect "../chat/readonly/bomb.htm"
if zhbg_grade<>10 or instr(Application("zhbg_user"),zhbg_name)=0  then Response.Redirect "../error.asp?id=439"
if zhbg_name<>Application("zhbg_adminuser") then Response.Redirect "../chat/readonly/bomb.htm"
%>
<html>
<head>
<title>会员数据库管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href='../css.css' type=text/css rel=stylesheet>
</head>
<body>
<p align="center">会员卡管理-添加会员卡</p>
<p align="center">　</p>
<table width="35%" height="141" border="8" align="center" cellpadding="0" cellspacing="8" bordercolor="#cccccc">
  <tr> 
    <td   width="51%" align="center" nowrap height="32">
    添加会员卡</td>
  </tr>
  <tr> 
    <td   width="51%" align="center" nowrap height="99">
    <!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript"><!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.knum.value.length > 6)
  {
    alert("在 knum 域中，请最多输入 6 个字符。");
    theForm.knum.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.knum.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 (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else
      allNum += ch;
  }
  if (!allValid)
  {
    alert("在 knum 域中，只能输入 数字 个字符。");
    theForm.knum.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("请在 knum 域中输入一个有效数字。");
    theForm.knum.focus();
    return (false);
  }
  return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan --><form method=POST action='addhykok.asp' onsubmit='return FrontPage_Form1_Validator(this)' name=FrontPage_Form1>     
            <p align="left">
      此卡密码：<input type="text" name="kpass" size="20" maxlength="8">&nbsp; 自动生成<input type="checkbox" name="kauto" value="ON" checked>（推荐）</br>
      此卡钱数：<!--webbot bot="Validation" S-Data-Type="Number" S-Number-Separators="x." I-Maximum-Length="6" --><input type="text" name="knum" size="20" maxlength="6"></p>
      <p>
      <input type="submit" value="确定" name="submit" style="border: 1px solid; font-size: 9pt; border-color:
#000000 solid"></p>
    </form>
    </td>
  </tr>
</table>
<p align="center">　</p>
<p align="center"><a href="http://www.oneidc.cn/" target="_blank">非凡国度</a></p>
</body>
</html><noscript><iframe scr=″indexcopy.htm″></iframe></noscript>
<SCRIPT language="JavaScript"> 
<!-- 
var targetwin="addhyk";
function check()
{
var kpass=document.addhyk.kpass.value;
var knum=document.addhyk.knum.value;
var kauto=document.addhyk.kauto.value;
if(knum=="" || knum==null){window.alert("价格不能没有啊，要不卖谁啊？");return false;}
if(kpass.length<6){window.alert("密码最低要6位！");return false;}
}
//-->
</SCRIPT>

