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

document.write('<table cellSpacing="0" cellPadding="0" border="0" class="log_la">');
document.write('<tr><td class="log_la1"><span class="log_laf">My account</span></td></tr>');
document.write('<tr><td class="log_la2">');
document.write('<p style="margin:10px 15px; line-height: 150%" align="left">');
<%if Request.Cookies("WrzcNethtml")("user_name")<>"" then
user_name=Request.Cookies("WrzcNethtml")("user_name")%><%countbuy=conn.execute("select count(basket_count) from WrzcNethtml_basket where user_name='"&user_name&"' and basket_check=0")(0)%>
document.write('<img border="0" src="<%=m%>Img/user/1.gif"> <a href="<%=m%>userinfo.asp">Hello.<%=user_name%></a> [<a href="<%=m%>login.asp?action=quit">Logout</a>]<br>');
document.write('<img border="0" src="<%=m%>Img/user/2.gif"> <a href="<%=m%>modify.asp">Change Name,Address</a><br>');
document.write('<img border="0" src="<%=m%>Img/user/3.gif"> <a href="<%=m%>changepass.asp">Change Password</a><br>');
document.write('<img border="0" src="<%=m%>Img/user/4.gif"> <a href="<%=m%>orders.asp">Orders</a><br>');
document.write('<img border="0" src="<%=m%>Img/user/5.gif"> <a href="<%=m%>rulelog.asp">Manage Discount Voucher(<%=Conn.Execute("select count(*) from WrzcNethtml_quan where user_name='"&user_name&"' and quan_is=0 and quan_type=1")(0)%>)</a><br>');
document.write('<img border="0" src="<%=m%>Img/user/6.gif"> <a href="<%=m%>rule.asp">Get Discount Voucher</a><br>');
document.write('<img border="0" src="<%=m%>Img/user/8.gif"> <a href="<%=m%>buy.asp">Shopping Cart(<%if countbuy=0 then%>0<%else%><%=conn.execute("select sum(basket_count) from WrzcNethtml_basket where user_name='"&user_name&"' and basket_check=0")(0)%><%end if%>)</a><br>');
document.write('<img border="0" src="<%=m%>Img/user/9.gif"> <a href="<%=m%>fav.asp">My favorites(<%=GetFav(user_name)%>)</a><br>');

<%elseif Request.Cookies("WrzcNethtml")("guest")<>"" then
user_name=Request.Cookies("WrzcNethtml")("guest")%><%countbuy=conn.execute("select count(basket_count) from WrzcNethtml_basket where user_name='"&user_name&"' and basket_check=0")(0)%>

document.write('<img border="0" src="<%=m%>Img/user/1.gif"> <a href="<%=m%>reg.asp">Register</a> / <a href="<%=m%>login.asp">Login</a><br>');
document.write('<img border="0" src="<%=m%>Img/user/8.gif"> <a href="<%=m%>buy.asp">Shopping Cart(<%if countbuy=0 then%>0<%else%><%=conn.execute("select sum(basket_count) from WrzcNethtml_basket where user_name='"&user_name&"' and basket_check=0")(0)%><%end if%>)</a><br>');
<%else%>
document.write('<img border="0" src="<%=m%>Img/user/1.gif"> <a href="<%=m%>reg.asp">Register</a> / <a href="<%=m%>login.asp">Login</a><br>');
document.write('<img border="0" src="<%=m%>Img/user/8.gif"> <a href="<%=m%>buy.asp">Shopping Cart(0)</a><br>');
<%end if%>
document.write('<%comid=split(request.Cookies("WrzcNethtml")("com"),"/")%><img border="0" src="<%=m%>Img/user/10.gif"> <a href="<%=m%>com.asp">Compare Now(<%=ubound(comid)+1%>)</a>');
document.write('</p></td></tr>');
document.write('<tr><td class="log_la3"></td></tr></table>');

<%if request("iz")<>"yes" then%>
<%if Request.Cookies("WrzcNethtml")("com")<>"" then%><%comid=split(Request.Cookies("WrzcNethtml")("com"),"/")%>
document.write('<DIV id=floatcom style="Z-INDEX:100; RIGHT: 0px; FILTER: alpha(opacity=60); WIDTH: 110px; POSITION: absolute; TOP: 300px" align=center>');
document.write('<table border="0" cellspacing="0" width="100%" cellpadding="0" style="border: 1px solid #D7D7D7">');
document.write('<tr><td align="center" height="30" class="cartshowa"><b>Compare</b></td><td align="center" class="cartshowa"><a href="#" onclick="hidecom()">Hidden</a></td></tr>');
document.write('<tr><td align="center" colspan="2"><table border="0" cellspacing="0" width="100%" cellpadding="3" bgcolor="#FFFFFF">');
<%for i=0 to ubound(comid)
comp_id=trim(comid(i))
set rs=server.createobject("adodb.recordset")
rs.open "select hw_id,hw_name from WrzcNethtml_hw where hw_id="&comp_id&"",conn,1,3%>  
document.write('<tr class="cartshow<%=(i mod 2)%>"><td><a href=<%=m%>Product/Pro<%=rs("hw_id")%>.Html><%=left(rs("hw_name"),15)%></a></td>');
document.write('<td width="5"><a style="font-size: 11pt; color: #FF0000; font-weight: bold" href="<%=m%>com.asp?hw_id=<%=rs("hw_id")%>&action=del">×</a></td></tr>');
<%rs.close
set rs=nothing
next%>
document.write('</table></td></tr><tr class="cartshow<%=(i mod 2)%>"><td height="23" align="center" colspan="2"><a href="<%=m%>com.asp">Submit</a>&nbsp;&nbsp;');
document.write('<a href="<%=m%>com.asp?action=delall">Delete All</a></td></tr></table></DIV>');

function hidecom(){
  obj=document.getElementById("floatcom");
  obj.style.display='none';
}
lastScrollY = 0;
function heartBeat()
{
	diffY	= document.body.scrollTop+document.documentElement.scrollTop;
	obj=document.getElementById("floatcom");
	percent =1*(diffY-lastScrollY);

	if(percent>0) percent = Math.ceil(percent);
	else   percent = Math.floor(percent);
	obj.style.top=(parseInt(obj.style.top,10)+percent)+"px";
	lastScrollY = lastScrollY+percent;
}
window.setInterval("heartBeat()",1);
<%end if%><%end if%>