anchor.diff:  <script type="text/javascript">
   	function generateCertificate(){
   		var divTemplate = document.getElementById("<portlet:namespace />templateContainer");
  +		
   		if(divTemplate.style.display==='none'){
   			divTemplate.style.display='block';
   		}else{
  
positive.code: 	</liferay-ui:panel>
  	</liferay-ui:panel-container>
  	<aui:button-row>
  		<aui:button type="submit" ></aui:button>	
  		<aui:button onClick="<%=cancel %>" type="cancel" />
  	</aui:button-row>
  </aui:form>
negative.code: 		</aui:select>
  		<aui:field-wrapper label="competence.diplomaTemplate">
  				<liferay-ui:input-editor name="template" width="100%" initMethod="initEditorTemplate" />
  				<aui:input name="/>template" type="hidden" />
  					<script type="text/javascript">
  	        			function <portlet:namespace />initEditorTemplate() { return "<%= UnicodeFormatter.toString(template) %>"; }
  	   				</script>
  