﻿<%@ LANGUAGE = "VBScript.Encode" codepage="65001" %>
<!--#include file=../inc/conn.asp-->
<!--#include file=../inc/inc.asp-->
<!--#include file=../nnoo.ini-->
<html>
<head>
<meta http-equiv=Content-Type content="text/html;charset=utf-8">
<title>积分优惠券抵用-<%=#@~^MAAAAA==LYG	+7lV!+vEh4mh4^G	0kTE~r{Sn8YbY^+E~Er9'qJ*thAAAA==^#~@%></title>
<link href="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>template/<%=#@~^MgAAAA==LYG	+7lV!+vE4mK:2smY+rSJ:{nmO4JBJ:{i/no^lL'8E#1RAAAA==^#~@%>/css/css.css" rel="stylesheet" type="text/css">
</head>
<body text=000000 link=0000cc vlink=0000cc alink=ff6600 topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0">
<STYLE type=text/css>
#dhtmltooltip {
	font-size: 9pt;BORDER-RIGHT: gray 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: gray 1px solid; PADDING-LEFT: 4px; Z-INDEX: 100; FILTER: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=120); VISIBILITY: hidden; PADDING-BOTTOM: 4px; BORDER-LEFT: gray 1px solid; WIDTH: 150px; PADDING-TOP: 4px; BORDER-BOTTOM: gray 1px solid; POSITION: absolute; BACKGROUND-COLOR: #cccccc

}

</STYLE>
<div id='dhtmltooltip' height=250 width=250><img src=""/></div>
<script language="javascript" src="../js/jump.js"></script>
<%#@~^ygIAAA==@#@&mG	x94@#@&/1GDDCY'LnDWx-l^E+vEA+({S+8mGU6kLJBEh|/^GM+DCOJSJb[{FE*@#@&YWDl^hW	+z'T+OGMN+MzmKExDcd+k/bWU`E^mDOk9E#*@#@&sKoWxLYGx-mV;`rh+({Sn41WU0boESr{^GoKJ~rr['8J*@#@&/^GM+.lDn'T+OG	+\Cs!+cJSn({A41Wx6kTE~rhm/1W.nMlYE~rkN{qE#@#@&9+Wl;sD/^WMn'T+OG	+\Cs!+cJqn({ik+MZVm/kE~rj/{UmG.J~riZ|N+6C;VD'8Jb@#@&7E:n:(nDkW^.'onOKxn\ms!+crh4{!/.JBJi{z\Cr^?mK.+r~J!m;/D	lh+xvr[d+kdkKxcE03Er[r#'JEE*@#@&ik6PN0m;VD/^WM+xE F1&j1`SJ,G.Pb/	EsVc[0CE^O/1W.n*'Y.;POtU@#@&7iN0l!VDdmKDn'Z@#@&7V/@#@&idNWCE^YkmGDnx9+Wl!sYkmG.@#@&7n	N~k6@#@&dC^VkmWM+{L+DWU+7ls;`JSn4|E/.E~rj|?^W.nr~EE|;/DUCs+'vEL/n/krKxcr30Ek9J*'JEJb@#@&drW,lV^dmKD+{ERFgqU1iSE~Dtnx@#@&dilsskmW.n{!@#@&in^/n@#@&idl^Vk^WM+xl^Vd^KD+@#@&dxN,rW@#@&seEAAA==^#~@%>
<script src="../js/check.js"></script>
<script language='javascript'>
 function Loadlogininfo(str1)
{	
	var result,url;
	var j;
	url = "CheckBenefit.asp?catid="+str1
	var xmlDoc=new ActiveXObject("Microsoft.XMLDOM") 
	xmlDoc.async=false;
	xmlDoc.load(url);
	document.getElementById("getBenefitlist").innerHTML=xmlDoc.childNodes(1).childNodes(0).childNodes(0).text;
}
function changecat(sel)
{
	Loadlogininfo(sel);
}
</script>
<script language="javascript" >
<!--
//###############################################################################
function checkJifen()
{  

if (document.form1.SpPay.value != "")
{  
   var input_jifen;
   var ky_jifen;
   ky_jifen=eval("document.form1.ky_jifen.value");
   input_jifen=eval("document.form1.SpPay.value");
   if (parseInt(input_jifen) > parseInt(ky_jifen))
	 { 
		alert ("抵扣分数不能大于可用积分!");
		document.form1.SpPay.value='' ;
	    	document.form1.moneyValue.value='';
		return false;
	  }
	n1=input_jifen * (1/<%=#@~^CQAAAA==d1W.DmY+yAMAAA==^#~@%>)
 	var input_jifen1= n1.toFixed(2);  		//取小数位2位
	var no_pay=eval("document.form1.no_pay_jifen.value");
   if (parseFloat(input_jifen1) >parseFloat(no_pay)) 
	{
	   alert ("积分抵扣金额不能大于未支付款值!");
	   document.form1.SpPay.value='' ;
	   document.form1.moneyValue.value='';
	   document.form1.SpPay.focus();
	   return false;
    }
    
 }   
   return true;
 }

//###############################################################################
function isNumeric(str)
{
	var i=0;
	var j=0;
	while(i<=str.length-1){
		str1=str.charAt(i);
		if (str1=='.'){
			if ((j>0)||(i==0)||(i==(str.length-1))||(i>=2&&i<(str.length-1)&&parseInt(str.substring(0,i))==0))
				//return false;
			j=j+1;
		}
		else if(isNaN(parseInt(str1))==true) return false;
		i=i+1;
	}
	return true;
}
//###############################################################################
function cancelJifen(){			//取消积分支付
	document.form1.SpPay.value='' ;
	document.form1.moneyValue.value='';
 }

function cancelTicket(){			//取消优惠券支付
	document.form1.TicketSN.value='' ;
	ticketinfo.innerHTML='';
 }

//###############################################################################
function returnMoney(SpValue)
{
 if (!isNumeric(document.form1.SpPay.value))
 {
 	  alert('请输入数字！');
	  document.form1.SpPay.focus();
	   return false;
 }
	var strMoneyValue=SpValue *(1/<%=#@~^CQAAAA==d1W.DmY+yAMAAA==^#~@%>);
	document.form1.moneyValue.value=strMoneyValue.toFixed(2);

}

//###############################################################################
function submitForm(act)
{
  if(act == "pre" )
  {
  	document.form1.action="user_orderaddress_edit.asp";
  }
  
  if(act == "next" )
  {
  		document.form1.action="pay.asp?action=step3";
  }
  
  if (checkJifen())
  
  	document.form1.submit();
}
//###############################################################################

 //-->
</script>
<center>
  <div style="width:920px; margin-top:14px">
  	
	  <table width="920" border="0" cellspacing="0" cellpadding="0"> 
  <tr>
      <td width="220" rowspan="2"><a href="<%=#@~^GAAAAA==OMkhv/aVkD`^GoK~Eur#cq*#qQcAAA==^#~@%>"><img src="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%><%=#@~^EgAAAA==daVrD`^WoK~rkJ*`T#mwUAAA==^#~@%>"  border="0"></a></td>
      <td height="44" colspan="2" align="right">&nbsp;</td>
    </tr>
    <tr>
      <td width="478" height="19">&nbsp;</td>
      <td width="222" align="right">&nbsp;</td>
    </tr>
  </table>
  </div>
</center>
<center>
<div style="width:920; height:10px; padding:3px; background:#EBEBEB" align="left">所在位置：首页 >> 购物车 > 积分/优惠券抵用</div>
<div style="width:920; height:1px; margin-bottom:7px; background:#999999"><img src="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>images/null.gif" width="1" height="1"></div>
<div style="width:920px; height:23px" align="left"><img src="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>images/cart/label.gif" width="150" height="30"><font color="#CCCCCC"> 购物车列表 &gt; 
  选择配送支付方式 &gt; </font>积分/优惠券抵用<font color="#CCCCCC"> &gt; 订单确认</font></div>
  <div style="width:920px; height:3px; background:#EBEBEB" align="left"><img src="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>images/null.gif" width="1" height="3"></div>
  <table width="920" border="0" cellspacing="0" cellpadding="0" style="margin:7px 0px">
    <tr>
      <td valign="top">
        <table width="100%" border="0" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF">
               <form action="cartstep3.asp" method="post" name="form1" id="form1"><tr>
            <td height="30" bgcolor="#F4FBFF"><font color="#006699"><strong>积分/优惠券抵用</strong>　　结帐时使用积分或优惠券抵用，省心又开心！！</font></td>
          </tr>
          <tr>
            <td height="3" bgcolor="#7D9AB7"></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="3">
                <tr>
                  <td width="27%" align="center"><img src="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>images/cart/score.jpg" width="100" height="100"></td>
                  <td width="1" background="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>images/cart/dian.gif"><img src="images/null.gif" width="1" height="1"></td>
                  <td width="73%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="30">　<font color="#000000">目前结帐金额： ￥<%=#@~^HQAAAA==WKDhmY	E:(+McYKYCVsWUnH~ BRF*lwoAAA==^#~@%> </font></td>
                      </tr>
                      <tr>
                        <td height="30">　<STRONG>使用积分抵扣货款
                          <input name="ky_jifen" type="hidden" value="<%=#@~^FQAAAA==C^Vd1WM+O9+6CE^YdmKDngwgAAA==^#~@%>">
                        </STRONG></td>
                      </tr>
                      <tr>
                        <td height="30">　使用积分量：
                          <input name="SpPay" type="text" class="input" id="SpPay" maxlength="6" onKeyUp="return returnMoney(this.value);"   value="0" onFocus="javascript:this.value=''">
                            <input type="button" value="取消积分抵扣" name="B1" onClick="javascript:cancelJifen();" alt="取消使用积分支付"></td>
                      </tr>
                      <tr>
                        <td height="30">　可抵扣货款：
                          <input name="moneyValue" type="text" class="input" id="moneyValue" maxlength="6" readonly>
                          (商城积分兑换比率→<%=#@~^CQAAAA==d1W.DmY+yAMAAA==^#~@%>：1)</td>
                      </tr>
                      <tr>
                        <td height="30">　(<font color="#CC0000"> 您当前的总积分: <%=#@~^CAAAAA==C^Vd1WM+VQMAAA==^#~@%></font>,<font color="#CC0000"> 可使用积分: <%=#@~^FQAAAA==C^Vd1WM+O9+6CE^YdmKDngwgAAA==^#~@%></font>)</td>
                      </tr>
                      <tr>
                        <td height="30">　<STRONG>使用优惠券抵扣货款</STRONG></td>
                      </tr>
                      <tr>
                        <td height="30">　优惠券序列：<strong>
                          <input name="no_pay_jifen" type="hidden"  size="30" value="<%=#@~^CgAAAA==OKYC^:Kx+HTAQAAA==^#~@%>">
                          <input name="codeTicket" type="text" id="codeTicket" size="30" maxlength="29">
                          <input type="button" name="Submit" value="验证" onClick="changecat(document.form1.codeTicket.value)">
                        </strong></td>
                      </tr>
               
                      <tr>
                        <td height="30">　
                            <span id="getBenefitlist" name="getBenefitlist"></span>
                          <script>Loadlogininfo("0");</script></td>
                      </tr>
                      <tr>
                        <td height="30">&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="30">　</td>
                      </tr>
                  </table></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="3" bgcolor="#B8B07C"></td>
          </tr>
          <tr>
            <td height="10" align="center" bgcolor="#FFFBF4"><input name="Submit6" type="button" value="上一步"    onClick="history.go(-1);" >
                <input name="Submit62" type="submit" value="下一步"   onClick=" return  checkJifen()"  ></td>
          </tr></form>
        </table>
            
      </td>
      <td width="220" align="right" valign="top"><table width="213" border="0" cellspacing="0" cellpadding="0" style=" margin-bottom:7PX">
        <tr>
          <td height="56" background="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>images/cart/commendt.gif" style="font-weight:bolder">　<span style="font-size:14px">特荐商品 </span>| COMMEND </td>
        </tr>

        <tr>
          <td align="center" background="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>images/cart/commendm.gif"><table width="200" border="0" cellspacing="0" cellpadding="0">
           <%#@~^4AAAAA==dY~M/|wDKN!^Y{mGx	RnamEDn`r/+^n^Y,YKw~v~M,0.Ws~h4m2MWN;^DPAt.PK|fV'ZPmUN,wmm4lULklVx!,WD9n.P(X,wmDCU0P[+k^J,#@#@&idNG~StrV~	WO,Dk{wMW9;mDRnW6@#@&7i/:msVakm,x./|wMW[E^OvJK{k2tKYGE*@#@&7~i4roar1PxM/|wDKN!^YvJK{hw4GDWJ*lEoAAA==^#~@%>
	   <tr>
              <td width="58" height="60" align="center"><div class="kuang"><a href="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>html/product/<%=#@~^FgAAAA==.k{2MW9EmD`r2{KxsXbNEbOAgAAA==^#~@%>.html" target="_blank"><img src="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%><%=#@~^CAAAAA==dsls^wbmVQMAAA==^#~@%>" width="48" height="45" border="0" onMouseOver="javascript:ddrivetip('<img width=150 src=<%#@~^IwAAAA==r6Ps0D`YMksc4bo2k1#S**'J4OYaJPD4nx1gsAAA==^#~@%> <%=#@~^BgAAAA==8bo2bmbgIAAA==^#~@%><%#@~^BAAAAA==n^/nqQEAAA==^#~@%>../../<%=#@~^BgAAAA==8bo2bmbgIAAA==^#~@%><%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>','#ffffff',150)" onMouseOut="hideddrivetip()"></a></div></td>
              <td width="142"><a href="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>html/product/<%=#@~^FgAAAA==.k{2MW9EmD`r2{KxsXbNEbOAgAAA==^#~@%>.html" target="_blank"><font color="#006699"><%=#@~^HQAAAA==s0OvDk{wMW9;mD`Ew|xChJ#Bq!*0wkAAA==^#~@%></font></a><br>
                ￥<s><%=#@~^GwAAAA==.k{2MW9EmD`rK{tl.3YK.bm+rb4AkAAA==^#~@%></s>→<font color="#009900">￥<%=#@~^GwAAAA==.k{2MW9EmD`rK{t+h4DK.bm+rb1AkAAA==^#~@%></font></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><A href="/cart/mycart.asp?action=add&pid=<%=#@~^EAAAAA==.k{2MW9EmD`rrNr#pwUAAA==^#~@%>&mount=1" target=_blank><font color="#000000">放入购物车</font></a>　<img src="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>images/arrow.gif" width="5" height="9"> </td>
            </tr>
            <tr>
              <td colspan="2" background="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>images/dian.gif" height="1"></td>
            </tr>
			<%#@~^NQAAAA==.k{2MW9EmDRsG\xn6D@#@&7idVKGw@#@&di7./|wMW[E^OcmsWknkBAAAA==^#~@%>
          </table>
            </td>
        </tr>
        <tr>
          <td height="13" background="<%=#@~^EQAAAA==	4m;{k+Y!w6GV9+.zAYAAA==^#~@%>images/cart/commendd.gif"></td>
        </tr>
      </table>
      </td>
    </tr>
  </table>
</center>
<center>
  <div style="width:920px; margin-top:14px">
 	  <%=#@~^MQAAAA==LYG	+7lV!+vEh4mh4^G	0kTE~r{1G2XMkTtOJSEbNxFrbLxEAAA==^#~@%>
  </div>
  </center>
<%#@~^BwAAAA==^^WdN(3AIAAA==^#~@%>
</body>
</html>
