anchor.diff:  		font-weight: normal;
   	}
   
  -	
  -	.sae .NoRows {
  -		font-style: normal;
  +	.lastRowValue {
  +	 font-style: normal;
   		text-align: center;
  -		padding-top: 2em;
  -	    padding-bottom: 2em;
  -		
  -		color:red;
  -		
  -		
  +		color:red; 
   	}
   	
     </style>
     
     <script type="text/javascript">
  +  
  +   var setOfWindowsOpened = new Array();
  +  
      Event.observe(window, 'load', function() {
        Event.observe('flow-prev', 'click', checkForm);
        Event.observe('flow-next', 'click', checkForm);
        Event.observe('flow-update', 'click', checkForm);
        
  +     Event.observe('epochs[0].descriptionText-id', 'click', editInstruction);
  +     Event.observe('epochs[1].descriptionText-id', 'click', editInstruction);
  +     Event.observe('epochs[2].descriptionText-id', 'click', editInstruction);
  +     
  +     Event.observe('ck1', 'click', selectAll);
  +     Event.observe('ck2', 'click', selectAll);
  +     Event.observe('ck3', 'click', selectAll);
  +     
  +    
        var listOfTermIds = updateTermIds();
        var termIDArray = $A(listOfTermIds);
        termIDArray.each( registerDeleteButtons );
      }); 
       
  +    function selectAll(event)
  +    {
  +       var selectall_ckbox = Event.element(event).id;
  +       var all_ckboxes = $$('.'+selectall_ckbox);
  +       for(var i = 0 ; i < all_ckboxes.length ; i++)
  +       {
  +         if( $(selectall_ckbox).checked )
  +          $(all_ckboxes)[i].checked = true;
  +         else
  +          $(all_ckboxes)[i].checked = false;  
  +       }   
  +	     
  +    }
  +    function editInstruction(event)
  +    {
  +      var event_id = Event.element(event).id;
  +      var div_id = event_id.gsub(/(\w+)-id/,'#{1}-div');
  +      var window_id = "window-"+div_id;
  +      
  +      if( setOfWindowsOpened.indexOf(window_id) != -1 )
  +      {
  +        return;
  +      }
  +      else
  +      {
  +        setOfWindowsOpened.push( window_id );
  +      }
  +      
  +      
  +      var xtop = getX(event_id,event);
  +      var xleft = getY(event_id,event);
  +      
  +      
  +      var win = new Window({ id: window_id , className: "alphacube", closable : false, minimizable : false, maximizable : false, title: "Edit Instruction here", height:200, width: 450, top: xtop, left: xleft});
  +      
  +      win.setDestroyOnClose(); 
  +      win.setContent( div_id );
  +      Event.observe(div_id + "-button",'click',function(event){
  +           
  +           setOfWindowsOpened = setOfWindowsOpened.without("window-"+div_id);
  +           Windows.close("window-"+div_id);
  +      });
  +      win.show();      
  +    }
  +    
  +    function getX(event_id, event)
  +    {
  +      var xtop = Event.pointerY(event);
  +      
  +       return xtop + 30;
  +    }
  +    
  +    function getY(event_id, event)
  +    {
  +      var xleft = Event.pointerX(event);
  +      
  +      if(event_id == 'epochs[0].descriptionText-id')
  +           xleft = 50;
  +      else if( event_id == 'epochs[1].descriptionText-id' )
  +           xleft =  Event.pointerX(event) - 60;         
  +      else if( event_id == 'epochs[2].descriptionText-id' )
  +           xleft =  Event.pointerX(event) + 300;         
  +       return xleft;
  +    }
  +    
  +    
  +    
       function registerDeleteButtons(termID)
       {
         Event.observe("button-"+termID.value,'click',handleDelete);
  
positive.code:     {
  	     var listOfTermIds = $$('.eachRowTermID');
  	     if(listOfTermIds.length != 0){
  	       Element.hide('NoRows');
  	     }
  	     else
  	     {
  	       Element.show('NoRows');
  	     }
  	     $('err-section').innerHTML = "";
  	     return listOfTermIds;
  
negative.code:   		<!--  start of body -->
    		
    		
    		
          <table id="sae-0" class="sae">
    			<col class="term"/>
      		<colgroup>
  		      <col class="epoch"/>
  