<script>
//<!--
function changeModeTo(mode) {
   if( mode=='TYPE_ID' ) {
       document.inputs.itemIDs[0].value = '';
       document.inputs.itemIDs[1].value = '';
       document.inputs.itemIDs[2].value = '';
       document.inputs.itemTypes[0].value = '';
       document.inputs.itemTypes[1].value = '';
       document.inputs.itemTypes[2].value = '';
       document.inputs.mode[0].checked = true;
   } else {
       document.inputs.itemID.value = '';
       document.inputs.itemType.value = '';
       document.inputs.mode[1].checked = true;
   }
}
//-->
</script>
<p>
<form name=inputs action=<%=pageName%> method="post">
<table>
<% if( pageName.indexOf("rating") >= 0 ) { %>
<tr><td colspan=2><B>&nbsp;Rating Value:</B> <input type="text" name="value""/></td></tr>
<% } %>
<tr><td colspan=2><input type=radio name="mode" value="TYPE_ID" onClick="changeModeTo('TYPE_ID');return true;" checked/><B>&nbsp;Type and ID</B></td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;Item Type: <input type="text" name="itemType" onChange="changeModeTo('TYPE_ID');"/></td><td>&nbsp;Item ID: <input type="text" name="itemID" onChange="changeModeTo('TYPE_ID');"/></td></tr>
<tr><td colspan=2><input type=radio name="mode" value="LIST_INDEX" onClick="changeModeTo('LIST_INDEX');return true;"/><B>&nbsp;List and index</B></td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;Item Type: <input type="text" name="itemTypes" onChange="changeModeTo('LIST_INDEX');"/></td><td>&nbsp;Item ID: <input type="text" name="itemIDs" onChange="changeModeTo('LIST_INDEX');"/></td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;Item Type: <input type="text" name="itemTypes" onChange="changeModeTo('LIST_INDEX');"/></td><td>&nbsp;Item ID: <input type="text" name="itemIDs" onChange="changeModeTo('LIST_INDEX');"/></td></tr>
<tr><td>&nbsp;&nbsp;&nbsp;Item Type: <input type="text" name="itemTypes" onChange="changeModeTo('LIST_INDEX');"/></td><td>&nbsp;Item ID: <input type="text" name="itemIDs" onChange="changeModeTo('LIST_INDEX');"/></td></tr>
<tr><td colspan=2>&nbsp;&nbsp;&nbsp;Index: <select name="index" onChange="changeModeTo('LIST_INDEX');">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
</select></td></tr>
<tr><td colspan=2><input type="submit" value="Record"/></td></tr>
</table>
