function show_commentForm(id){
	
document.write("                  <table width=\"100%\"  border=\"0\" cellpadding=\"2\" cellspacing=\"1\">");
document.write("                    <form action=\"/comment_down.asp\" method=\"post\" name=\"comment\" onsubmit=\"    if(content.value=='') { content.focus(); alert('Please fill in your opinion!'); return false; }    if(content.value.length>5000) { content.focus(); alert('Max 5000 characters!'); return false; }    if(username.value=='') { username.focus(); alert('Please fill in your name!'); return false; } if(verifycode.value=='') {verifycode.focus(); alert('Please fill the confirm code!'); return false; }  return true;  \" >");
document.write("                   <tr bgcolor=\"#FAFAFA\">");
document.write("                     <td colspan=2>");
document.write("&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"radio\" name=\"opinion\" value=\"1\" id=\"couponcode\" onclick=\"initContext(1)\" /><label for=\"couponcode\" onclick=\"initContext(1)\">Coupon code</label>&nbsp;&nbsp;<input type=\"radio\" name=\"opinion\" value=\"2\" id=\"opinion\" checked onclick=\"initContext(2)\" /><label for=\"opinion\" onclick=\"initContext(2)\">Opinion</label> ")
document.write("                      </td></tr>");
document.write("                      <input name=\"ID\" type=\"hidden\" value=\"" + id + "\" />");
document.write("                      <tr bgcolor=\"#FAFAFA\">");
document.write("                        <td align=\"right\">Your name:</td>");
document.write("                        <td><input name=\"username\" type=\"text\" id=\"username\" ");
document.write("size=\"45\" maxlength=\"20\">");
document.write("                          </td>");
document.write("                      </tr>");
document.write("                      <tr bgcolor=\"#FAFAFA\">");
document.write("                        <td align=\"right\">Your rating:</td>");
document.write("                        <td><input type=\"radio\" name=\"Grade\" value=\"5\" checked><img src=\"http://cdn.softcns.com/images/5star.gif\" alt=\"5 stars\" />");
document.write("                          <input type=\"radio\" name=\"Grade\" value=\"4\"><img src=\"http://cdn.softcns.com/images/4star.gif\" alt=\"4 stars\" />");
document.write("                          <input type=\"radio\" name=\"Grade\" value=\"3\"><img src=\"http://cdn.softcns.com/images/3star.gif\" alt=\"3 stars\" />");
document.write("                          <input type=\"radio\" name=\"Grade\" value=\"2\"><img src=\"http://cdn.softcns.com/images/2star.gif\" alt=\"2 stars\" />");
document.write("                          <input type=\"radio\" name=\"Grade\" value=\"1\"><img src=\"http://cdn.softcns.com/images/1star.gif\" alt=\"1 star\" />");
document.write("                      </tr>");
document.write("                      <tr bgcolor=\"#FAFAFA\">");
document.write("                        <td align=\"right\">Your opinion:</td>");
document.write("                        <td><textarea name=\"content\" cols=\"60\" rows=\"7\" ");
document.write("id=\"content\"></textarea>");
document.write("                          </td>");
document.write("                      </tr>");
document.write("                      <tr>");
document.write("                        <td align=\"right\" bgcolor=\"#FAFAFA\">Confirm code:</td>");
document.write("                        <td bgcolor=\"#FAFAFA\"><input name=\"verifycode\" type=\"text\" id=\"verifycode\" size=\"5\" /> Enter the code: <img src=\"/ad4min_asp/getcode.asp\" /> ");
document.write("                          </td>");
document.write("                      </tr>");
document.write("                      <tr bgcolor=\"#FAFAFA\">");
document.write("                        <td align=\"right\">&nbsp;</td>");
document.write("                        <td><input type=\"submit\" name=\"Submit\" value=\"Submit\"></td>");
document.write("                      </tr>");
document.write("                    </form>");
document.write("                  </table>");

}

 function initContext(id){  
	 if (id==1)
	 {
	 document.getElementById("content").value = 'Coupon code:\nDiscount:\nExpiration:'
	 }
	 if (id==2)
	 {
	 document.getElementById("content").value = ''
	 }													 
  }  
