<%--
  Copyright 2003 Sun Microsystems, Inc. All rights reserved 
  Use is subject to license terms.
 --%>
<%-- @(#)rating.jsp --%>
<% // TAG REQUIRED 
String select0 = "", select1 = "", select2 = "", select3 = "", select4 = "";
String rating= (String)pageContext.getAttribute("rating");
if (rating.equals("-1")) {
  select0 = "SELECTED";
} else if (rating.equals("0")) {
  select1 = "SELECTED";
} else if (rating.equals("1")) {
  select2 = "SELECTED";
} else if (rating.equals("2")) {
  select3 = "SELECTED";
} else if (rating.equals("3")) {
  select4 = "SELECTED";
}
String rid= (String)pageContext.getAttribute("rid"); 
%>
<form NAME="ratingform" METHOD="GET">
<INPUT type=HIDDEN name="<%=channelName%>_dmode" value="rtg">
<INPUT type=HIDDEN name="database" value="<%=dbname%>">
<INPUT type=HIDDEN name="rid" value="<%=rid%>">
<INPUT type=HIDDEN name="did" value="<%=did%>">

<span class="discRating"><LABEL FOR="rating">Rate this comment:</LABEL></span>&nbsp;
<select name="rtg" onChange="javascript:submit();">
 <option value="-1" <%=select0%>>Irrelevant</option>
 <option value="0" <%=select1%>>Routine</option>
 <option value="1" <%=select2%>>Interesting</option>
 <option value="2" <%=select3%>>Important</option>
 <option value="3" <%=select4%>>Must Read</option>
</select> 
</form>
