<!--#include file="conn.asp"-->
<%if request("iz")="yes" then
m=""
else
m="../"
end if%>


document.getElementById("stime").innerHTML='<%=date()%>';
<%if Request.Cookies("WrzcNethtml")("user_name")<>"" then%>
document.getElementById("sstop").innerHTML='<a href="<%=m%>userinfo.asp" class="topr">My Account</a>&nbsp;| <a href="<%=m%>login.asp?action=quit" class="topr">Logout</a>&nbsp;| ';
<%else%>
document.getElementById("sstop").innerHTML='<a href="<%=m%>Reg.asp" class="topr">Register</a>&nbsp;| <a href="<%=m%>login.asp" class="topr">Login</a>&nbsp;| ';
<%end if%>

document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-top:3px;">');
document.write('<tr><td width=50px></td><%countbuy=conn.execute("select count(basket_count) from WrzcNethtml_basket where user_name='"&user_name&"' and basket_check=0")(0)%>');
document.write('<td width=143px><a href="<%=m%>buy.asp"><%if countbuy=0 then%>0 Items(<%=fuhao%> 0.00)<%else%><%=conn.execute("select sum(basket_count) from WrzcNethtml_basket where user_name='"&user_name&"' and basket_check=0")(0)%>Items (<%=fuhao%> <%=conn.execute("select sum(basket_count*hw_price) from WrzcNethtml_basket where user_name='"&user_name&"' and basket_check=0")(0)*hui%>)<%end if%></a></td>');
document.write('<td width=77px><a href="<%=m%>cash.asp">Checkout</a></td>');
document.write('<td><a href="<%=m%>userinfo.asp">Account</a></td></tr></table>');



<%if Request.Cookies("WrzcNethtml")("v")<>"" then
v=Request.Cookies("WrzcNethtml")("v")
set rs=server.createobject("adodb.recordset")
sql="select * from WrzcNethtml_curr where curr_name='"&v&"'"
rs.open sql,conn,1,1
if rs.eof then%>
var vshui=1;
var vfuhao='<%=fuhao%>';
var vdanwei='<%=danwei%>';
<%else%>
var vshui=<%=rs("curr_hui")%>;
var vfuhao='<%=rs("curr_fuhao")%>';
var vdanwei='<%=rs("curr_danwei")%>';

var icurr='Currency:<select name="menu1" onChange=MM_jumpMenu("self",this,0) size="1">';
icurr=icurr + '<option value="<%=m%>curr.asp?Curr_name=<%=huobix%>"<%if Request.Cookies("WrzcNethtml")("v")=huobix then%> selected<%end if%>><%=huobix%></option>';
<%set rs8=server.CreateObject("adodb.recordset")
rs8.open "select * from WrzcNethtml_Curr order by Curr_id desc" ,conn,1,1
do while not rs8.eof and not rs8.bof%>
icurr=icurr + '<option value="<%=m%>curr.asp?Curr_name=<%=rs8("Curr_name")%>"<%if Request.Cookies("WrzcNethtml")("v")=rs8("Curr_name") then%> selected<%end if%>><%=rs8("Curr_name")%></option>';
<%rs8.movenext
loop
rs8.close
set rs8=nothing%>
icurr=icurr + '</select>';

document.getElementById("curr").innerHTML=icurr;

<%end if
rs.close
set rs=nothing%>
<%else%>
var vshui=1;
var vfuhao='<%=fuhao%>';
var vdanwei='<%=danwei%>';
<%end if%>
function cheng(num)  {
var tempnum;
tempnum=num*vshui*100;  
tempnum=Math.round(tempnum);

return vfuhao + tempnum/100 + vdanwei;



}