<%--
Configuración de la actividad Sopa de letras.
--%>
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ page import="org.apache.struts.util.MessageResources"%>
<%@ page import="org.apache.struts.util.PropertyMessageResources"%>
<%@ page import="com.snr.lnr.activities.common.SessionKeys"%>
<%@ page import="com.snr.lnr.activities.common.ActivityForm"%>
<%@ page import="com.snr.lnr.common.ReadingKeys"%>
<%@ page import="com.snr.lnr.activities.wordsearch.WordSearchActivityForm,com.snr.lnr.activities.util.TmpImageBean"%>
<%@ page import="com.snr.lnr.bom.dto.DTOActivityUseWay"%>
<%@taglib uri="/tags/struts-bean" prefix="bean" %>
<%@taglib uri="/tags/struts-html" prefix="html" %>
<%@taglib uri="/tags/reading-template" prefix="template" %>

<template:content>
<jsp:useBean id="wordSearchActivityForm" scope="session" class="com.snr.lnr.activities.wordsearch.WordSearchActivityForm"/>
<%
	MessageResources msgRes = PropertyMessageResources.getMessageResources( SessionKeys.APPLICATION_RESOURCES );
	String activityBeanName = request.getParameter( SessionKeys.BEAN_NAME_PARAM );
	ActivityForm activityBean = (ActivityForm)request.getSession().getAttribute(activityBeanName);

	String savingText=msgRes.getMessage("global.saving");


	String bookTitle= (String) request.getSession().getAttribute("bookTitle");
	if (bookTitle == null) {
		bookTitle = "";
	}
	if (bookTitle.length()>28){
		bookTitle=bookTitle.substring(0,28);
		bookTitle+="...";
	}
	String activityTitle=wordSearchActivityForm.getTitle();
	if (activityTitle.length()>28){
		activityTitle=activityTitle.substring(0,28);
		activityTitle+="...";
	}
	String anchor="<a href=\"#\"></a><span class=\"tituv18bfff\">"+bookTitle+"</span></a>";
	if (!"".equals(activityTitle)){
		anchor+="<span valign=\"middle\" class=\"tituv16rfff\"> > "+activityTitle+"</span>";
	}

	boolean reinforcementActivity=Integer.parseInt(request.getSession().getAttribute(ReadingKeys.ACTIVITY_USEWAY).toString())==DTOActivityUseWay.ACTIVITY_REINFORCEMENT;

%>
<template:put name="head" anchor1="&nbsp;" anchor2="<%=anchor%>" help="help.editor.activities.config">

<script language="JavaScript" src="<template:link bundle="activitiesPaths" key="global.javascript.button"/>"></script>
<script language="JavaScript" src="<template:link bundle="activitiesPaths" key="global.javascript.tabs"/>"></script>
<script language="JavaScript" src="<template:link bundle="activitiesPaths" key="global.javascript.format"/>"></script>
<script language="JavaScript" src="<template:link bundle="activitiesPaths" key="global.javascript.common"/>"></script>
<script language="JavaScript">
	var changeEnabled=true;
	var contextPath="<%=request.getContextPath()%>";
	var tabToShow=<%=request.getAttribute(SessionKeys.TAB_TO_SHOW_ATTRIB)%>;
	var whatOnLoad=<%=wordSearchActivityForm.getOnLoad()%>;
	var wizardStep=<%=wordSearchActivityForm.getStep()%>;
	var ONLOAD_NONE=<%=ActivityForm.ONLOAD_NONE%>;
	var ONLOAD_EDITOR=<%=ActivityForm.ONLOAD_EDITOR%>;
	var ONLOAD_EXAMPLE=<%=ActivityForm.ONLOAD_EXAMPLE%>;
	var ONLOAD_STANDALONE=<%=ActivityForm.ONLOAD_STANDALONE%>;
	var ONLOAD_SOLUTION=<%=ActivityForm.ONLOAD_SOLUTION%>;

	function sendAction(form, action){
		form=parent.document.getElementById(form);
		form.methodToCall.value=action;
		form.lastTab.value=currentTab;// Licencia para utilizar una variable definida en activityTabs.js
		form.submit();
	}

	/*
	*	Es llamado para agregar o eliminar puntos 
	*	del árbol curricular
	*/
	function sendActionFW(form, action) {
		form.methodToCall.value=action;
		form.submit();
	}
            

	var defChanged=false;
	function doChange(){
		defChanged=true;
	}

	function backMethod(){

			if ("<%=reinforcementActivity%>"=="true"){
				document.getElementById('cancelToReinforcementForm').submit();
			}
			else{
				document.getElementById('cancelForm').submit();
			}
		}

		var buttonCounter=0;
		function saveActivity(formName, action){
			if (buttonCounter==0){
				buttonCounter++;
				document.getElementById("buttonSpan").className="SnRDisabledText";
				document.getElementById("buttonSpan").innerHTML="<%=savingText%>";
				sendAction(formName, action);
			}
		}
</script>
</template:put>

<template:put name="body">
	<html:form action="/activities/wordSearch" method="POST" styleId="wordSearchActivityForm" enctype="multipart/form-data">
		<html:hidden property="methodToCall"/>
		<html:hidden property="dirty"/>
		<input type="hidden" name="lastTab">
		<table cellspacing=0 cellpadding=0 border=0>
			<tr>
				<td valign=top>
					<table border=0 cellpadding=0 cellspacing=0 width=609>
						<tr>
							<td><img width=1 height=15></td>
						</tr>
					</table>
					<table border=0 cellpadding=0 cellspacing=0 width=609>
						<tr>
							<td align="left" valign="bottom" class="v10r000"><img src="<template:link bundle="activitiesPaths" key="global.blueLine"/>" width="6" height="10"><strong><bean:message bundle="resources" key="generic.activity"/>&nbsp;<bean:message bundle="activitiesResources" key="global.activity.wordSearch"/></strong></td>
						</tr>
						<tr>
							<td><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="7"></td>
						</tr>
						<tr>
							<td><img src="<template:link bundle="activitiesPaths" key="global.greyLine"/>" width="609" height="1"></td>
						</tr>
						<tr>
							<td><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="30"></td>
						</tr>
					</table>
					<table cellspacing=0 cellpadding=0 border=0 width=609>
						<tr>
							<td>
								<table border=0 cellspacing=0 cellpadding=0 width=100%>
									<tr>
										<td>
											<table width=100% cellspacing=0 cellpadding=0 border=0>
												<tr>
													<td class="SnRTabEmpty" width=100%>&nbsp;</td>
													<td id="ltabs0head0" class="SnRTabOnLeft"><img width=3 style="visibility:hidden;"></td>
													<td nowrap id="tabs0head0" class="SnRTabOnTxt" onclick="swapWizardTab(0,4,0,'SnRTabOnTxt','SnRTabOffTxt')"><bean:message bundle="activitiesResources" key="global.tab.general"/></td>
													<td id="rtabs0head0" class="SnRTabOnRight"><img width=3 style="visibility:hidden;"></td>
													<td class="SnRTabSpacer"><img width=4 style="visibility:hidden;"></td>
													<td id="ltabs0head1" class="SnRTabOffLeft"><img width=3 style="visibility:hidden;"></td>
													<td nowrap id="tabs0head1" class="SnRTabOffTxt" onclick="swapWizardTab(0,4,1,'SnRTabOnTxt','SnRTabOffTxt')"><bean:message bundle="activitiesResources" key="global.tab.visual"/></td>
													<td id="rtabs0head1" class="SnRTabOffRight"><img width=3 style="visibility:hidden;"></td>
													<td class="SnRTabSpacer"><img width=4 style="visibility:hidden;"></td>
													<td id="ltabs0head2" class="SnRTabOffLeft"><img width=3 style="visibility:hidden;"></td>
													<td nowrap id="tabs0head2" class="SnRTabOffTxt" onclick="swapWizardTab(0,4,2,'SnRTabOnTxt','SnRTabOffTxt')"><bean:message bundle="activitiesResources" key="global.tab.configuration"/></td>
													<td id="rtabs0head2" class="SnRTabOffRight"><img width=3 style="visibility:hidden;"></td>
													<td class="SnRTabSpacer"><img width=4 style="visibility:hidden;"></td>
													<td id="ltabs0head3" class="SnRTabOffLeft"><img width=3 style="visibility:hidden;"></td>
													<td nowrap id="tabs0head3" class="SnRTabOffTxt" onclick="swapWizardTab(0,4,3,'SnRTabOnTxt','SnRTabOffTxt')"><bean:message bundle="activitiesResources" key="global.tab.example"/></td>
													<td id="rtabs0head3" class="SnRTabOffRight"><img width=3 style="visibility:hidden;"></td>
												</tr>
			 									<tr><td height="3" colspan="12" class="SnRTabWhite">&nbsp;</td></tr>
            										</table>
            									</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td class=SnRSpacing>
								<!-- Tab general -->
							<div id="tabs0tab0">
								<logic:messagesPresent property="errorsOut">
									<html:messages id="errorsOut" bundle="activitiesResources">
										<span class="errorMsg">
											<table cellpadding="0px">
												<tr>
													<td height="0px">
														<img src="<template:link bundle="activitiesPaths" key="global.error"/>">
													</td>
													<td class="errorMsg">
														<b><bean:message bundle="activitiesResources" key="global.error.text"/></b>:&nbsp;
														<bean:write name="errorsOut" />
													</td>
												</tr>
											</table>
										</span>
										<table cellpadding="0px"><tr><td height="0px"></td></tr></table>
									</html:messages>
								</logic:messagesPresent>
								<jsp:include page="../common/generalTab.jsp" flush="true">
									<jsp:param name="beanName" value="wordSearchActivityForm" />
								</jsp:include>
                                    			</div>
							<!-- Tab de configuración aspecto visual -->
							<div id="tabs0tab1" style="display:none;">
								<jsp:include page="../common/visualTab.jsp" flush="true">
									<jsp:param name="beanName" value="wordSearchActivityForm" />
								</jsp:include>
							</div>

<%!
// Dibuja el tablero de la sopa de letras
private String drawBoard(WordSearchActivityForm wordSearchActivityForm) {
	StringBuffer board = null;
	int _XY = 0;
	boolean coords[] = wordSearchActivityForm.getCoords();
	if (coords != null) {
		char text[] = wordSearchActivityForm.getText();
		board = new StringBuffer(25 * text.length);
		for (int i = _XY, rows = wordSearchActivityForm.getRows(), columns = wordSearchActivityForm.getColumns() ; i < rows; i++) {
			board.append("<tr>");
			for (int j = _XY, index = i * columns; j < columns; j++) {
				index = i * columns + j;
				if (coords[index] ) board.append("<td class=SnRWordHilite>").append(text[index]);
				else board.append("<td class=SnRWordCell>").append(text[index]);
			}
			board.append("</tr>");
		}
	}
	else {
		board = new StringBuffer(500);
		for (int i = _XY, rows = wordSearchActivityForm.getRows(), columns = wordSearchActivityForm.getColumns() ; i < rows; i++) {
			board.append("<tr>");
			for (int j = _XY, index = i * columns; j < columns; j++) board.append("<td class=SnRWordCell>");
			board.append("</tr>");
		}
	}
	return board != null ? board.toString() : "";
}
%>
							<!-- Tab de config. de la actividad -->
							<div id="tabs0tab2" style="display:none;">
								<span id="globalErrors">
									<logic:messagesPresent property="errorsOut">
										<html:messages id="errorsOut" bundle="activitiesResources">
											<span class="errorMsg">
												<table cellpadding="0px">
													<tr>
														<td height="0px">
															<img src="<template:link bundle="activitiesPaths" key="global.error"/>">
														</td>
														<td class="errorMsg">
															<span id="errorSpan" class="errorMsg"><b><bean:message bundle="activitiesResources" key="global.error.text"/></b>:&nbsp;</span>
															<bean:write name="errorsOut" />
														</td>
													</tr>
												</table>
											</span>
											<table cellpadding="0px"><tr><td height="0px"></td></tr></table>
										</html:messages>
										<table border=0 cellpadding=0 cellspacing=0 width=609>
											<tr>
												<td><img width=1 height=15></td>
											</tr>
										</table>
									</logic:messagesPresent>
									<table cellpadding="0px">
										<tr>
											<td height="0px">
											</td>
										</tr>
									</table>
								</span>
								<%
								// Se muestra el resumen
								if (request.getAttribute(SessionKeys._SAVED).equals(SessionKeys.TRUE_STRING)) {
								%>
								<div id="summary">
									<table border=0 cellpadding=0 cellspacing=0 width=100%>
									<%
									if (!wordSearchActivityForm.isFromBlank()) {
									%>
										<tr>
											<td class=SnRFormTABLE noWrap valign="bottom" colspan=2><bean:message bundle="activitiesResources" key="wordSearch.configured"/></td>
										</tr>
										<tr>
											<td class=SnRSeparadorInterno><img class=SnRColumn1></td>
											<td class=SnRSeparadorInterno><img style=visibility:hidden;height:1px></td>
										</tr>
										<tr>
											<td colspan=2><img class=SnRSpacer1></td>
										</tr>
										<tr>
											<td colspan=2 align=center>
											<table border=0 cellpadding=0 cellspacing=0 class=SnRWordBox>
											<%=drawBoard(wordSearchActivityForm)%>
											</table>
											</td>
										</tr>
									</table>
									<table border=0 cellpadding=0 cellspacing=0 width=100%>
										<tr>
											<td><img class=SnRColumn1></td>
											<td width=100%>&nbsp;</td>
										</tr>
										<%
										MessageResources msg = PropertyMessageResources.getMessageResources(SessionKeys.APPLICATION_RESOURCES);
										String list[] = wordSearchActivityForm.getWord();
										if (wordSearchActivityForm.getDefinitionType() == WordSearchActivityForm._TEXT) {
											java.util.HashMap clues = wordSearchActivityForm.getTxtClues();
											out.print("<tr><td align=right valign=top><b>" + msg.getMessage("wordSearch.text") + ":</b>&nbsp;</td><td width=\"100%\">");
											for (int i = 0, l = list.length; i< l; i++){
												out.print((i+1) + "." + clues.get(new Integer(i)) + "<br>");
											}
										}
										else if (wordSearchActivityForm.getDefinitionType() == WordSearchActivityForm._WORD) {
											out.print("<tr><td align=right valign=top><b>" + msg.getMessage("wordSearch.word") + ":</b>&nbsp;</td><td width=\"100%\">");
											for (int i = 0, l = list.length; i< l; i++){
												out.print((i+1) + "." + list[i] + "<br>");
											}
										}
										else if (wordSearchActivityForm.getDefinitionType() == WordSearchActivityForm._IMAGE) {
											java.util.HashMap clues = wordSearchActivityForm.getImgClues();

											out.print("<tr><td align=right valign=top><b>" + msg.getMessage("wordSearch.image") + ":</b>&nbsp;</td><td width=\"100%\">");
											for (int i = 0, l = list.length; i< l; i++) {
												TmpImageBean tmp = (TmpImageBean)clues.get(new Integer(i));
												String clue = tmp.getPath();
												out.print((i+1) + ".<a href=\"" + clue + "\" target=\"_blank\">" + clue.substring(clue.lastIndexOf('/') + 1) + "</a><br>");
											}
										}
										else {
											out.print("<tr><td align=right valign=top><b>General:</b>&nbsp;</td><td width=\"100%\">");
											out.print(wordSearchActivityForm.getActivityWording());
										}
										out.print("</td></tr>");
									}
									else {
									%>
										<tr>
											<td class=SnRFormTABLE noWrap valign="bottom" colspan=2><bean:message bundle="activitiesResources" key="global.tab.configuration"/></td>
										</tr>
									<%
									}
									%>
									</table>
									<table cellpadding=0 cellspacing=0 border=0 width=100%>
										<tr>
											<td><img class=SnRSpacer></td>
										</tr>
										<tr>
											<td class=SnRSeparadorInterno><img style=height:1px;width:100%;visibility:hidden;></td>
										</tr>
										<tr>
											<td><img class=SnRSpacer></td>
										</tr>
										<tr>
											<td><bean:message bundle="activitiesResources" key="wordSearch.configure"/></td>
										</tr>
										<tr>
											<td><img class=SnRSpacer></td>
										</tr>
										<tr>
											<td>
												<table id="config" border="0" cellpadding="0" cellspacing="0" onclick="sendAction('wordSearchActivityForm','showWizard')">
													<tr>
														<td id="configLeftTop" class="SnRLeftTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
														<td id="configCenterTop" class="SnRCenterTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
														<td id="configRightTop" class="SnRRightTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
													</tr>
													<tr>
														<td id="configLeftMiddle" class="SnRLeftMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
														<td id="configCenterMiddle" class="SnRCenterMiddle" nowrap><span id="configText" class="SnREnabledText"><bean:message bundle="activitiesResources" key="global.configure"/><br></span></td>
														<td id="configRightMiddle" class="SnRRightMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
													</tr>
													<tr>
														<td id="configLeftBottom" class="SnRLeftBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
														<td id="configCenterBottom" class="SnRCenterBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
														<td id="configRightBottom" class="SnRRightBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</div>
								<%
								}
								// Se muestra el primer paso del asistente
								else if (wordSearchActivityForm.getStep() == ActivityForm.FIRST_STEP) {
								%>
								<div id="wizard">
									<table width=100% border=0 cellpadding=0 cellspacing=0 style="height:100%">
										<tr>
											<td colspan=2 rowspan=2 width=100% height=100% valign=top>
												<table class=SnRBox width=100% border=0 cellpadding=0 cellspacing=0>
													<tr class=SnRBoxTitle>
														<td width=100% class=v10r000 style=height:20px><strong><bean:message bundle="activitiesResources" key="global.configuration"/></strong></td>
														<td align=right>
															<table border=0 cellpadding=0 cellspacing=0 class=SnRBoxCorner style=height:20px>
																<tr>
																	<td class=v10r000 nowrap><bean:message bundle="activitiesResources" key="wordSearch.step.one"/></td>
																</tr>
															</table>
														</td>
													</tr>
													<tr>
														<td colspan=2 class="SnRSeparadorInterno"><img style=visibility:hidden;height:1px></td>
													</tr>
													<tr>
														<td><img width=1 height=15></td>
													</tr>
													<tr>
														<td colspan=2 valign=top class=SnRBoxContent>
															<table border=0 cellpadding=0 cellspacing=0 width=100% style="vertical-align:bottom">
																<tr>
																	<td class=SnRFormTABLE colspan=2><bean:message bundle="activitiesResources" key="wordSearch.params"/></td>
																</tr>
																<tr>
																	<td class=SnRSeparadorInterno><img class=SnRColumn1></td>
																	<td class=SnRSeparadorInterno><img style=height:1px;visibility:hidden></td>
																</tr>
																<tr>
																	<td colspan=2><img class=SnRSpacer1></td>
																</tr>
																<tr>
																	<td align=right width=20%><bean:message bundle="activitiesResources" key="wordSearch.numRows"/>:&nbsp;</td>
																	<td width=80%>
																		<html:select name="wordSearchActivityForm" property="rows" styleClass="SnRSelect" style="width:70px">
																			<html:option value="2">2</html:option>
																			<html:option value="3">3</html:option>
																			<html:option value="4">4</html:option>
																			<html:option value="5">5</html:option>
																			<html:option value="6">6</html:option>
																			<html:option value="7">7</html:option>
																			<html:option value="8">8</html:option>
																			<html:option value="9">9</html:option>
																			<html:option value="10">10</html:option>
																			<html:option value="11">11</html:option>
																			<html:option value="12">12</html:option>
																			<html:option value="13">13</html:option>
																			<html:option value="14">14</html:option>
																			<html:option value="15">15</html:option>
																			<html:option value="16">16</html:option>
																		</html:select>
																	</td>
																</tr>
																<tr>
																	<td colspan=2><img class=SnRSpacer1></td>
																</tr>
																<tr>
																	<td align=right><bean:message bundle="activitiesResources" key="wordSearch.numCols"/>:&nbsp;</td>
																	<td>
																		<html:select name="wordSearchActivityForm" property="columns" styleClass="SnRSelect" style="width:70px">
																			<html:option value="2">2</html:option>
																			<html:option value="3">3</html:option>
																			<html:option value="4">4</html:option>
																			<html:option value="5">5</html:option>
																			<html:option value="6">6</html:option>
																			<html:option value="7">7</html:option>
																			<html:option value="8">8</html:option>
																			<html:option value="9">9</html:option>
																			<html:option value="10">10</html:option>
																			<html:option value="11">11</html:option>
																			<html:option value="12">12</html:option>
																			<html:option value="13">13</html:option>
																			<html:option value="14">14</html:option>
																			<html:option value="15">15</html:option>
																		</html:select>
																	</td>
																</tr>
																<tr>
																	<td colspan=2><img class=SnRSpacer1></td>
																</tr>
																<tr>
																	<td align=right><bean:message bundle="activitiesResources" key="wordSearch.definition"/>:&nbsp;</td>
																	<td>
																		<html:hidden property="previousDefinitionType"/>
																		<html:select name="wordSearchActivityForm" property="definitionType" styleClass="SnRSelect" style="width:70px;">
																			<html:option value="0"><bean:message bundle="activitiesResources" key="wordSearch.text"/></html:option>
																			<html:option value="1"><bean:message bundle="activitiesResources" key="wordSearch.image"/></html:option>
																			<html:option value="2"><bean:message bundle="activitiesResources" key="wordSearch.word"/></html:option>
																			<html:option value="3"><bean:message bundle="activitiesResources" key="wordSearch.generic"/></html:option>
																		</html:select>
																	</td>
																</tr>
																<tr>
																	<td align="right" colspan="2">
																		<table id="tableDimensions" border="0" cellpadding="0" cellspacing="0" onclick="sendAction('wordSearchActivityForm','changeTableDimensions')">
																			<tr>
																				<td id="tableDimensionsLeftTop" class="SnRLeftTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																				<td id="tableDimensionsCenterTop" class="SnRCenterTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="tableDimensionsRightTop" class="SnRRightTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																			</tr>
																			<tr>
																				<td id="tableDimensionsLeftMiddle" class="SnRLeftMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="tableDimensionsCenterMiddle" class="SnRCenterMiddle" nowrap><span id="tableDimensionsText" class="SnREnabledText"><bean:message bundle="activitiesResources" key="wordSearch.button.table.dimensions"/></span></td>
																				<td id="tableDimensionsRightMiddle" class="SnRRightMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																			</tr>
																			<tr>
																				<td id="tableDimensionsLeftBottom" class="SnRLeftBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																				<td id="tableDimensionsCenterBottom" class="SnRCenterBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="tableDimensionsRightBottom" class="SnRRightBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																			</tr>
																		</table>
																	</td>
																</tr>
																<tr>
																	<td colspan=2><img class=SnRSpacer1></td>
																</tr>
															</table>
															<div id="definicion" style="display:none;">
																<table cellpadding=0 cellspacing=0 border=0 width=100%>
																	<tr>
																		<td colspan=4><img class=SnRSpacer></td>
																	</tr>
																	<tr>
																		<td class=SnRFormTABLE colspan=4><bean:message bundle="activitiesResources" key="wordSearch.definition.generic"/></td>
																	</tr>
																	<tr>
																		<td class=SnRSeparadorInterno><img class=SnRColumn1></td>
																		<td class=SnRSeparadorInterno colspan=3><img style=height:1px;visibility:hidden;width=100%></td>
																	</tr>
																	<tr>
																		<td colspan=4><img class=SnRSpacer></td>
																	</tr>
																	<tr style="vertical-align:bottom">
																		<td align=right><bean:message bundle="activitiesResources" key="wordSearch.text"/>:&nbsp;</td>
																		<td>&nbsp;<input type=text name=en1 id=en1 size=51 class=SnRInput tabindex=1></td>
																		<td><img style=visibility:hidden;width:18px></td>
																		<td width=100% class=SnRCeldaLink style=text-align:left;>[&nbsp;<a title='<bean:message bundle="activitiesResources" key="global.bold.title"/>' class=SnRStepNavLink href=#>N</a>&nbsp;]&nbsp;&nbsp;[&nbsp;<a title='<bean:message bundle="activitiesResources" key="global.italics.title"/>' class=SnRStepNavLink href=#><i>K</i></a>]&nbsp;&nbsp;[&nbsp;<a title='<bean:message bundle="activitiesResources" key="global.underline.title"/>' class=SnRStepNavLink href=# style="text-decoration:underline">U</a>&nbsp;]</td>
																	</tr>
																	<tr>
																		<td colspan=4><img class=SnRSpacer></td>
																	</tr>
																	<tr>
																		<td colspan=4><img class=SnRSpacer1></td>
																	</tr>
																</table>
															</div>
															<table cellpadding=0 cellspacing=0 border=0 width=100%>
																<tr>
																	<td class=SnRFormTABLE><bean:message bundle="activitiesResources" key="wordSearch.word"/></td>
																</tr>
																<tr>
																	<td class=SnRSeparadorInterno><img style=height:1px;width=100%;visibility:hidden></td>
																</tr>
																<tr>
																	<td><img class=SnRSpacer></td>
																</tr>
																<tr>
																	<td><bean:message bundle="activitiesResources" key="wordSearch.configure.button"/></td>
																</tr>
																<tr>
																	<td><img class=SnRSpacer></td>
																</tr>
																<tr>
																	<td>
																		<table id="config1" border="0" cellpadding="0" cellspacing="0" onclick="sendAction('wordSearchActivityForm','configure')">
																			<tr>
																				<td id="config1LeftTop" class="SnRLeftTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																				<td id="config1CenterTop" class="SnRCenterTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="config1RightTop" class="SnRRightTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																			</tr>
																			<tr>
																				<td id="config1LeftMiddle" class="SnRLeftMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="config1CenterMiddle" class="SnRCenterMiddle" nowrap><span id="config1Text" class="SnREnabledText"><bean:message bundle="activitiesResources" key="global.configure"/></span></td>
																				<td id="config1RightMiddle" class="SnRRightMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																			</tr>
																			<tr>
																				<td id="config1LeftBottom" class="SnRLeftBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																				<td id="config1CenterBottom" class="SnRCenterBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="config1RightBottom" class="SnRRightBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																			</tr>
																		</table>
																	</td>
																</tr>
																<tr>
																	<td><img class=SnRSpacer1></td>
																</tr>
																<tr>
																	<td align=left style="padding-left:100px">
																		<table border=0 cellpadding=0 cellspacing=0 class=SnRWordBox>
																			<%=drawBoard(wordSearchActivityForm)%>
																		</table>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
													<tr>
														<td colspan=2 class=SnRBoxContent valign=bottom>
															<table cellpadding=0 cellspacing=0 border=0 width=100%>
															<%
															//Deshabilitar siguiente
															if (wordSearchActivityForm.getWord() != null && !wordSearchActivityForm.isFromBlank()) {
															%>
																<tr>
																	<td height=28 width=100% class=SnRCeldaLink nowrap align=right valign=bottom>
																		<a class="SnRStepNavLink" href="javascript:sendAction('wordSearchActivityForm','next')" >
																			<bean:message bundle="activitiesResources" key="global.next"/></a>&nbsp;
																		<img src="<template:link bundle="rcPaths" key="paging.fwd.on"/>">
																	</td>
																</tr>
															<%
															}
															else {
															%>
																<tr>
																	<td height=28 width=100% class=SnRDisabledText nowrap align=right valign=middle>
																		<bean:message bundle="activitiesResources" key="global.next"/>&nbsp;
																		<img src="<template:link bundle="rcPaths" key="paging.fwd.off"/>">
																	</td>
																</tr>
															<%
															}
															%>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</div>
								<%
								}// Fin primer paso del asistente
								// Segundo paso del asistente
								else if (wordSearchActivityForm.getStep() > ActivityForm.FIRST_STEP) {
									String list[] = wordSearchActivityForm.getWord();
								%>
								<div id="wizard1">
									<table width=100% border=0 cellpadding=0 cellspacing=0 style="height:100%">
										<tr>
											<td colspan=2 rowspan=2 width=100% height=100% valign=top>
												<table class=SnRBox width=100% border=0 cellpadding=0 cellspacing=0>
													<tr class=SnRBoxTitle>
														<td width=100% class=v10r000 style=height:20px><strong><bean:message bundle="activitiesResources" key="global.configuration"/></strong></td>
														<td align=right>
															<table border=0 cellpadding=0 cellspacing=0 class=SnRBoxCorner style=height:20px>
																<tr>
																	<td class=v10r000 nowrap><bean:message bundle="activitiesResources" key="wordSearch.step.two"/></td>
																</tr>
															</table>
														</td>
													</tr>
													<tr>
														<td colspan=2 class="SnRSeparadorInterno"><img style=visibility:hidden;height:1px></td>
													</tr>
													<tr>
														<td><img width=1 height=15></td>
													</tr>
													<tr>
														<td colspan=2 valign=top class=SnRBoxContent>
															<logic:messagesPresent>
																<html:messages id="errorsConfig" bundle="activitiesResources" property="<%=com.snr.lnr.activities.common.SessionKeys.ERRORS_INSIDE%>">
																	<span class="errorMsg"><b><bean:message bundle="activitiesResources" key="global.error.text"/></b>:&nbsp;<bean:write name="errorsConfig" /></span>
																	<table cellpadding="0px"><tr><td height="0px"></td></tr></table>
																</html:messages>
															</logic:messagesPresent>
															<%
																// IMAGENES
																if (wordSearchActivityForm.getDefinitionType() == WordSearchActivityForm._IMAGE) {
																	java.util.HashMap clues = wordSearchActivityForm.getImgClues();
															%>
															<table border=0 cellpadding=0 cellspacing=0 width=100%>
																<tr>
																	<td class=SnRFormTABLE colspan=4><bean:message bundle="activitiesResources" key="wordSearch.clues.images"/></td>
																</tr>
																<tr>
																	<td class=SnRSeparadorInterno><img class=SnRColumn1></td>
																	<td class=SnRSeparadorInterno colspan=3><img style=height:1px;visibility:hidden></td>
																</tr>
															</table>
															<%
																	for (int i = 0, l = list.length; i < l; i++) {
																		String word = list[i];
																		String file = "file[" + i + "]";
																		TmpImageBean clue = (TmpImageBean)clues.get(new Integer(i));
															%>
															<table border=0 cellpadding=0 cellspacing=0 width=100% id=tableImg>
																<tr>
																	<td colspan=2><img class=SnRSpacer></td>
																</tr>
																<tr>
																	<td align=right width=100><%=word%></td>
																	<td>&nbsp;</td>
																</tr>
																		<%
																		if (clue != null) {
																		%>
																<tr>
																	<td align=right width=100><bean:message bundle="activitiesResources" key="global.image" />:&nbsp;</td>
																	<td><a href="<%=clue.getPath()%>" target="_blank"><%=clue.getPath().substring(clue.getPath().lastIndexOf('/') + 1)%></a></td>
																</tr>
																		<%
																		}
																		%>
																<tr>
																	<td>&nbsp;</td>
																	<td>
																		<table border=0 cellpadding=0 cellspacing=0>
																			<tr>
																				<td><input type="radio" value="<bean:message bundle="activitiesResources" key='global.hd'/>" name="img<%=i%>" tabindex="22" checked></td>
																				<td align=right width=75><bean:message bundle="activitiesResources" key="global.hd"/>:&nbsp;</td>
																				<td><html:file name="wordSearchActivityForm" property="<%=file%>" size="35" styleClass="SnRInput" tabindex="1" value="<%=clue != null ? clue.getPath() : ""%>" onchange="doChange()"/></td>
																			</tr>
																		</table>
																	</td>
																</tr>
																<tr>
																	<td colspan=2><img class=SnRSpacer></td>
																</tr>
																<tr>
																	<td>&nbsp;</td>
																	<td>
																		<table border=0 cellpadding=0 cellspacing=0>
																			<tr>
																				<%--<td><input type=radio value="<bean:message bundle="activitiesResources" key='global.repository'/>" name=img<%=i%> tabindex=22 disabled></td>
																				<td align=right width=75><bean:message bundle="activitiesResources" key="global.repository"/>:&nbsp;</td>--%>
																				<td><input type=hidden name=imgRep size=35 class=SnRInput tabindex=1 onchange="doChange()">&nbsp;</td>
																				<%--<td class=SnRCeldaLink nowrap align=right>
																					<table id="find" border="0" cellpadding="0" cellspacing="0">
																						<tr>
																							<td id="findLeftTop" class="SnRLeftTop"><img height="3" width="3" style="visibility:hidden"/></td>
																							<td id="findCenterTop" class="SnRCenterTop"><img height="3" style="visibility:hidden"/></td>
																							<td id="findRightTop" class="SnRRightTop"><img height="3" width="3" style="visibility:hidden"/></td>
																						</tr>
																						<tr>
																							<td id="findLeftMiddle" class="SnRLeftMiddle"><img width="3" style="visibility:hidden"/></td>
																							<td id="findCenterMiddle" class="SnRCenterMiddle" nowrap><span id="findText" class="SnREnabledText"><bean:message bundle="activitiesResources" key="wordSearch.find"/></span></td>
																							<td id="findRightMiddle" class="SnRRightMiddle"><img width="3" style="visibility:hidden"/></td>
																						</tr>
																						<tr>
																							<td id="findLeftBottom" class="SnRLeftBottom"><img height="3" width="3" style="visibility:hidden"/></td>
																							<td id="findCenterBottom" class="SnRCenterBottom"><img height="3" style="visibility:hidden"/></td>
																							<td id="findRightBottom" class="SnRRightBottom"><img height="3" width="3" style="visibility:hidden"/></td>
																						</tr>
																					</table>
																				</td>--%>
																			</tr>
																		</table>
																	</td>
																</tr>
																<tr>
																	<td colspan=2><img width=100% class=SnRSpacer></td>
																</tr>
															</table>
																<%
																	} // for
																}// if (wordSearchActivityForm.getDefinitionType() == WordSearchActivityForm._IMAGE)
																// TEXTO
																else if (wordSearchActivityForm.getDefinitionType() == WordSearchActivityForm._TEXT) {
																	java.util.HashMap clues =	wordSearchActivityForm.getTxtClues();
																%>
															<table border=0 cellpadding=0 cellspacing=0 width=100%>
																<tr>
																	<td class=SnRFormTABLE colspan=4><bean:message bundle="activitiesResources" key="wordSearch.clues.text"/></td>
																</tr>
																<tr>
																	<td class=SnRSeparadorInterno><img class=SnRColumn1></td>
																	<td class=SnRSeparadorInterno colspan=3><img style=height:1px;visibility:hidden></td>
																</tr>
															</table>
															<%
																	for (int i = 0, l = list.length; i < l; i++) {
																		String word = list[i];
															%>
															<table border=0 cellpadding=0 cellspacing=0 width=100%>
																<tr>
																	<td><img class=SnRColumn1></td>
																	<td colspan=8><img class=SnRSpacer></td>
																</tr>
																<tr>
																	<td>&nbsp;</td>
																	<td colspan=8><%=word%></td>
																</tr>
																<tr style="vertical-align:bottom">
																	<td height=20>&nbsp;</td>
																	<td>
																		<input type=text name=clue id=<%=i%> size=55 class=SnRInput tabindex=1 value="<% String clue = (String)clues.get(new Integer(i)); out.print(clue != null ? clue : "");%>" onselect="testNavigator(event,'<%=i%>');" onmousedown="gestionaEtiquetas('reset','','');" onchange="doChange()">
																	</td>
																	<td><img style=visibility:hidden;width:5px></td>
																	<td class=SnRCeldaLink align=left>
																		<table id="guardar" border="0" cellpadding="0" cellspacing="0">
																			<tr>
																				<td id="guardarLeftTop" class="SnRLeftTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																				<td id="guardarCenterTop" class="SnRCenterTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="guardarRightTop" class="SnRRightTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																			</tr>
																			<tr>
																				<td id="guardarLeftMiddle" class="SnRLeftMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="guardarCenterMiddle" class="SnRCenterMiddle"><a href="javascript:void(0);" onClick="gestionaEtiquetas('aniade','<%=i%>','b');"><b><bean:message bundle="activitiesResources" key="global.bold"/></b></a></td>
																				<td id="guardarRightMiddle" class="SnRRightMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																			</tr>
																			<tr>
																				<td id="guardarLeftBottom" class="SnRLeftBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																				<td id="guardarCenterBottom" class="SnRCenterBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="guardarRightBottom" class="SnRRightBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																			</tr>
																		</table>
																	</td>
																	<td><img style=visibility:hidden;width:5px></td>
																	<td class=SnRCeldaLink style=text-align:left;>
																		<table id="guardar" border="0" cellpadding="0" cellspacing="0">
																			<tr>
																				<td id="guardarLeftTop" class="SnRLeftTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																				<td id="guardarCenterTop" class="SnRCenterTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="guardarRightTop" class="SnRRightTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																			</tr>
																			<tr>
																				<td id="guardarLeftMiddle" class="SnRLeftMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="guardarCenterMiddle" class="SnRCenterMiddle"><a href="javascript:void(0);" onClick="gestionaEtiquetas('aniade','<%=i%>','i');"><i><bean:message bundle="activitiesResources" key="global.italics"/></i></a></td>
																				<td id="guardarRightMiddle" class="SnRRightMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																			</tr>
																			<tr>
																				<td id="guardarLeftBottom" class="SnRLeftBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																				<td id="guardarCenterBottom" class="SnRCenterBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="guardarRightBottom" class="SnRRightBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																			</tr>
																		</table>
																	</td>
																	<td><img style=visibility:hidden;width:5px></td>
																	<td class=SnRCeldaLink style=text-align:left;>
																		<table id="guardar" border="0" cellpadding="0" cellspacing="0">
																			<tr>
																				<td id="guardarLeftTop" class="SnRLeftTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																				<td id="guardarCenterTop" class="SnRCenterTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="guardarRightTop" class="SnRRightTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																			</tr>
																			<tr>
																				<td id="guardarLeftMiddle" class="SnRLeftMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="guardarCenterMiddle" class="SnRCenterMiddle"><a href="javascript:void(0);" onClick="gestionaEtiquetas('aniade','<%=i%>','u');"><u><bean:message bundle="activitiesResources" key="global.underline"/></u></a></td>
																				<td id="guardarRightMiddle" class="SnRRightMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																			</tr>
																			<tr>
																				<td id="guardarLeftBottom" class="SnRLeftBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																				<td id="guardarCenterBottom" class="SnRCenterBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="guardarRightBottom" class="SnRRightBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																			</tr>
																		</table>
																	</td>
                 															<td><img style=visibility:hidden;width:20px></td>
																</tr>
																<tr>
																	<td colspan=9><img class=SnRSpacer></td>
																</tr>
															</table>
															<%
																	}//for
																}// else if (wordSearchActivityForm.getDefinitionType() == WordSearchActivityForm._TEXT)
																// PALABRA
																else if (wordSearchActivityForm.getDefinitionType() == WordSearchActivityForm._WORD) {
																%>
															<table border=0 cellpadding=0 cellspacing=0 width=100%>
																<tr>
																	<td class=SnRFormTABLE colspan=4><bean:message bundle="activitiesResources" key="wordSearch.clues.word"/></td>
																</tr>
																<tr>
																	<td class=SnRSeparadorInterno><img class=SnRColumn1></td>
																	<td class=SnRSeparadorInterno colspan=3><img style=height:1px;visibility:hidden></td>
																</tr>
															</table>
															<table border=0 cellpadding=0 cellspacing=0 width=100%>
																<tr>
																	<td colspan=4><img class=SnRSpacer></td>
																</tr>
																<%
																	for (int i = 0, l = list.length; i < l; i++) {
																		String word = list[i];
																	%>
																<tr>
																	<td>&nbsp;</td>
																	<td colspan=2><%=word%></td>
																	<td>&nbsp;</td>
																</tr>
																	<%
																	}//for
																	%>
																<tr>
																	<td colspan=4><img class=SnRSpacer></td>
																</tr>
															</table>
															<%
																}//	else if (wordSearchActivityForm.getDefinitionType() == WordSearchActivityForm._WORD)
																// GENERAL
																else {
															%>
															<table border=0 cellpadding=0 cellspacing=0 width=100%>
																<tr>
																	<td class=SnRFormTABLE colspan=4><bean:message bundle="activitiesResources" key="wordSearch.clues.generic"/></td>
																</tr>
																<tr>
																	<td class=SnRSeparadorInterno><img class=SnRColumn1></td>
																	<td class=SnRSeparadorInterno colspan=3><img style=height:1px;visibility:hidden></td>
																</tr>
															</table>
															<table border=0 cellpadding=0 cellspacing=0 width=100%>
																<tr>
																	<td colspan=4><img class=SnRSpacer></td>
																</tr>
																<tr>
																	<td>&nbsp;</td>
																	<td colspan=2><bean:message bundle="activitiesResources" key="wordSearch.message.wording"/>:</td>
																	<td>&nbsp;</td>
																</tr>
																<tr>
																	<td>&nbsp;</td>
																	<td colspan=2><%=wordSearchActivityForm.getActivityWording()%></td>
																	<td>&nbsp;</td>
																</tr>
																<tr>
																	<td colspan=4><img class=SnRSpacer></td>
																</tr>
															</table>
																<%
																}
																%>
														</td>
													</tr>
													<tr>
														<td colspan=2 class=SnRBoxContent valign=bottom>
															<table cellpadding=0 cellspacing=0 border=0 width=100%>
																<tr>
																	<td class=SnRCeldaLink nowrap align=left valign=bottom>
																		<img src="<template:link bundle="rcPaths" key="paging.back.on"/>">
																		<a class="SnRStepNavLink" href="javascript:sendAction('wordSearchActivityForm','back')" ><bean:message bundle="activitiesResources" key="global.previous"/></a>
																	</td>
																	<td width=100%><img class=SnRSpacer></td>
																	<td height=28 class=SnRCeldaLink nowrap align=right valign=bottom>
																		<table id="guardar" border="0" cellpadding="0" cellspacing="0">
																			<tr>
																				<td id="guardarLeftTop" class="SnRLeftTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																				<td id="guardarCenterTop" class="SnRCenterTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="guardarRightTop" class="SnRRightTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																			</tr>
																			<tr>
																				<td id="guardarLeftMiddle" class="SnRLeftMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="guardarCenterMiddle" class="SnRCenterMiddle" nowrap><span id="guardarText" class="SnREnabledText" onclick="sendAction('wordSearchActivityForm','saveConfiguration')"><bean:message bundle="activitiesResources" key="wordSearch.save"/></span></td>
																				<td id="guardarRightMiddle" class="SnRRightMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																			</tr>
																			<tr>
																				<td id="guardarLeftBottom" class="SnRLeftBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																				<td id="guardarCenterBottom" class="SnRCenterBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
																				<td id="guardarRightBottom" class="SnRRightBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
																			</tr>
																		</table>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</div>
								<%
								}// Fin segundo paso del asistente
								%>
							</div>
							<!-- fin de config. actividad -->
							<!-- Tab de ejemplo -->
							<div id="tabs0tab3" style="display:none;">
								<table cellpadding=0 cellspacing=0 border=0 width=100%>
									<tr>
										<td class=SnRFormTABLE><bean:message bundle="activitiesResources" key="global.example"/></td>
									</tr>
									<tr>
										<td class=SnRSeparadorInterno><img width=1 height=1></td>
									</tr>
									<tr>
										<td><img class=SnRSpacer></td>
									</tr>
									<tr>
										<td>
										<% if (wordSearchActivityForm.getExample() != null) { %>
											<bean:message bundle="activitiesResources" key="global.example.generated"/>
										<% } else {%>
											<bean:message bundle="activitiesResources" key="global.example.explanation"/>
										<% } %>
										</td>
									</tr>
									<tr>
										<td><img class=SnRSpacer></td>
									</tr>
									<tr>
										<td align=left>
											<table id="ejemText" border="0" cellpadding="0" cellspacing="0">
												<tr>
													<td id="ejemLeftTop" class="<%=!wordSearchActivityForm.isFromBlank() ? "SnRLeftTop" : "SnRLeftTopDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
													<td id="ejemCenterTop" class="<%=!wordSearchActivityForm.isFromBlank() ? "SnRCenterTop" : "SnRCenterTopDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
													<td id="ejemRightTop" class="<%=!wordSearchActivityForm.isFromBlank() ? "SnRRightTop" : "SnRRightTopDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
												</tr>
												<tr>
													<td id="ejemLeftMiddle" class="<%=!wordSearchActivityForm.isFromBlank() ? "SnRLeftMiddle" : "SnRLeftMiddleDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
													<td id="ejemCenterMiddle" class="<%=!wordSearchActivityForm.isFromBlank() ? "SnRCenterMiddle" : "SnRCenterMiddleDisabled" %>" nowrap><span id="ejem" <%=!wordSearchActivityForm.isFromBlank() ? "onclick=\"sendAction('wordSearchActivityForm', 'example')\" class=\"SnREnabledText\"" : "class=\"SnRDisabledText\" style=\"cursor:default\"" %>><bean:message bundle="activitiesResources" key="global.generate.example"/></span></td>
													<td id="ejemRightMiddle" class="<%=!wordSearchActivityForm.isFromBlank() ? "SnRRightMiddle" : "SnRRightMiddleDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
												</tr>
												<tr>
													<td id="ejemLeftBottom" class="<%=!wordSearchActivityForm.isFromBlank() ? "SnRLeftBottom" : "SnRLeftBottomDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
													<td id="ejemCenterBottom" class="<%=!wordSearchActivityForm.isFromBlank() ? "SnRCenterBottom" : "SnRCenterBottomDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
													<td id="ejemRightBottom" class="<%=!wordSearchActivityForm.isFromBlank() ? "SnRRightBottom" : "SnRRightBottomDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</div>
        					</td>
					</tr>
    					<tr>
    						<td>
							<table border=0 cellpadding=0 cellspacing=0 width=609>
								<tr>
									<td><img width=1 height=15></td>
								</tr>
							</table>
							<!--pie-->
							<table border=0 cellpadding=0 cellspacing=0 width=609>
								<tr>
        								<td class=SnRSeparador><img width=1 height=1></td>
								</tr>
								<tr>
        								<td><img width=1 height=10></td>
								</tr>
							</table>
							<table cellpadding=0 cellspacing=0 width=609 border=0>
							<%
							// Pie
							boolean enabled=!wordSearchActivityForm.isFromBlank() && request.getAttribute(SessionKeys._SAVED).equals(SessionKeys.TRUE_STRING);
							%>

        							<tr>
									<td width="100%" align="left">
										<table id="add" border="0" cellpadding="0" cellspacing="0" <%=(enabled) ? "onClick=\"sendAction('wordSearchActivityForm', 'standalone')\"" : ""%>>
											<tr>
												<td class="<%=(enabled) ? "SnRLeftTop" : "SnRLeftTopDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
												<td class="<%=(enabled) ? "SnRCenterTop" : "SnRCenterTopDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
												<td class="<%=(enabled) ? "SnRRightTop" : "SnRRightTopDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
											</tr>
											<tr>
												<td class="<%=(enabled) ? "SnRLeftMiddle" : "SnRLeftMiddleDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
												<td class="<%=(enabled) ? "SnRCenterMiddle" : "SnRCenterMiddleDisabled" %>"><span class="<%=(enabled) ? "SnREnabledText" : "SnRDisabledText" %>"><bean:message bundle="activitiesResources" key="global.preview"/></span></td>
												<td class="<%=(enabled) ? "SnRRightMiddle" : "SnRRightMiddleDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
											</tr>
											<tr>
												<td class="<%=(enabled) ? "SnRLeftBottom" : "SnRLeftBottomDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
												<td class="<%=(enabled) ? "SnRCenterBottom" : "SnRCenterBottomDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
												<td class="<%=(enabled) ? "SnRRightBottom" : "SnRRightBottomDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
											</tr>
										</table>
									</td>
									<td>
										<table id="add" border="0" cellpadding="0" cellspacing="0" onClick="backMethod()">
											<tr>
												<td class="SnRLeftTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
												<td class="SnRCenterTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
												<td class="SnRRightTop"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
											</tr>
											<tr>
												<td class="SnRLeftMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
												<td class="SnRCenterMiddle"><span class="SnREnabledText"><bean:message bundle="activitiesResources" key="global.cancel"/></span></td>
												<td class="SnRRightMiddle"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
											</tr>
											<tr>
												<td class="SnRLeftBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
												<td class="SnRCenterBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
												<td class="SnRRightBottom"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
											</tr>
										</table>
									</td>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
									<td>
										<% if (reinforcementActivity){
										%>
										<table id="fin" border="0" cellpadding="0" cellspacing="0" <%=(enabled) ? "onClick=\"saveActivity('wordSearchActivityForm', 'finishReinforcement')\"" : ""%> >
										<%}
										else{
										%>
										<table id="fin" border="0" cellpadding="0" cellspacing="0" <%=(enabled) ? "onClick=\"saveActivity('wordSearchActivityForm', 'finish')\"" : ""%> >
										<%}%>

											<tr>
												<td class="<%=(enabled) ? "SnRLeftTop" : "SnRLeftTopDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
												<td class="<%=(enabled) ? "SnRCenterTop" : "SnRCenterTopDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
												<td class="<%=(enabled) ? "SnRRightTop" : "SnRRightTopDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
											</tr>
											<tr>
												<td class="<%=(enabled) ? "SnRLeftMiddle" : "SnRLeftMiddleDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
												<td class="<%=(enabled) ? "SnRCenterMiddle" : "SnRCenterMiddleDisabled" %>"><span id="buttonSpan" class="<%=(enabled) ? "SnREnabledText" : "SnRDisabledText" %>"><bean:message bundle="activitiesResources" key="global.save"/></span></td>
												<td class="<%=(enabled) ? "SnRRightMiddle" : "SnRRightMiddleDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
											</tr>
											<tr>
												<td class="<%=(enabled) ? "SnRLeftBottom" : "SnRLeftBottomDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
												<td class="<%=(enabled) ? "SnRCenterBottom" : "SnRCenterBottomDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="1" height="1"></td>
												<td class="<%=(enabled) ? "SnRRightBottom" : "SnRRightBottomDisabled" %>"><img src="<template:link bundle="activitiesPaths" key="global.empty"/>" width="9" height="4"></td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
        						<!--fin pie-->
        					</td>
					</tr>
				</table>
    			</td>
		</tr>
	</table>
</html:form>
<html:form action="/bookActivitiesListManager?method=recoverList" method="POST" enctype="multipart/form-data" styleId="cancelForm">
</html:form>
<html:form action="/reinforcementActivitiesListManager?method=recoverList" method="POST" enctype="multipart/form-data" styleId="cancelToReinforcementForm">
</html:form>
<script>
	checkOnLoad('wordSearchActivityForm','wordSearch');
	changeEnabled=<%=request.getAttribute(SessionKeys._SAVED)%>;
</script>
</template:put>
</template:content>