anchor.diff:  
   <div>
     <h2>Portal Pages</h2>
  +  <!-- h4>Namespace: <portlet:namespace/> </h4 -->
     <p>
         <script type="text/javascript">
  -          var placedPortlets = new Array();
  +          var <portlet:namespace/>placedPortlets = new Array();
             <c:forEach items="${availablePages}" var="page">
  -              placedPortlets['<c:out value="${page.id}"/>'] = new Array();
  -              var i = 0;
  +              <portlet:namespace/>placedPortlets['<c:out value="${page.id}"/>'] = new Array();
  +              var <portlet:namespace/>i = 0;
                 <c:forEach items="${page.portlets}" var="portlet">
  -              placedPortlets['<c:out value="${page.id}"/>'][i] = new Array();
  -              placedPortlets['<c:out value="${page.id}"/>'][i][0] = '<c:out value="${portlet.id}"/>';
  -              placedPortlets['<c:out value="${page.id}"/>'][i++][1] = '<c:out value="${portlet.portletName}"/>';
  +              	<portlet:namespace/>placedPortlets['<c:out value="${page.id}"/>'][<portlet:namespace/>i] = new Array();
  +              	<portlet:namespace/>placedPortlets['<c:out value="${page.id}"/>'][<portlet:namespace/>i][0] = '<c:out value="${portlet.id}"/>';
  +              	<portlet:namespace/>placedPortlets['<c:out value="${page.id}"/>'][<portlet:namespace/>i++][1] = '<c:out value="${portlet.portletName}"/>';
                 </c:forEach>
             </c:forEach>
   
  -          function doSwitchPage(select) {
  +          function <portlet:namespace/>doSwitchPage(select) {
                 var placePortletsSelect = document.forms['adminForm'].elements['placedPortlets'];
  -              for(var i=0;i<placePortletsSelect.options.length;i++) {
  +              for(var i=0; i < placePortletsSelect.options.length;i++) {
                     placePortletsSelect.options[i] = null;
                 }
   
  
positive.code:                   return;
                }
  
                for(var i=0;i<placedPortlets[select.value].length;i++) {
                    placePortletsSelect[i] = new Option(placedPortlets[select.value][i][1], placedPortlets[select.value][i][0]);
                }
  
            }
  
negative.code: <div>
    <h2>Portlet Applications</h2>
    <p>
  
      <script type="text/javascript">
          var <portlet:namespace/>portlets = new Array();
          <c:forEach items="${portletContainer.optionalContainerServices.portletRegistryService.registeredPortletApplications}" var="app">
              var <portlet:namespace/>i = 0;
              <portlet:namespace/>portlets['<c:out value="${app.applicationId}"/>'] = new Array();
              <portlet:namespace/>portlets['<c:out value="${app.applicationId}"/>'][<portlet:namespace/>i++] = 'Select. . .';
            <c:forEach items="${app.portletApplicationDefinition.portlets}" var="portlet">
              <portlet:namespace/>portlets['<c:out value="${app.applicationId}"/>'][<portlet:namespace/>i++] = '<c:out value="${portlet.portletName}"/>';
            </c:forEach>
          </c:forEach>
  
          function <portlet:namespace/>doSwitch(select) {
              var portletsSelectBox = document.forms['adminForm'].elements['availablePortlets'];
              for(var i = 0; i < portletsSelectBox.options.length;i++) {
                  portletsSelectBox.options[i] = null;
              }
              if (select.value == '-') {
                  document.forms['adminForm'].elements['availablePortlets'].disabled = true;
              } else {
                  portletsSelectBox.disabled = false;
                  var pList = <portlet:namespace/>portlets[select.value];
                  for (i = 0; i < pList.length; i++) {
                      portletsSelectBox.options[i] = new Option(pList[i], pList[i]);
                  }
              }
              <portlet:namespace/>doSwitchButton(portletsSelectBox);
          }
  
          function <portlet:namespace/>doSwitchButton(select) {
              document.forms['adminForm'].elements['command'][1].disabled = (select.value == 'Select. . .' || select.disabled);
          }
      </script>
  
      <select name="applications" onChange="<portlet:namespace/>doSwitch(this)">
        <option value='-'>Select. . .</option>
        <c:forEach items="${portletContainer.optionalContainerServices.portletRegistryService.registeredPortletApplications}" var="app">
        <option value="<c:out value="${app.applicationId}"/>"><c:out value="${app.applicationName}"/></option>
        </c:forEach>
      </select>
  
      <select name="availablePortlets" disabled="true" onChange='<portlet:namespace/>doSwitchButton(this)'>
  
      </select>
  
  