anchor.diff:  <div class="indnt1">
   <div class=" shorttext"><h:outputLabel value="#{msg.change_q_type}"/>
   
  -<h:selectOneMenu rendered="#{questionpool.importToAuthoring == 'true'}" onchange="document.links[5].onclick();"
  +<h:selectOneMenu rendered="#{(itemauthor.target == 'assessment' && questionpool.importToAuthoring == 'true') || itemauthor.target == 'questionpool'}" onchange="changeTypeLink(this);"
     value="#{itemauthor.currentItem.itemType}" required="true" id="changeQType1">
     <f:valueChangeListener
              type="org.sakaiproject.tool.assessment.ui.listener.author.StartCreateItemListener" />
  
positive.code: </h:selectOneMenu>
  
  <!-- if not from qpool , show the last option: copy from question pool-->
  <h:selectOneMenu onchange="document.links[5].onclick();" rendered="#{questionpool.importToAuthoring == 'false'}"
    value="#{itemauthor.currentItem.itemType}" required="true" id="changeQType2">
    <f:valueChangeListener
             type="org.sakaiproject.tool.assessment.ui.listener.author.StartCreateItemListener" />
  
negative.code: **********************************************************************************/
  --%>
  -->
  <script language="javascript" style="text/JavaScript">
  <!--
  function changeTypeLink(field){
  
  var newindex = 0;
  for (i=0; i<document.links.length; i++) {
    if ( document.links[i].id.indexOf("hiddenlink") >=0){
      newindex = i;
      break;
    }
  }
  
  document.links[newindex].onclick();
  }
  
  //-->
  </script>
  <h:form id="itemFormHeading">
  <%-- The following hidden fields echo some of the data in the item form
       when this form posts a change in item type, the data is persisted.
  