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:                     </thead>
                      <tbody>
                      <tr>
  			<td class="formRow">
  				<table class="normal" cellspacing="0">
  				    <tr>
  		                        <td class="leftCol-small"><fmt:message key='profile.name'/>&nbsp;<span class="required">*</span></td>
  		                        <td><%=Encode.forHtmlContent(userProfile.getProfileName())%>
  		                        </td>
  		                    </tr>
  		                    <%
  		                        if (!readOnlyUserStore && profileConfigs != null && profileConfigs.length > 0
  		                                    && profileConfigs[0] != null) {
  		                    %>
  		                    <tr>
  		                        <td class="leftCol-small"><fmt:message key='profile.cofiguration'/></td>
  		                        <td>
  		                            <select name="profileConfiguration">
  		                                <%
  		                                    for (int i = 0; i < profileConfigs.length; i++) {
  		                                %>
  		                                <%
  		                                    if (userProfile.getProfileConifuration().equals(profileConfigs[i])) {
  		                                %>
  		                                <option value="<%=Encode.forHtmlAttribute(profileConfigs[i])%>" selected="selected">
                                              <%=Encode.forHtmlContent(profileConfigs[i])%>
  		                                </option>
  		                                <%
  		                                    } else {
  		                                %>
  		                                <option value="<%=Encode.forHtmlAttribute(profileConfigs[i])%>">
                                              <%=Encode.forHtmlContent(profileConfigs[i])%>
  		                                </option>
  		                                <%
  		                                    }
  		                                            }
  		                                %>
  		                            </select>
  		                        </td>
  		                    </tr>
  		                    <%
  		                        }
  		                    %>
  		                    <%
  		                        if (userFields != null) {
  		                                for (int i = 0; i < userFields.length; i++) {
  		                    %>
  		                    <%
  		                        if (userFields[i].getDisplayName() != null) {
  		                    %>
  		                    <tr>
  		                        <td class="leftCol-small"><%=Encode.forHtmlContent(userFields[i].getDisplayName())%> <%
                                      if (userFields[i].getRequired()) {
                                      %>
  		                            &nbsp;<span class="required">*</span>
  		                            <%
  		                                }
  		                            %>
  		                        </td>
  		                        <%
  		                            String value = userFields[i].getFieldValue();
                                      if (value != null) {
                                      if (!readOnlyUserStore && !userFields[i].getReadOnly()) {
                                          if(value.equalsIgnoreCase("true") || value.equalsIgnoreCase("false")){
                                              // assume as boolean value. But actually this must be sent from backend.
                                              // will fix for next release.
  		                         %>
                                  <td>
                                      <input class="text-box-big" type="checkbox" onclick="setBooleanValueToTextBox(this)"
                                              <%if (Boolean.parseBoolean(value)) {%> checked="checked" <%}%>
                                             value="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"/>
                                      <input id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
                                             name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
                                             type="hidden" value="<%=Encode.forHtmlAttribute(value)%>"/>
                                  </td>
  		                         <%
                                          } else {
                                   %>
                                              <td><input id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
                                                         name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
                                               class="text-box-big" type="text"
                                                         value="<%=Encode.forHtmlAttribute(userFields[i].getFieldValue())%>">
                                              </td>
  		                         <%
                                          }
                                      } else {
  		                         %>
  		                              <td><%=Encode.forHtmlContent(userFields[i].getFieldValue())%></td>
  		                          <%
  		                              }
                                    } else {
  		                          %>
  		                            <%
  		                                if (!readOnlyUserStore && !userFields[i].getReadOnly()) {
  		                            %>
  
  		                                 <td><input id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
                                                      name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  		                                   class="text-box-big" type="text"></td>
                                      <%
                                              } else {
                                      %>
                                           <td><input id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
                                                      name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  		                                   class="text-box-big" type="text" readonly="true"></td>
                                      <%
                                              }
                                          }
  		                            %>
  		                    </tr>
  		                    <%
  		                        }
  		                                }
  		                            }
  		                    %>
  				</table>
  			</td>
  		    </tr>
                      <tr>
                          <td class="buttonRow">
                              <%
                                  if (!readOnlyUserStore) {
                              %>
                              <input name="updateprofile"
                                     type="button" class="button" value="<fmt:message key='update'/>" onclick="validate();"/>
                              <%
                                  }
                              %>
                              <input type="button" class="button"
                                     onclick="javascript:location.href='index.jsp?username=<%=Encode.forUriComponent(username)%>' +
                                             '&fromUserMgt=<%=Encode.forUriComponent(fromUserMgt)%>&editCancel=true'"
                                            value="<fmt:message key='cancel'/>"/></td>
                      </tr>
                      </tbody>
                  </table>
  
negative.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;
                              }
  