<% var contColl = collection, grpColl = groupCollection, selectContactCont = contColl.selectedCount; addNewEnable = (grpColl.length >= 30 || parseInt(selectContactCont)>GROUP_CONTACT_COUNT) ? "disabled" : ""; curGroupStr = (model) ? model.mobileGroupId() : ""; %> <% if (errorMessage){ %> <%=errorMessageTemplate%> <%}%>