<!--#include file="conn.asp"-->
<%
Set rs=server.CreateObject("adodb.recordset")
rs.open "select * from com_books where  Id="&request("id")&"",conn,1,3
if not rs.bof or not rs.eof then
page_title=rs("Title"&Language)
page_keywords=rs("keywords"&Language)
page_description=rs("description"&Language)
end if
rs.close
set rs=nothing
if page_title="" then
page_title=city_title
page_keywords=city_keywords
page_description=city_description
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="zh-CN">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><%=page_title%></title>
<meta name="keywords" content="<%=page_keywords%>" />
<meta name="description" content="<%=page_description%>" />
<!--#include file="top.asp"-->
<!--#include file="header.asp"-->
<link rel="stylesheet" href="<%=filepath%>inc/style8.css" type="text/css">
<link href="<%=filepath%>inc/gns_product.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=filepath%>inc/cloud-zoom.1.0.2.js"></script>
<script type="text/javascript" language="javascript">
    /*第一种形式 第二种形式 更换显示样式*/
    function setTab(name, cursel, n) {
        try {
            for (i = 1; i <= n; i++) {
                var menu = document.getElementById(name + i);
                var con = document.getElementById("con_" + name + "_" + i);
                if (cursel == 1) {
                    con.style.display = "block";
                }
                else {
                    con.style.display = i == cursel ? "block" : "none";
                }
                menu.className = i==cursel?"prod_a":"prod_b";
                
            }
        } catch (e)
        { }
    }
</script>

    <div class="product-cen">
    	<div class="weizhi">

            您的位置：<a href="../index.asp">首页</a> »  <%call title()%>  <%call title1()%> » </div>   
<%
typeid=request("typeid")
id=request("id")
set rs=server.CreateObject("adodb.recordset")
if id="" then
rs.open "select top 1 * from com_books where  look"&language&"=1 order by Id desc",conn,1,3
else
rs.open "select * from com_books where  look"&language&"=1 and Id="&id&"",conn,1,3
end if
if rs.bof or rs.eof then
	Response.Write "<script>alert('您要查看的商品不存在或已经下架，请重新浏览！');location.href=""products.asp"";</script>"
	response.end
else
rs("ck")=rs("ck")+1
subId=rs("id")
subCid=rs("cid")
subTitle=rs("title"&language)
subText=rs("text"&language)
subDate=rs("books_date")
subck=rs("ck")
subbookpic=rs("bookpic")
subbookpicm=rs("bookpicm")
subbookpicmm=rs("bookpicmm")
subkeywords=rs("keywords"&language)
subdescription=rs("description"&language)
subcs1=rs("cs1")
subcs2=rs("cs2")
subcs3=rs("cs3")
shichangjia=rs("shichangjia")
shopxphyjia=rs("shopxphyjia")
DefaultPic=rs("DefaultPic")
kucun=rs("kucun")
jifeng=rs("jifeng")

'浏览记录
TempNum=7
'RecentlyGoods最近商品RecentlyGoods临时变量
RecentlyGoods=Request.Cookies("RecentlyGoods")
RecentlyGoodsCid=Request.Cookies("RecentlyGoodsCid")
RecentlyGoodsNum=UBound(Split(RecentlyGoods, ","))+1 '返回|的个数
if instr(RecentlyGoods&",",subId&",")>0 then
'Response.write("已经存在,则不写入COOKIES<hr />")
else
	if RecentlyGoodsNum <TempNum then
		if RecentlyGoods="" then
		response.Cookies("RecentlyGoods")=subId
		response.Cookies("RecentlyGoodsCid")=subCId
		else
		response.Cookies("RecentlyGoods")=RecentlyGoods&","&subId
		response.Cookies("RecentlyGoodsCid")=RecentlyGoodsCid&","&subCId
		end if
	else
	'如果大于了指定的大小后，将第一个给删去，在尾部再加入最新的记录。
	response.Cookies("RecentlyGoods")=Replace(RecentlyGoods,Mid(RecentlyGoods,1,instr(RecentlyGoods,",")),"")
	response.Cookies("RecentlyGoods")=Request.Cookies("RecentlyGoods")&","&subId
	response.Cookies("RecentlyGoodsCid")=Replace(RecentlyGoodsCid,Mid(RecentlyGoodsCid,1,instr(RecentlyGoodsCid,",")),"")
	response.Cookies("RecentlyGoodsCid")=Request.Cookies("RecentlyGoodsCid")&","&subCId
	end if 
end if
'浏览记录END
%> 	
    	<ul>
        	<li class="l">
            	<div class="btn-up"></div>
                <div class="item_Ye">
<dl>                 
<dd><a class="cloud-zoom-gallery current" href="../<%=subbookpic%>" rel="useZoom: &#39;cloudZoom&#39;, smallImage: &#39;../<%=subbookpicmm%>&#39; " target="_blank"> <img src="../<%=subbookpicm%>" alt=""></a></dd>			
<%If DefaultPic<>"" then
DefaultPic=Split(DefaultPic,",")
For i =0 to ubound(DefaultPic)
%>
<dd><a class="cloud-zoom-gallery" href="../upload_files/<%=DefaultPic(i)%>" rel="useZoom: &#39;cloudZoom&#39;, smallImage: &#39;../upload_files/<%call Splitm_scj(DefaultPic(i),".")%>&#39; " target="_blank"> <img src="../upload_files/<%call Split_scj(DefaultPic(i),".")%>" alt=""> </a></dd>
<%
Next
End If
%>	          
</dl>
                </div>
                <div class="btn-down"></div>
            </li>
            <li class="c">
<div id="wrap" style="top:0px;z-index:9999;position:relative;"><a id="cloudZoom" class="cloud-zoom" href="../<%=subbookpic%>" rel="lensOpacity:0,showTitle:false" target="_blank" style="position: relative; display: block; "><img src="../<%=subbookpicmm%>" style="display: block; "></a>
<div class="mousetrap" style="background-image: url(); z-index: 999; position: absolute; width: 380px; height: 380px; left: 0px; top: 0px; cursor: pointer; "></div>
</div>
            </li>
            <li class="r">
            	<h1><%=subTitle%></h1>
                <p>
                	<span>商品编号：<font><%=subcs1%></font>&nbsp; / &nbsp;产品货号：<font><%=subcs2%></font></span>
                    <span>市&nbsp;场&nbsp;价：<i>￥<%=Formatnumber(shichangjia,2,-1,-1,0)%>元</i>&nbsp;(为您节省<%=Formatnumber(shichangjia-shopxphyjia,2,-1,-1,0)%>元)</span>
<span>商品价格：<b>￥</b><strong><%=Formatnumber(shopxphyjia,2,-1,-1,0)%></strong></span>
                    <span>已 &nbsp; &nbsp;售：<% rsxl_sl(subId) %> <%=subcs3%><font class="blue">(<a href="more_bbs.asp?subId=<%=subId%>" target="_blank">已有<% rsxl_bbs(subId) %>条评价</a>)</font></span>
                    
                </p>
                
<dl class="b">
<dd class="mt5 ban" id="spec1"><div class="detail-name" data="颜色">颜 &nbsp; &nbsp;色：</div>
<div class="attr-value" style="width:350px;" data="1">
<%
Set rss=server.CreateObject("adodb.recordset") 
rss.open "select DISTINCT(colorid) from com_PCR where proid="&subId&" order by colorid asc",conn,1,1 
i=0
while not rss.eof 
%>
<span attr="<%=rss("colorid")%>"><a href="javascript:void(0)">
<%
set rs1=server.CreateObject("adodb.recordset")
rs1.open "select * from com_color where id="&rss("colorid")&"",conn,1,1
response.write(rs1("ClassNamecn"))
rs1.close
set rs1=nothing
%>
</a></span>
<%
rss.movenext 
Wend 
rss.close 
set rss=nothing 
%>
</div><p class="clear"></p></dd>	
								
<dd class="mt5 ban" id="spec2">
<div class="detail-name" data="尺码">尺 &nbsp; &nbsp;码：</div>
<div class="attr-value" style="width:350px;" data="2">
<%
Set rss=server.CreateObject("adodb.recordset") 
rss.open "select DISTINCT(sizeid) from com_PCR where proid="&subId&" order by sizeid asc",conn,1,1 
i=0
while not rss.eof 
%>
<span attr="<%=rss("sizeid")%>"><a href="javascript:void(0)">
<%
set rs1=server.CreateObject("adodb.recordset")
rs1.open "select * from com_size where id="&rss("sizeid")&"",conn,1,1
response.write(rs1("ClassNamecn"))
rs1.close
set rs1=nothing
%>
</a></span>
<%
rss.movenext 
Wend 
rss.close 
set rss=nothing 
%>
</div><p class="clear"></p></dd>
					
                    <dd id="dd_nosale" style="display:none;">抱歉，该商品暂不能购买</dd>
                    <dd id="dd_kc_1">库存：<span class="detail-kc"><%=kucun%></span>件 <img src="images/com_g.jpg"><font color="#f00"> 现货&nbsp; &nbsp; 下单后立即发货</font></dd>
                    <dd>购买数量：<input name="qty" id="qty" maxlength="12" value="1" type="text" style="border: 1px #999 solid; width: 40px;">
                        <b class="b-tip">购买的数量超出库存量</b>
                    </dd>
					<dd>可获积分：<%=jifeng%> 分</dd>
                                </dl>
                <dl>
                     <dd>
                     	<input onclick="add_num_goods(<%=subCid%>, <%=subId%>, &#39;nopoint&#39;, 0);" src="images/com_h.jpg" type="image" alt="放入购物车">
                        <input onclick="addFavorites(<%=subId%>, 0);" src="images/com_j.jpg" type="image" alt="放入收藏夹">                     
                     </dd>
                </dl>
                

	<div class="buy_info" id="buy_info" style="display: none; ">
					<ul class="tips" id="tips_info">
						<li group="cart" style="">
							<strong>成功放入购物袋!</strong>
							<a href="javascript:void(0);" onclick="closeShoppingCartTips();" class="cancel">×</a>
						</li>
						<li group="cart">
							<span>购物袋共有<em id="totalCount">1</em>件商品<br>合计:<em id="totalNum">￥288</em></span>
						</li>
						<li class="clearfix">
							<a class="gocart" href="cart.asp">去购物车结算</a><br>
							<a class="goback" href="javascript:void(0)" onclick="closeShoppingCartTips();">返回继续购物</a>
						</li>
					</ul>
				</div>

            </li>
            <li class="clear"></li>
        </ul>  
	
	

				
<script type="text/javascript">
var item_Ye = '.item_Ye';//列表item标签的父容器的父容器[爷爷容器]
var item_Ba = '.item_Ye dl';//item标签的直接父容器		
var item_self = '.item_Ye dd';//列表item标签

$(item_self + ' img').mouseover(function(){
	$(item_self + ' img').css({border:'1px solid #ccc', padding:'3px'});	
	$(this).css({border:'2px solid #f60', padding:'2px'});
});	
$(item_self + ' a').click(function(e) {
    return false;
});				
/**************/
var itemW = 73;//单个显示对象的宽
var item_Ba_O = $(item_Ba);
var len = $(item_self).length;
item_Ba_O.css("Height", (itemW * len) + 'px');
if(len < 6)
{
	$('.btn-up').css('display', 'none');	
	$('.btn-down').css('display', 'none');		
}
$('.btn-up').click(function(){
	if(item_Ba_O.is(":animated")){return false;}
	item_Ba_O.animate({marginTop:-itemW}, 500, function(){
		item_Ba_O.find("dd:last").after(item_Ba_O.find("dd:first"));
		item_Ba_O.css("marginTop",0);													  
	});	
});
$('.btn-down').click(function(){
	if(item_Ba_O.is(":animated")){return false;}
	item_Ba_O.find("dd:first").before(item_Ba_O.find("dd:last"));
	item_Ba_O.css("marginTop",-itemW);
	item_Ba_O.animate({marginTop:0}, 500);	
});

</script>	
	
		
 <script>
function changezx(catid,goodsid,page,obj){
  $.ajax({
     type:"post",
	 url:"include/changezx.html?goodsid="+goodsid+"&catid="+catid+"&page="+page,
	 beforeSend:function(){
	   $("#zx").html("<div class='nomess'>加载中...</div>");
	 },
	 success:function(msg){
	   $("#zx").html(msg);
	 }
  });

}
function changepl(catid,goodsid,page,obj){
  $.ajax({
     type:"post",
	 url:"include/changepl.html?goodsid="+goodsid+"&catid="+catid+"&page="+page,
	 beforeSend:function(){
	   $("#pl").html("<div class='nomess'>加载中...</div>");
	 },
	 success:function(msg){
	   $("#pl").html(msg);
	 }
  });

}		
			
	                 	 var json1= [<%
Set rss=server.CreateObject("adodb.recordset") 
rss.open "select * from com_PCR where proid="&subId&" order by id asc",conn,1,1 
if not rss.bof or not rss.eof then
%>{"s1":"<%=rss("colorid")%>","s2":"<%=rss("sizeid")%>","shopprice":"<%=Formatnumber(shichangjia,2,-1,-1,0)%>","webprice":"<%=Formatnumber(shopxphyjia,2,-1,-1,0)%>","stock":"<%=rss("kucun")%>","xg":"","specid":"<%=rss("id")%>"}<%
kucun_all=kucun_all+rss("kucun")
rss.movenext 
while not rss.eof 
%>,{"s1":"<%=rss("colorid")%>","s2":"<%=rss("sizeid")%>","shopprice":"<%=Formatnumber(shichangjia,2,-1,-1,0)%>","webprice":"<%=Formatnumber(shopxphyjia,2,-1,-1,0)%>","stock":"<%=rss("kucun")%>","xg":"","specid":"<%=rss("id")%>"}<%
kucun_all=kucun_all+rss("kucun")
rss.movenext 
Wend 
end if
rss.close 
set rss=nothing 
%>],


	stocktotal=<%=kucun_all%>,
	sprice="<%=Formatnumber(shichangjia,2,-1,-1,0)%>",
	wprice="<%=Formatnumber(shopxphyjia,2,-1,-1,0)%>";	

						$(document).ready(function(){
					    $("input[name='number[]']").val($("input[name='bum']").val());
						attr();
						$(".attr-value span[class!='nocurrent']").live("click",function(){
			                if($(this).attr("class")!="attr-hover"){
				                $(this).removeClass("current");
				            }else{
			                    $(this).addClass("current").siblings (".attr-value span").removeClass("current");
				            }
						attr();
						});
						hover();
						})
						
						function attr(){
 
							$(".attr-value span").each(function(){
								 var a=$(this).parent().attr("data"),b=$(this).attr("attr"),curl=$(this);
 
								 var cod="";
								 $(".attr-value[data!="+a+"] .current").each(function(index,obj){
								   	 if($(".attr-value[data!="+a+"] .current").size()==index+1){
				                         cod+="content[\"s"+$(obj).parent().attr("data")+"\"]=="+$(obj).attr("attr");
				                     }else{
				                         cod+="content[\"s"+$(obj).parent().attr("data")+"\"]=="+$(obj).attr("attr")+"&&";
				                     }
								 });
 
							   curl.removeClass("nocurrent");
							   if(cod!=""){
                               curl.addClass("nocurrent");
							   $.each(json1,function(index,content){
							       if(eval(cod)){
									    if(content["s"+a]==b){
											curl.removeClass("nocurrent");
											return false;
										}
								   }
							   });
							   }
							});
							
 
						    if($(".attr-value").size()==$(".attr-value .current").size()&&$(".attr-value").size()>=1){
 
								   var cd="";
							       $(".attr-value .current").each(function(index,obj){
									     if($(obj).parent().attr("data")==$(".attr-value .current").size()){
				                         cd+="content[\"s"+$(obj).parent().attr("data")+"\"]=="+$(obj).attr("attr");
				                         }else{
				                         cd+="content[\"s"+$(obj).parent().attr("data")+"\"]=="+$(obj).attr("attr")+"&&";
				                         }
								   });
								   $.each(json1,function(index,content){
								      if(eval(cd)){
										 $(".detail-price").html("￥"+content.webprice);
										 $(".detail-kc").html(content.stock);
										 $('#qty').attr("k", content.stock);
										 $("input[name='specid']").val(content.specid);
						                 $("input[name='specid[]']").val(content.specid);
										 $(".buy-yd").attr("href","booking?goodsid=636&attrid="+content.specid+"&prinfo=%BC%DB%B8%F1&price="+content.webprice+"&yprice="+content.shopprice+"&keepthis=true&TB_iframe=true&width=520&height=450");
										 if(Number(content.xg)!=""){
											 
						   $("#xg").html(" 每人限购"+content.xg+"件");
						   }else{
						   $("#xg").html("");
						   }
									  } 
								   });
						    }else{
							    	$(".detail-price").html("￥"+wprice);$(".detail-kc").html(stocktotal);
									$("input[name='specid']").val("");
			                      	$("input[name='specid[]']").val("");
									$(".buy-yd").attr("href","booking?goodsid=636&attrid=&prinfo=%BC%DB%B8%F1&price="+wprice+"&yprice="+sprice+"&keepthis=true&TB_iframe=true&width=520&height=380");
									$("#xg").html("");
						    }
						}
						
						function hover(){
		                    $(".attr-value span[class!='nocurrent']").live("mousemove",function(){
		                        $(this).addClass("attr-hover");
		                    });	
							$(".attr-value span[class!='nocurrent']").live("mouseout",function(){
		                        $(this).removeClass("attr-hover");
		                    });	
		                }
		
		
    </script> 
	
<script type="text/javascript">

	$("#qty").keyup(function(){
	    var num = $(this).val();var k = $(this).attr('k');
	    if(!/^\d+$/.test(num) || num == "0") {$(this).val(1);return;}
	    if(k==null) {alert('请选择尺码');$(this).val(1);return;}
	    num = parseInt(num);k = parseInt(k);
	    if(k >= 10){
	        if(num > k || num > 10) {alert('抱歉，单件商品最多限购10件');$(this).val(10);return;}
	    }
	    else
	    {
	        if(num > k) {alert('购买的数量超出库存量');$(this).val(k);return;}
	    }
	});
});
</script>        


    </div>  
    <div class="product-ad"></div>
    <div style="width:980px; background-color:#fff; overflow:hidden; margin:auto; border:solid 1px #DEDEDE;border-top:none; margin-bottom:5px;"> 
    
    <div class="center">
        <div class="prod">
            <ul>
                
                <li class="prod_a" id="tabs1" onclick="setTab(&#39;tabs&#39;,1,3)"><a href="#nogo">
                    <h1>商品详情</h1>
                </a></li>
                
                <li class="prod_b" id="tabs2" onclick="setTab(&#39;tabs&#39;,2,3)"><a href="#nogo">
                    <h1>购买咨询</h1>
                </a></li>
                
                <li class="prod_b" id="tabs3" onclick="setTab(&#39;tabs&#39;,3,3)"><a href="#nogo">
                    <h1>用户评价</h1>
                </a></li>
                
            </ul>
        </div>
        <div id="con_tabs_1" class="prod_c"><%=subText%></div>

        <div id="con_tabs_2">
<%
sql00 = "select * from com_message where proid="&subId&" and look"&Language&"=1 and type=0 order by ID desc"
Set rs00=server.CreateObject("adodb.recordset")
rs00.open sql00,conn,1,1
%>
            <div class="commentTabLeft floatLeft"><strong>购买咨询</strong><span><a href="#">（已有<%=Cstr(rs00.RecordCount)%>条咨询）</a></span></div>
            <div class="floatLeft commentTabRight"></div>
            <div style="clear:both;"></div>
<%
if rs00.eof then
response.Write("")
else
%>		
<div class="FormWrap">
            <div class=" Comments" id="goods-comment">       
<%
pi=1
while not rs00.eof and pi<=18
%>	  
		  <div class="division boxBlue clearfix" style="margin-bottom:0px; width:948px">
                <div class=" floatLeft commentMain">
                  <div class="floatLeft commentAsk">提问</div>
                  <span class="author fontcolorOrange"><%=rs00("yname")%>
                  <!-- [注册会员] -->
                  </span> 说： <span class="timpstamp font10px fontcolorGray"><%=rs00("mydate")%></span>
                  <div style="clear:both;"></div>
                  <div class="commentText" style="width:auto"><%=rs00("textcn")%></div>
                  <!--<div style="color:#999;padding-top:10px">这条咨询对您有用吗？<a href="javascript:void(0)" onclick="check_tf(&quot;661747&quot;,&quot;T&quot;)" class="votebtn">有用(<span id="t_count_661747">0</span>)</a></div>-->
                </div>
                <!-- <div class="floatRight"><a class="floatRight lnk " href="http://www.s.cn/comment-661747-reply.html" arg1="ask">回复此评论</a></div>-->
              </div>
              <div class="commentReply">
                <div class="division item scn_line1 " style=" margin:0px;">
                  <div class="floatLeft commentReply-admin">回答</div>
                  <span class="author fontcolorgreen">管理员
                  <!-- -->
                  </span>&nbsp;&nbsp;回复： <span class="timpstamp font10px fontcolorGray"><%=rs00("hf_date")%></span>
                  <div style="clear:both;"></div>
                  <div class="commentText" style="width:auto"><%=rs00("hf_text")%></div>
                </div>
              </div>
<%
pi=pi+1
rs00.movenext
Wend
%>
            </div>
            <div class="textright m10">查看<a href="more_msg.asp?subId=<%=subId%>" target="_blank">所有咨询&gt;&gt;</a></div>
            
          </div>
<%
end if
rs00.close
set rs00=nothing
%>
 

<script language="javascript">
<!--
function CheckForm()
{  
if  (document.proform1.comment.value.length ==  0)     {  
alert("请完善表单必填项!");
document.proform1.comment.focus();
return false;
}else{
return  true;
}
}

function CheckForm2()
{  
if  (document.proform2.comment.value.length ==  0)     {  
alert("请完善表单必填项!");
document.proform2.comment.focus();
return false;
}else{
return  true;
}
}
-->
</script>

            <div class="FormWrap" style="background:#f6f6f6; margin-top:0px;">
              <div class="boxBlue division"> 如果您对本商品有什么问题,请提问咨询! </div>
			  <form class="addcomment"  id="proform1" name="proform1"  method="post" action="toComment.asp">
                <h4>发表咨询</h4>
                <div class="title">标题：
                  <input autocomplete="off" class="x-input inputstyle blur" type="text" required="true" size="50" name="title" value="[咨询]<%=subTitle%>" vtype="text">
				  <input type="hidden" value="0" name="type" />
				  <input type="hidden" value="<%=subId%>" name="proid" />
				  <input type="hidden" value="<%=subcId%>" name="procid" />
				  <input type="hidden" value="<%=session("user_xxx_name")%>" name="yname" />
                </div>
                <div class="division">
                  <table border="0" width="100%" cellpadding="0" cellspacing="0" class="forform">
                    <tbody>
                      <tr>
                        <th><em>*</em>咨询内容：</th>
                        <td><textarea class="x-input inputstyle" vtype="required" rows="5" name="comment" id="comment" style="width:80%;"></textarea></td>
                      </tr>
                      <tr>
                        <th>联系方式：</th>
                        <td><input autocomplete="off" class="x-input inputstyle" type="text" size="20" name="contact" vtype="text">
                          <span class="infotips">(可以是电话、email、qq等).</span></td>
                      </tr>
                      <tr>
                        <td></td>
                        <td><input type="submit" value="提交咨询" onclick="return CheckForm();"></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </form>
            </div>
 
		  
        </div>
        
        <div id="con_tabs_3" class="adv">
<%
sql00 = "select * from com_message where proid="&subId&" and look"&Language&"=1 and type=1 order by ID desc"
Set rs00=server.CreateObject("adodb.recordset")
rs00.open sql00,conn,1,1
%>	

<div class="commentTabLeft floatLeft"><strong>商品评论</strong><span><a href="#">（已有<em><%=Cstr(rs00.RecordCount)%></em>条评论）</a></span></div>
            <div class="commentTabRight floatLeft"></div>
            <div style="clear:both;"></div>
<%
if rs00.eof then
response.Write("")
else
%>	
<div class="detail_comKpi clfix pdtdetail">
            <div class="kpiNum"><span class="kpistar"><i style="width:<%=(100*(pifn(subId)/5))%>%"></i></span> <span class="kpistar_des"><i class="cc00">商品评分<i class="point"><%=pifn(subId)%></i>分</i><br>
              共有<%=Cstr(rs00.RecordCount)%>人参与了评分</span> </div>
            <div class="comUpBtn"> 我购买过此商品<br>
              <a href="#pl" class="combtn">我要评论</a> <a href="more_bbs.asp?subId=<%=subId%>" target="_blank" class="ckcombtn">查看所有评论</a> </div>
			  <div style="clear:both;"></div>
          </div>
            <div class="FormWrap">
              <div class="Comments" id="goods-comment">
<%
pi=1
while not rs00.eof and pi<=18
%>
                <div class="division clearfix" style="width:940px;">
                  <div class="scn_member_b">
                    <div> <img src="images/8b710b71802a0401.png" alt="<%=rs00("yname")%>"  class="member_img"> </div>
                    <div class="textblue m5"><%=rs00("yname")%></div>
                    <div class="m5">注册会员</div>
                  </div>
                  <div class="scn_member_p"> <span class="scn_memner_p_1"></span>
                    <div class="commentwarp">
                      <div class="tr_1"> <i class="c999 fr">评论时间：<%=rs00("mydate")%></i> 商品评分：<span class="comCountBar"><i class="s<%=rs00("xjb")%>"></i></span> <i class="c666"></i></div>
                      <div class="tr_2"><%=rs00("textcn")%></div><div class="tr_3">  <i class="cc00">回复：</i><%=rs00("hf_text")%><i class="c999">&nbsp;&nbsp;<%=rs00("hf_date")%></i> <div class="box10"></div>  <i class="jt"></i> </div>
                      <!--<div class="tr_4">这条评论对您有用吗？<a href="javascript:void(0)" onclick="check_tf(&quot;668874&quot;,&quot;T&quot;)" class="votebtn">有用(<span id="t_count_668874">1</span>)</a></div>-->
                    </div>
                  </div>
                </div>
<%
pi=pi+1
rs00.movenext
Wend
%>
                <div class="division clearfix" style="width:940px;"><a href="more_bbs.asp?subId=<%=subId%>" target="_blank" class="c36d fr">查看所有评论&gt;&gt;</a></div>
              </div>
            </div>

<%
end if
rs00.close
set rs00=nothing
%>
		  <div class="FormWrap" style="background:#f6f6f6; margin-top:0px;">
              <div class="boxBrown division"> 如果您对本商品有什么评价或经验,欢迎分享! </div>
 <%if session("user_xxx_name")<>"" then%>
 			<a id="pl" name="pl" ></a>
              <form class="addcomment" id="proform2" name="proform2" method="post" action="toComment.asp">
                <h4>发表评论</h4>
                <div class="title">标题：
                  <input autocomplete="off" class="x-input inputstyle blur" type="text" required="true" size="50" name="title" value="[评论]<%=subTitle%>" vtype="text">
				  <input type="hidden" value="1" name="type" />
				  <input type="hidden" value="<%=subId%>" name="proid" />
				  <input type="hidden" value="<%=subcId%>" name="procid" />
				  <input type="hidden" value="<%=session("user_xxx_name")%>" name="yname" />
                </div>
                <div class="division">
				
                  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="forform">
                    <tbody>
					 <tr>
                        <th><em>*</em>评分等级：</th>
                        <td><script>
var sArray = new Object;
    sArray[0] = new Image;
    sArray[0].src = "images/icon_star_1.gif";
    for (var i=1; i<6; i++) {
        sArray[i] = new Image();
        sArray[i].src = "images/icon_star_2.gif";
    }
    
    var pro ; 
    var rate ; 
    function initStar() {
        
        try {
            setProfix("xjb_");
            setStars(document.getElementById("xjb").value,'xjb');
                
        } catch(e){
        
        }    
    }
    
    function showStars(starNum,rate) {
    try {
        
        greyStars();
        colorStars(starNum);
        } catch(e){}
        //setStars(starNum,rate);
        
    }
    function setProfix(profix) {
         pro = profix ;
    }
    function colorStars(starNum) {
        try {
            for (var i=1; i <= starNum; i++) {
                var tmpStar = document.getElementById(pro + i);
                tmpStar.src = sArray[starNum].src;
            }
        } catch(e){}
    }
    function greyStars() {
        try {
            for (var i=1; i<6; i++) {
                var tmpStar = document.getElementById(pro + i);
                tmpStar.src = sArray[0].src;
            }
        } catch(e){}
    }
    
    function greyAll(curpro,currate) {
        try {
            document.getElementById(currate).value ="";    
            for (var i=1; i<6; i++) {
                var tmpStar = document.getElementById(curpro + i);
                tmpStar.src = sArray[0].src;
            }
        } catch(e){}    
    }

    function setStars(starNum,rate) {
        rate = rate ;
        try {
            
            var fuwu = document.getElementById(rate);
            fuwu.value = starNum;
            showStars(starNum);
            } catch(e){}    
    }

    function clearStars(currate) {
        rate = currate ;
        try {
            var fuwu = document.getElementById(rate);
            if (fuwu.value != '') {
                setStars(fuwu.value,rate);
            } else {
                greyStars();
            }
        } catch(e){}
    }
    
    function resetStars() {
        try {
            
            var fuwu = document.getElementById(rate);
            if (fuwu.value != '') {
                setStars(fuwu.value,rate);
            } else {
                greyStars();
            }
        } catch(e){}
    }
    
    
    
</script>
<ul class="Star" style="list-style:none;">
  <li>
      <span class="number"></span>
         <span class="Select"> 
              <a onMouseOver="javascript:setProfix('xjb_');showStars(1,'xjb');" onMouseOut="javascript:setProfix('xjb_');clearStars('xjb');" href="javascript:setProfix('xjb_');setStars(1,'xjb');"><img id="xjb_1" title="差(1)" src="images/icon_star_1.gif"></a>
              <a onMouseOver="javascript:setProfix('xjb_');showStars(2,'xjb');" onMouseOut="javascript:setProfix('xjb_');clearStars('xjb');" href="javascript:setProfix('xjb_');setStars(2,'xjb');"><img id="xjb_2" title="一般(2)" src="images/icon_star_1.gif"></a>
              <a onMouseOver="javascript:setProfix('xjb_');showStars(3,'xjb');" onMouseOut="javascript:setProfix('xjb_');clearStars('xjb');" href="javascript:setProfix('xjb_');setStars(3,'xjb');"><img id="xjb_3" title="好(3)" src="images/icon_star_1.gif"></a>
              <a onMouseOver="javascript:setProfix('xjb_');showStars(4,'xjb');" onMouseOut="javascript:setProfix('xjb_');clearStars('xjb');" href="javascript:setProfix('xjb_');setStars(4,'xjb');"><img id="xjb_4" title="很好(4)" src="images/icon_star_1.gif"></a>
              <a onMouseOver="javascript:setProfix('xjb_');showStars(5,'xjb');" onMouseOut="javascript:setProfix('xjb_');clearStars('xjb');" href="javascript:setProfix('xjb_');setStars(5,'xjb');"><img id="xjb_5" title="非常好(5)" src="images/icon_star_1.gif"></a>
         </span><span><input id="xjb" name="xjb" value="0" type="text" style="margin-left:12px; border:1px #FFFFFF solid; font-size:14px; font-weight:bold; color:#fff;" onFocus="this.blur()"><script>initStar();</script></span> 
   </li>
  
</ul></td>
                      </tr>
                      <tr>
                        <th><em>*</em>评论内容：</th>
                        <td><textarea class="x-input inputstyle" vtype="required" rows="5" name="comment" style="width:80%;"></textarea></td>
                      </tr>
                      <tr>
                        <th>联系方式：</th>
                        <td><input autocomplete="off" class="x-input inputstyle" type="text" size="20" name="contact" vtype="text">
                          <span class="infotips">(可以是电话、email、qq等).</span></td>
                      </tr>
                      <tr>
                        <td></td>
                        <td><input type="submit" value="提交评论" onclick="return CheckForm2();"></td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </form>
<%else%>
<div class="boxBrown division"><a href="Login.asp?height=150;width=350" title="请登录后再评论！" class="thickbox"><img src="images/btn-discuss.gif"></a> </div>
<%end if%>
			  
            </div>

		  
        </div>
        

        <script type="text/javascript" language="JavaScript">
            var tID = 0;
            function ShowTags(ID) {
                if (ID != tID) {
                    TagTitle[tID].className = 'prod_b';
                    TagTitle[ID].className = 'prod_a';
                    Tags[tID].style.display = 'none';
                    Tags[ID].style.display = '';
                    tID = ID;
                }
            } 
        </script>
    </div>
    </div>
   <div class="clear"></div>
<%
rs.update
end if
rs.close
set rs=nothing
%>
<!--#include file="foot.asp"--> 


<script>
/*设置浏览过的商品*/
withBroswerStore(function(broswerStore){
  broswerStore.get('history',function(history){
  history=JSON.decode(history);
  if(!history||$type(history)!=='array')history=[];
   if(history.length==40){history.pop()};
   var newhis={'goodsId':<%=request("id")%>,
			   'goodsCid':<%=request("cid")%>,
               'goodsName':<%=request("id")%>,
               'goodsImg':<%=request("id")%>,
               'viewTime':$time()
              };
   if(!history.some(function(i,index){


   if(i['goodsId']==newhis['goodsId']){
         history.erase(i);
         history.include(newhis)
         return true;
   }
      return false;

   })){
       history.include(newhis);
   }
   broswerStore.set('history',history);

  });
});


</script>


<%
sub title()
typeid=request("typeid")
if typeid="" then
response.write "商品信息"
elseif typeid=0 then
response.write "商品信息"
end if
if typeid<>"" and typeid<>0 then
set rstype=server.CreateObject("adodb.recordset")	
rstype.open "select * from com_class where id="&typeid&" order by pid asc,id desc",conn,1,1
response.write " "&rstype("ClassName"&language)&""
rstype.close
set rstype=nothing
end if
end sub


sub title1()
styleid=request("cid")
if styleid="" then
response.write ""
elseif styleid=0 then
response.write ""
end if
if styleid<>"" and styleid<>0 then
set rstype=server.CreateObject("adodb.recordset")	
rstype.open "select * from com_class where id="&styleid&" order by pid asc,id desc",conn,1,1
response.write " >> "&rstype("ClassName"&language)&" "
rstype.close
set rstype=nothing
end if
end sub

function pifn(proid)
if proid<>""then
set rstype=server.CreateObject("adodb.recordset")	
rstype.open "select * from com_message where proid="&proid&" and look"&Language&"=1 and type=1 order by ID desc",conn,1,1
if rstype.eof then
response.Write("0")
else
pi=0
xjb=0
while not rstype.eof
xjb=rstype("xjb")+xjb
pi=pi+1
rstype.movenext
Wend
end if
rstype.close
set rstype=nothing
pifn=Formatnumber(xjb/pi,1,-1,-1,0)
end if
end function
%>