document.writeln("<table width=\"95%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("<tr><td height=\"3\" background=\"http:\/\/statics1.kimiss.com\/images\/dotline.gif\"><\/td><\/tr>");
document.writeln("<tr><td height=\"10\"><input name=\"CommentID\" value=\"0\" type=\"hidden\"><\/td><\/tr>");
document.writeln("<tr><td><img src=\'http:\/\/statics1.kimiss.com\/images\/xxxx.gif\'>点评标题:<input name=\"title\" maxlength=\"50\" size=\"69\"><span class=td1>必填<\/span><\/td><\/tr>");
document.writeln("<tr><td height=\"10\"><\/td><\/tr>");
document.writeln("<tr><td height=\"3\" background=\"http:\/\/statics1.kimiss.com\/images\/dotline.gif\"><\/td><\/tr>");
document.writeln("<tr><td height=\"10\"><\/td><\/tr>");
document.writeln("<tr><td><img src=\'http:\/\/statics1.kimiss.com\/images\/xxxx.gif\'>购买方式:<select name=\"wherebuy\">");
document.writeln("<option value=\"\">请选择<\/option>");
document.writeln("<option value=\"商场专柜\">商场专柜<\/option>");
document.writeln("<option value=\"网上购买\">网上购买<\/option>");
document.writeln("<option value=\"官网购买\">官网购买<\/option>");
document.writeln("<option value=\"超市开架\">超市开架<\/option>");
document.writeln("<option value=\"美容专卖店\">美容专卖店<\/option>");
document.writeln("<option value=\"国外代购\">国外代购<\/option>");
document.writeln("<option value=\"国外自购\">国外自购<\/option>");
document.writeln("<option value=\"亲友赠送\">亲友赠送<\/option>");
document.writeln("<option value=\"所赠小样\">所赠小样<\/option>");
document.writeln("<option value=\"二手转让\">二手转让<\/option>");
document.writeln("<option value=\"其他渠道\">其他渠道<\/option>");
document.writeln("<\/select><span class=td1>必选<\/span>&nbsp;&nbsp;");
document.writeln("<\/td>");
document.writeln("<\/tr>");
document.writeln("<tr><td height=\"10\"><\/td><\/tr>");
document.writeln("<tr><td style=\"padding-left:10px;\">规格价格:<input type=\"text\" name=\"buyprice\"><span class=\"hui\">比如:40ml，300元<\/span><\/td><\/tr>");
document.writeln("<tr><td height=\"10\"><\/td><\/tr>");
document.writeln("<tr><td height=\"3\" background=\"http:\/\/statics1.kimiss.com\/images\/dotline.gif\"><\/td><\/tr>");
document.writeln("<tr><td height=\"10\"><\/td><\/tr>");
document.writeln("<tr><td><img src=\'http:\/\/statics1.kimiss.com\/images\/xxxx.gif\'>点评正文:<\/td><\/tr>");
document.writeln("<tr><td>");
document.writeln("<table width=96% align=right>");
document.writeln("<tr>");
document.writeln("<td align=\"right\" width=\"130\"><span class=\"hui\">效果感受点评<\/span>(<span class=td1>必填<\/span>):<br><span class=hui>注:“效果感受”内容不能少于30个汉字</span><\/td>");
document.writeln("<td><textarea name=info cols=60 rows=6><\/textarea><\/td>");
document.writeln("<\/tr>");
document.writeln("<tr>");
document.writeln("<td align=\"right\"><span class=\"hui\">使用技巧心得:<\/span><\/td>");
document.writeln("<td><textarea name=info2 cols=60 rows=3><\/textarea><\/td>");
document.writeln("<\/tr>");
document.writeln("<tr>");
document.writeln("<td align=\"right\"><span class=\"hui\">最佳配合产品:<\/span><\/td>");
document.writeln("<td><textarea name=info3 cols=60 rows=3><\/textarea><\/td>");
document.writeln("<\/tr>");
document.writeln("<tr>");
document.writeln("<td align=\"right\"><span class=\"hui\">商家服务点评:<\/span><\/td>");
document.writeln("<td><textarea name=info4 cols=60 rows=3><\/textarea><\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table>");
document.writeln("<\/td><\/tr>");
document.writeln("<tr><td height=10><\/td><\/tr>");
document.writeln("<tr><td height=\"3\" background=\"http:\/\/statics1.kimiss.com\/images\/dotline.gif\"><\/td><\/tr>");
document.writeln("<tr><td height=10><\/td><\/tr>");
document.writeln("<\/table>");
document.writeln("<table width=\"95%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("<tr>");
document.writeln("<td><img src=\'http:\/\/statics1.kimiss.com\/images\/xxxx.gif\'>您如何评价该产品(<span class=td1>必填<\/span>):<\/td>");
document.writeln("<\/tr>");
document.writeln("<tr><td height=3><\/td><\/tr>");
document.writeln("<tr><td align=\"center\"><table width=\"97%\" cellpadding=\"0\" cellspacing=\"0\" align=\"right\">");
document.writeln("<tr>       ");
document.writeln("<td width=\"33%\">");
document.writeln("<input type=\"radio\" name=\"score\" value=\"5\" ><img src=\"http:\/\/statics1.kimiss.com\/images\/star500.gif\" align=\"absmiddle\"> 非常好 <\/td> <td><input type=\"radio\" name=\"score\" value=\"4\"><img src=\"http:\/\/statics1.kimiss.com\/images\/star400.gif\"  align=\"absmiddle\"> 好 <\/td>");
document.writeln("<td width=\"33%\" ><input type=\"radio\" name=\"score\" value=\"3\"><img src=\"http:\/\/statics1.kimiss.com\/images\/star300.gif\"  align=\"absmiddle\"> 还行 <\/td>");
document.writeln("<\/tr>");
document.writeln("<tr>");
document.writeln("<td><input type=\"radio\" name=\"score\" value=\"2\"><img src=\"http:\/\/statics1.kimiss.com\/images\/star200.gif\"  align=\"absmiddle\"> 较差<\/td>");
document.writeln("<td><input type=\"radio\" name=\"score\" value=\"1\"><img src=\"http:\/\/statics1.kimiss.com\/images\/star100.gif\"  align=\"absmiddle\">很差 <\/td>");
document.writeln("<td>&nbsp;<\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table><\/td><\/tr>");
document.writeln("<tr><td height=\"3\" background=\"http:\/\/statics1.kimiss.com\/images\/dotline.gif\"><\/td><\/tr>");
document.writeln("<tr><td height=\"10\" width=\"3\"><\/td><\/tr>");
document.writeln("<tr><td height=\"25\" align=\"center\"><input type=\"submit\" value=\"确认提交\"><\/td><\/tr>");
document.writeln("<\/table>");
function checkcontent(obj)
{
  if(loginok==1)
  {
    if(obj.title.value.length<1)
    {
      alert('请输入标题'); 
  		obj.title.focus();
      return false;
    }
  	else if(obj.info.value.length<1)
  	{
  		alert('请输入内容'); 
  		obj.info.focus();
      return false;
    }
	else if(obj.info.value.length<30)
  	{
  		alert('内容不能小于30个字'); 
  		obj.info.focus();
      return false;
    }
    else if(obj.wherebuy.options[obj.wherebuy.selectedIndex].value=='')
  	{
  		alert('请选择购买地点');   		
      return false;
    }
  	var aa = document.getElementsByName("score");
    var key=0;
    for (var i=0; i<aa.length; i++)
    {
      if(aa[i].checked)
      {
        key=1;
      }
    }
    if(key!=1)
    {
      alert('请选择分数!');
      return false;
    }
  }
  else
  {
    alert('您还没有登录，不能发表点评！');
    return false;
  }
}
function setmodicomment(id,score)
{
  if(id >0)
  {
    document.commentform.CommentID.value=id;
    document.commentform.title.value=gid("title_"+id).innerText;
    document.commentform.info.value=gid("info_"+id+"_type1").innerText;
    document.commentform.info2.value=gid("info_"+id+"_type2").innerText;
    document.commentform.info3.value=gid("info_"+id+"_type3").innerText;
    document.commentform.info4.value=gid("info_"+id+"_type4").innerText;
    var wb=gid("info_"+id+"_type5").innerText;
    with(document.commentform.wherebuy)  
    {      
      for(i=0;i<length;i++)   
      { 
        if(options[i].value==wb)
        {
          document.commentform.wherebuy.selectedIndex=i;
          break;
        }
      }
    }
    document.commentform.buyprice.value=gid("info_"+id+"_type6").innerText;
    document.commentform.score[(5-score)].checked='checked';
  }
}

function isIE(){ //ie?   
   if (window.navigator.userAgent.toLowerCase().indexOf("msie")>=1)     
    return true;     
    
   else     
    return false;     
}     
   
if(!isIE()){ //firefox innerText define    
   HTMLElement.prototype.__defineGetter__("innerText",     
    function(){    
     var anyString = "";    
     var childS = this.childNodes;    
     for(var i=0; i<childS.length; i++) {    
      if(childS[i].nodeType==1)    
       anyString += childS[i].tagName=="BR" ? '\n' : childS[i].innerText;    
      else if(childS[i].nodeType==3)    
       anyString += childS[i].nodeValue;    
     }    
     return anyString;    
    }     
   );     
   HTMLElement.prototype.__defineSetter__("innerText",     
    function(sText){     
     this.textContent=sText;     
    }     
   );     
}    
