anchor.diff:  	}
   	%>
   	 
  -	 <liferay-ui:panel title="activity-constraints" collapsible="true" defaultState="<%=actCondefaultState %>">
  -	   
  -	    <script type="text/javascript">
  -
  -
  -		    
  -		    function setStarDateState(){
  -		    	AUI().use('node',function(A) {
  -			    	var enabled = document.getElementById('<%=renderResponse.getNamespace() %>startdate-enabledCheckbox').checked; 
  -		    		var selector = 'form[name="<%=renderResponse.getNamespace() %>fm"]';
  -		    		
  -		    		if(enabled) {
  -		    			A.all("#startDate").one(".aui-datepicker-button-wrapper").show();
  -		    			A.all("#startDate").one("#startDateSpan").removeClass('aui-helper-hidden');
  -		    		}else {
  -		    			A.all("#startDate").one(".aui-datepicker-button-wrapper").hide();
  -		    			A.all("#startDate").one("#startDateSpan").addClass('aui-helper-hidden');
  -		    		}
  -		    	});
  -		    }
  -		    
  -		    function setStopDateState(){
  -		    	AUI().use('node',function(A) {
  -			    	var enabled = document.getElementById('<%=renderResponse.getNamespace() %>stopdate-enabledCheckbox').checked; 
  -
  -		    		var selector = 'form[name="<%=renderResponse.getNamespace() %>fm"]';
  -		    		
  -		    		if(enabled) {
  -		    			A.all("#endDate").one(".aui-datepicker-button-wrapper").show();
  -		    			A.all("#endDate").one("#endDateSpan").removeClass('aui-helper-hidden');
  -		    		}else {
  -		    			A.all("#endDate").one(".aui-datepicker-button-wrapper").hide();
  -		    			A.all("#endDate").one("#endDateSpan").addClass('aui-helper-hidden');
  -		    		}
  -		    	});
  -		    }
  -
  -	    </script>
  +	<div id="<portlet:namespace />restrictions" style="display:none">
  +		<liferay-ui:panel title="activity-constraints" collapsible="true" defaultState="<%=actCondefaultState %>">
  +		    <script type="text/javascript">
  +	
  +	
  +			    
  +			    function setStarDateState(){
  +			    	AUI().use('node',function(A) {
  +				    	var enabled = document.getElementById('<%=renderResponse.getNamespace() %>startdate-enabledCheckbox').checked; 
  +			    		var selector = 'form[name="<%=renderResponse.getNamespace() %>fm"]';
  +			    		
  +			    		if(enabled) {
  +			    			A.all("#startDate").one(".aui-datepicker-button-wrapper").show();
  +			    			A.all("#startDate").one("#startDateSpan").removeClass('aui-helper-hidden');
  +			    		}else {
  +			    			A.all("#startDate").one(".aui-datepicker-button-wrapper").hide();
  +			    			A.all("#startDate").one("#startDateSpan").addClass('aui-helper-hidden');
  +			    		}
  +			    	});
  +			    }
  +			    
  +			    function setStopDateState(){
  +			    	AUI().use('node',function(A) {
  +				    	var enabled = document.getElementById('<%=renderResponse.getNamespace() %>stopdate-enabledCheckbox').checked; 
  +	
  +			    		var selector = 'form[name="<%=renderResponse.getNamespace() %>fm"]';
  +			    		
  +			    		if(enabled) {
  +			    			A.all("#endDate").one(".aui-datepicker-button-wrapper").show();
  +			    			A.all("#endDate").one("#endDateSpan").removeClass('aui-helper-hidden');
  +			    		}else {
  +			    			A.all("#endDate").one(".aui-datepicker-button-wrapper").hide();
  +			    			A.all("#endDate").one("#endDateSpan").addClass('aui-helper-hidden');
  +			    		}
  +			    	});
  +			    }
  +	
  +		    </script>
   		<div id="startDate">
   			<aui:field-wrapper label="start-date">
   				<% if (!larntype.hasMandatoryDates()) { %>
  
positive.code: int endYear=Integer.parseInt(formatYear.format(today))+1;
  int endHour=Integer.parseInt(formatHour.format(today));
  int endMin=Integer.parseInt(formatMin.format(today));
  %>
  
  <%
  
negative.code: 			</liferay-util:include>	
  		<% } %>
  	</liferay-ui:panel>
  	</div>
  <%}
  	String actCondefaultState="closed";
  	if(larntype.hasMandatoryDates())
  