anchor.diff:  
           var stepOrder = 0;
           function nextWizard(){
  -            //alert("before");
               if(!validateInputs()){
                   alert("Required fields are missing");
                   return ;
               }
   
  -            //alert("after");
               try {
                   for (var currentStep = 1; currentStep <= stepOrder; currentStep++) {
                       var newValues = $("#p-step-" + currentStep + "-users").tokenizer('get');
  
positive.code:                                                     $(this).find('.step_order_header').text('Step '+newStepOrderVal);
  
                                                      var textArea_Users = $('#p-step-'+oldApproveStepVal+'-users');
                                                      textArea_Users.attr('id','#p-step-'+newStepOrderVal+'-users');
                                                      textArea_Users.attr('name','#p-step-'+newStepOrderVal+'-users');
  
                                                      var textArea_Roles = $('#p-step-'+oldApproveStepVal+'_roles');
                                                      textArea_Roles.attr('id','#p-step-'+newStepOrderVal+'_roles');
                                                      textArea_Roles.attr('name','#p-step-'+newStepOrderVal+'_roles');
  
                                                      newStepOrderVal++;
                                                  });
  
negative.code: 
  
          function validateInputs(){
              cleanSteps();
              <%
              if(template !=null && template.getParametersMetaData() !=null && template.getParametersMetaData().getParameterMetaData() !=null){
                  ParameterMetaData[] parameterMetaData = template.getParametersMetaData().getParameterMetaData();
  