<asp:TextBox ID="txtRatingA" runat="server" onblur="ShowRatingDetails(this,1)">0</asp:TextBox> <asp:Label ID="lbltxtRatingDetailsA" runat="server"></asp:Label> <asp:TextBox ID="txtRatingB" runat="server" onblur="ShowRatingDetails(this,2)">0</asp:TextBox> <asp:Label ID="lbltxtRatingDetailsB" runat="server"></asp:Label> <script type="text/javascript"> function ShowRatingDetails(SourceID, Type) { var inputval = SourceID.value; var resultval = ""; if (inputval == 1) resultval = "Unacceptable – Inaccurate"; else if (inputval == 2) resultval = "Unacceptable (Borderline)"; ...