<script language="JavaScript" src="inc/cashin.js"></script>
<%if Request.Cookies("WrzcNethtml")("user_name")<>"" then
set rs=server.createobject("adodb.recordset")
sql="select * from WrzcNethtml_user where username='"&Request.Cookies("WrzcNethtml")("user_name")&"'"
rs.open sql,conn,1,1
if not rs.eof then
usernamec=rs("user_namec")
usernamec1=rs("user_namec1")
user_tel=rs("user_tel")
usermail=rs("usermail")
user_adds=rs("user_adds")
user_postcode=rs("user_postcode")
user_country=rs("user_country")
user_state=rs("user_state")
user_city=rs("user_city")
end if
rs.close
set rs=nothing
end if%>
<table width="100%" cellspacing="0" cellpadding="0">
	<form method="POST" language="javascript" onsubmit="return subform_onsubmit()" name="subform" action="cashsave.asp?action=subp">


<%zpcount=conn.execute("select count(*) from WrzcNethtml_zp")(0)
if zpcount>0 and zengt=1 then%>
		<tr>
			<td height="26" width="19%" class="cartshowa"></td>
			<td class="cartshowa"><b>
			<img border="0" src="Skin/<%=WrzcNethtml_skin%>/lb.gif" align="absmiddle"> 
			Gift</b></td>
		</tr>
		<tr>
			<td height="26" align="center" colspan="2">
			<div class="d10"></div>
			<table cellpadding=3 cellspacing=0 width="95%">
				<tr>
					<td colspan="4" class="cartshow0">
					<input type="radio" value="0" name="zp" checked><font color="#FF0000"> Select a gift</font></td>
				</tr>
<%set rs=server.createobject("adodb.recordset")
rs.open "select * from WrzcNethtml_zp where zp_full>="&totalcash&" order by zp_full asc",conn,1,1
i=1
do while not rs.eof
i=-i%>
				<tr<%if i=1 then%> class="cartshow0"<%else%> class="cartshow1"<%end if%>>
				<td width="180"><input type="radio" value="<%=rs("zp_id")%>" name="zp"></td>
				<td width="200">
				<a style="font-size: 13px; font-weight: bold" href=viewzp.asp?zp_id=<%=rs("zp_id")%> target=_blank><%=rs("zp_name")%></a> (in stock:<%=rs("zp_kucun")%>)</td>
				<td width="120">Price: <%=fuhao%><%=trim(rs("zp_price"))%><%=danwei%></td>
				<td>Subtotal more then <%=fuhao%><%=trim(rs("zp_full"))%><%=danwei%></td>
				</tr>
<%rs.movenext  
loop  
rs.close
set rs=nothing%></table>
			<div class="d10"></div></td>
		</tr>
<%else%>
<input type="hidden" value="0" name="zp">
<%end if%>
<%if quant=1 then%>
		<tr>
			<td height="26" width="19%" class="cartshowa">　</td>
			<td class="cartshowa"><b>
			<img border="0" src="Skin/<%=WrzcNethtml_skin%>/lb.gif" align="absmiddle"> 
			Use Discount Voucher codes</b></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%">Number:</td>
			<td>
			<input type="text" name="quan_no" id="quan_no" size="20" class=input> 
			Password:<input type="text" name="quan_pass" id="quan_pass" size="20" class=input> 
			<a href="#" onclick="javascript:window.open('quancheck.asp?tcash=<%=totalcash%>&quan_no='+quan_no.value+'&quan_pass='+quan_pass.value+'','newwindow','toolbar=no,scrollbars=yes,resizable=no,top=0,left=0,width=420,height=180');"><u>Verify</u></a></td>
		</tr>
<%end if%>
		<tr>
			<td height="26" width="19%" class="cartshowa">　</td>
			<td class="cartshowa"><b>
			<img border="0" src="Skin/<%=WrzcNethtml_skin%>/lb.gif" align="absmiddle"> 
			Shipping Address</b></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%"><font color="#FF0000">* </font>
	First Name:</td><td>
	<input type="text" name="sub_to0" size="20" class=input value="<%=usernamec%>"></td>
</tr>
<tr>
	<td height="26" align="right" width="19%"><font color="#FF0000">* </font>
	Last Name:</td><td>
	<input type="text" name="sub_to1" size="20" class=input value="<%=usernamec1%>"></td>
</tr>
		<tr>
			<td height="26" align="right" width="19%"><font color="#FF0000">*</font> 
			Phone Number:</td>
			<td>
			<input type="text" name="sub_tel" size="20" class=input value="<%=user_tel%>"></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%"><font color="#FF0000">*</font> 
			Email:</td>
			<td>
			<input type="text" name="sub_mail" size="20" class=input value="<%=usermail%>"></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%"><font color="#FF0000">* </font>
	Country:</td><td>
	<input style="FONT-SIZE: 12px; WIDTH: 210px" type="text" name="sub_country" size="40" class=input value="<%=user_country%>"></td>
</tr>
<tr>
	<td height="26" align="right" width="19%"><font color="#FF0000">* </font>
	State:</td><td>
	<input style="FONT-SIZE: 12px; WIDTH: 210px" type="text" name="sub_state" size="40" class=input value="<%=user_state%>"></td>
</tr>
<tr>
	<td height="26" align="right" width="19%"><font color="#FF0000">* </font>
	City:</td><td>
	<input style="FONT-SIZE: 12px; WIDTH: 210px" type="text" name="sub_city" size="40" class=input value="<%=user_city%>"></td>
</tr>
		<tr>
			<td height="26" align="right" width="19%"><font color="#FF0000">*</font> 
			Address:</td>
			<td>
			<input style="FONT-SIZE: 12px; WIDTH: 210px" type="text" name="sub_adds" size="40" class=input value="<%=user_adds%>"></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%">Postcode:</td>
			<td>
			<input type="text" name="sub_post" size="10" class=input value="<%=user_postcode%>"></td>
		</tr>
		<tr>
			<td height="26" align="right" valign="top" width="19%">
			<p style="margin-top: 5px; margin-bottom: 5px">
			<font color="#FF0000">*</font> Arrival date:</td>
			<td valign="top"><%set rs=server.createobject("adodb.recordset")
rs.open "select id,totime from WrzcNethtml_totime",conn,1,1
i=0
do while not rs.eof
i=i+1%>
<input type="radio" value="<%=rs("totime")%>" name="totime"<%if i=1 then response.write " checked"%>><%=rs("totime")%><br>
<%rs.movenext
loop
rs.close
set rs=nothing%></td>
		</tr>
		<tr>
			<td height="10" align="right" valign="top"></td>
			<td height="10"></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%" valign="top">
			<p style="margin-top: 5px; margin-bottom: 5px">
			<font color="#FF0000">* 
	</font>Payment:</td>
			<td><%set rs=server.createobject("adodb.recordset")
rs.open "select * from WrzcNethtml_pay",conn,1,1
i=0
do while not rs.eof
i=i+1%><input type="radio" value="<%=rs("pay_id")%>/<%=rs("pay_name")%>" name="pay_id"<%if i=1 then response.write " checked"%>><%=rs("pay_name")%>&nbsp;<u>[<%=rs("pay_content")%>]</u><br>
<%rs.movenext
loop
rs.close
set rs=nothing%>
<%if paymentid<>0 then%>
			<p style="margin-top: 5px; margin-bottom: 5px; margin-left:20px">
			<a href="help/help/<%=paymentid%>.html" target=_blank>
			<font color="#FF0000">More about payment>></font></a>
<%end if%>
</td>
		</tr>
		<tr>
			<td height="10" align="right" valign="top"></td>
			<td height="10"></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%" valign="top">
			<p style="margin-top: 5px; margin-bottom: 5px">
			<font color="#FF0000">* 
	</font>Shipping:</td>
			<td><%set rs=server.createobject("adodb.recordset")
rs.open "select * from WrzcNethtml_ps",conn,1,1
i=0
do while not rs.eof
i=i+1%><input type="radio" value="<%=rs("ps_id")%>/<%=rs("ps_name")%>" name="ps_id"<%if i=1 then response.write " checked"%>><%=rs("ps_name")%>&nbsp;<u>[<%=rs("ps_content")%>, Arrival at <%=rs("ps_time")%>]</u><br>
<%rs.movenext
loop
rs.close
set rs=nothing%>
<%if psid<>0 then%>
			<p style="margin-top: 5px; margin-bottom: 5px; margin-left:20px">
			<a href="help.asp?typeid=<%=psid%>" target=_blank>
			<font color="#FF0000">More about shipping>></font></a>
<%end if%>
</td>
		</tr>
<%if fapiao=1 then%>
<SCRIPT language=javascript1.2 src="inc/menu.js"></SCRIPT>
		<tr>
			<td height="26" align="right" width="19%">Invoice:</td>
			<td>
			<input type="radio" name="fapiao" value="1" onclick="menuclick('submenuf3')"  style="cursor:pointer;">Yes
 
			<input type="radio" name="fapiao" value="0" checked onclick="menuclick('submenuf2')" style="cursor:pointer;">No   
	 
			<u>(Select Invoice raise a price at <%=shuidian%>%)</u> </td>
		</tr>
		<tr id="submenuf3" style="DISPLAY: none;">
			<td width="19%" height="26" align="right">Company:</td>
			<td>
			<input style="FONT-SIZE: 12px; WIDTH: 210px" type="text" name="sub_taitou" size="40" class=input></td>
		</tr>
		<tr id="submenuf2" style="DISPLAY: none;">
			<td width="19%" align="right"></td>
			<td></td>
		</tr>
<%end if%>

		<tr>
			<td width="19%" height="26" align="right">Out of stock:</td>
			<td><input type="radio" name="quehuo" value="1">Wait<input type="radio" name="quehuo" value="0" checked>Delete</td>
		</tr>
		<tr>
			<td width="19%" height="26" align="right">Leave a message: </td>
			<td>
			<textarea style="FONT-SIZE: 12px; WIDTH: 250px" name="other" cols="30" rows="3"></textarea></td>
		</tr>
		<tr>
			<td width="19%" height="26" align="right"></td>
			<td><input type="image" src="img/regbutton.gif" name="submit"></td>
		</tr>
	</form>
</table>