anchor.diff:  <%@page import="org.wso2.carbon.ui.CarbonUIUtil" %>
   <%@page import="org.wso2.carbon.user.mgt.ui.Util" %>
   <%@ page import="org.wso2.carbon.utils.ServerConstants" %>
  -<%@page import="java.net.URLEncoder"%><script type="text/javascript" src="extensions/js/vui.js"></script>
  +<%@page import="java.net.URLEncoder" %>
  +<script type="text/javascript" src="extensions/js/vui.js"></script>
   <script type="text/javascript" src="../extensions/core/js/vui.js"></script>
   <script type="text/javascript" src="../admin/js/main.js"></script>
   
  
positive.code:                             if (validateEmpty("<%=userFields[i].getClaimUri()%>").length > 0) {
                                  CARBON.showWarningDialog("<%=Encode.forJavaScript(Encode.forHtml(userFields[i].
                                                             getDisplayName()))%>" + " <fmt:message key='is.required'/>");
                                  return false;
                              }
                          <%}
                            if(userFields[i].getRegEx() != null){ %>
                              var reg = new RegExp("<%=Encode.forJavaScript(userFields[i].getRegEx())%>");
                              var valid = reg.test(value);
                              if (value != '' && !valid) {
                                  CARBON.showWarningDialog("<%=Encode.forJavaScript(Encode.forHtml(userFields[i].
                                                            getDisplayName()))%>" + " <fmt:message key='is.not.valid'/>");
                                  return false;
                              }
  
negative.code: 
  <!-- Set checkbox checked/unchecked value to hidden textbox value -->
  <script type="text/javascript">
      function setBooleanValueToTextBox(element) {
          document.getElementById(element.value).value = element.checked;
      }
  </script>
  