function HelpMsg(){
	this.label=new Array();
	this.defaultLanguage = null;
	this.winDef=null;
	if (typeof(_bHelpMsgPrototypeCalled) == 'undefined')
		initHelpMsg();
}

new HelpMsg();
function initHelpMsg() {
	_bHelpMsgPrototypeCalled=true;
	HelpMsg.prototype.init=MsgInit;
	HelpMsg.prototype.add=MsgAdd;
	HelpMsg.prototype.translate=MsgTranslate;
	HelpMsg.prototype.setName=MsgSetName;
	HelpMsg.prototype.get=MsgGet;
	HelpMsg.prototype.getName=MsgGetName;
	HelpMsg.prototype.getHelp=MsgGetHelp;
	HelpMsg.prototype.setLanguage=MsgSetLanguage;
	HelpMsg.prototype.getWidth=MsgGetWidth;
	HelpMsg.prototype.getHeigth=MsgGetHeigth;
	HelpMsg.prototype.setSize=MsgSetSize;
	HelpMsg.prototype.close=MsgSetClose;
}

function MsgGetHelp(id,evnt){
	style='../../../../English/SHA/CoreData/Tabulator/scripts/CoreData.css'
	this.winDef=new windowMsg('winDef2',style,this.getWidth(id),this.getHeigth(id));
	this.winDef.setTitle(this.getName(id));
	str=this.winDef.setHTML(this.get(id),evnt);
	eval(str);
}
function MsgSetClose() {
	win="winDef2.close()";
	eval(win);
}
function MsgGetWidth(msg){
	return(this.label[msg].width);
}

function MsgGetHeigth(msg){
	return(this.label[msg].heigth);
}

function MsgSetSize(msg,width,heigth){
	this.label[msg]["width"]=width;
	this.label[msg]["heigth"]=heigth;
}

function MsgAdd(msg){
	this.label[msg]=new Array();
}

function MsgSetName(msg,language,name) {
	if (this.label[msg]["name"]==null)
		this.label[msg]["name"]=new Array();
	this.label[msg]["name"][language]=name;
}

function MsgTranslate(msg,language,translation) {
	this.label[msg][language]=translation;
}

function MsgGetName(msg) {
	if (this.label[msg]!=null)
		return(this.label[msg]["name"][this.defaultLanguage])
	else
		return("")
}

function MsgGet(msg) {
	if (this.label[msg]!=null)
		return(this.label[msg][this.defaultLanguage])
	else
		return("")
}

function MsgSetLanguage(language) {
	this.defaultLanguage=language;
}

function MsgInit(){
	this.add("dimension");
	this.setSize("dimension",300,150);
	this.setName("dimension","Eng","HELP for Dimension");
	this.setName("dimension","Spa","AYUDAS para Dimensión");
	this.translate("dimension","Eng","It indicates the type of reference measurement that will be used to generate the values of the table, the dimensions in this system are: TIME measured in years, INDICATOR measured with the Core Data indicators, and PLACE/GEOGRAPHIC UNIT measured by country");
	this.translate("dimension","Spa","Indica el tipo de medida de referencia que se usará para generar los valores de la tabla, las dimensiones en este sistema son: TIEMPO medido en años, INDICADOR medido con los diversos indicadores de Datos Básicos y LUGAR/UNIDAD GEOGRÄFICA medido por país");
	this.add("variables");
	this.setSize("variables",200,100);
	this.setName("variables","Eng","HELP for Variables");
	this.setName("variables","Spa","AYUDAS para Variables");
	this.translate("variables","Eng","They are the values that took the DIMENSIONS in the table result and which they define the consultation");
	this.translate("variables","Spa","Son los valores que tomaran las DIMENSIONES en la tabla resultado y que definen la consulta");
	this.add("roles");
	this.setSize("roles",250,120);
	this.setName("roles","Eng","HELP for Roles");
	this.setName("roles","Spa","AYUDAS para Roles");
	this.translate("roles","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("roles","Spa","Es el rol que tendrá la dimensión en la tabla resultado. Los roles son: FIJO que indica un sólo valor y será la referencia para las otras dos dimensiones, FILAS y COLUMNAS");	
	this.add("roleFixedYear");
	this.setSize("roleFixedYear",350,250);
	this.setName("roleFixedYear","Eng","HELP for the Fixed Role for the Dimension YEAR");
	this.setName("roleFixedYear","Spa","AYUDAS para el Rol Fijo en la Dimensión AÑO");
	this.translate("roleFixedYear","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("roleFixedYear","Spa",'Seleccione este rol para indicar que el año tendrá un sólo valor (por ejemplo: <em>1999</em>, cuando se este interesado en este año específico) y será este la referencia para la tabulación cruzada de los valores de las otras dos dimensiones (indicadores y países). Use este rol cuando desee obtener información por ejemplo de un año específico o el último año disponible para un grupo de indicadores y para un grupo de países determinados. Al generarse la tabla resultado, la dimensión año tendrá un menú en el que se puede cambiar el valor del año para revisar otros manteniendo fijos los valores de las otras dos dimensiones (indicadores y países).');
	this.add("roleRowsYear");
	this.setSize("roleRowsYear",300,240);
	this.setName("roleRowsYear","Eng","HELP for the Rows Role for the Dimension YEAR");
	this.setName("roleRowsYear","Spa","AYUDAS para el Rol Filas en la Dimensión AÑO");
	this.translate("roleRowsYear","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("roleRowsYear","Spa",'Seleccione este rol para indicar que los años seleccionados serán las filas de la tabulación cruzada con referencia a la dimensión que este fija (indicador o país). Las filas pueden ser un sólo año a todos los años disponibles. Cuando se selecciona el <em>último año disponible</em> este no puede ser combinado con otros años para las filas');
	this.add("roleColsYear");
	this.setSize("roleColsYear",280,200);
	this.setName("roleColsYear","Eng","HELP for the Columns Role for the Dimension YEAR");
	this.setName("roleColsYear","Spa","AYUDAS para el Rol Columnas en la Dimensión AÑO");
	this.translate("roleColsYear","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("roleColsYear","Spa",'Seleccione este rol para indicar que los años seleccionados serán las columnas de la tabulación cruzada con referencia a la dimensión que este fija (indicador o país). Las columnas pueden ser un sólo año a todos los años disponibles. Cuando se selecciona el <em>último año disponible</em> este no puede ser combinado con otros años para las columnas');
	this.add("roleFixedIndicator");
	this.setSize("roleFixedIndicator",550,320);
	this.setName("roleFixedIndicator","Eng","HELP for the Fixed Role with the Dimension INDICATOR");
	this.setName("roleFixedIndicator","Spa","AYUDAS para el Rol Fijo con la Dimensión INDICADOR");
	this.translate("roleFixedIndicator","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("roleFixedIndicator","Spa",'Seleccione este rol para indicar que el indicador tendrá un sólo valor (por ejemplo: <em>A.1 Población (Total)</em>, cuando se este interesado en este indicador específico) y será este la referencia para la tabulación cruzada de los valores de las otras dos dimensiones (años y países). Use este rol cuando desee obtener información por ejemplo de un indicador específico (esto incluye su desagregación por lo que solo una de las desagregaciones -<em>total, hombres, mujeres</em>- puede estar seleccionada) para un grupo de años y países específicos. Al generarse la tabla resultado, la dimensión indicador tendrá un menú en el que se puede cambiar el valor del año para revisar otros manteniendo fijos los valores de las otras dos dimensiones (años y países).');
	this.add("roleRowsIndicator");
	this.setSize("roleRowsIndicator",550,280);
	this.setName("roleRowsIndicator","Eng","HELP for the Rows Role with the Dimension INDICATOR");
	this.setName("roleRowsIndicator","Spa","AYUDAS para el Rol Filas con la Dimensión INDICADOR");
	this.translate("roleRowsIndicator","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("roleRowsIndicator","Spa",'Seleccione este rol para indicar que los años seleccionados serán las filas de la tabulación cruzada con referencia a la dimensión que este fija (indicador o país). Las filas pueden ser un sólo año a todos los años disponibles. Cuando se selecciona el <em>último año disponible</em> este no puede ser combinado con otros años para las filas');
	this.add("roleColsIndicator");
	this.setSize("roleColsIndicator",550,280);
	this.setName("roleColsIndicator","Eng","HELP for the Columns Role with the Dimension INDICATOR");
	this.setName("roleColsIndicator","Spa","AYUDAS para el Rol Columnas con la Dimensión INDICADOR");
	this.translate("roleColsIndicator","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("roleColsIndicator","Spa",'Seleccione este rol para indicar que los años seleccionados serán las columnas de la tabulación cruzada con referencia a la dimensión que este fija (indicador o país). Las columnas pueden ser un sólo año a todos los años disponibles. Cuando se selecciona el <em>último año disponible</em> este no puede ser combinado con otros años para las columnas');
	this.add("roleFixedCountry");
	this.setSize("roleFixedCountry",550,320);
	this.setName("roleFixedCountry","Eng","HELP for the Fixed Role with the Dimension YEAR");
	this.setName("roleFixedCountry","Spa","AYUDAS para el Rol Fijo con la Dimensión AÑO");
	this.translate("roleFixedCountry","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("roleFixedCountry","Spa",'Seleccione este rol para indicar que el año tendrá un sólo valor (por ejemplo: 1999, cuando se este interesado en este año específico) y será este la referencia para la tabulación cruzada de los valores de las otras dos dimensiones (indicadores y países). Use este rol cuando desee obtener información por ejemplo de un año específico o el último año disponible para un grupo de indicadores y para un grupo de países determinados. Al generarse la tabla resultado, la dimensión año tendrá un menú en el que se puede cambiar el valor del año para revisar otros manteniendo fijos los valores de las otras dos dimensiones (indicadores y países).');
	this.add("roleRowsCountry");
	this.setSize("roleRowsCountry",550,280);
	this.setName("roleRowsCountry","Eng","HELP for the Rows Role with the Dimension YEAR");
	this.setName("roleRowsCountry","Spa","AYUDAS para el Rol Filas con la Dimensión AÑO");
	this.translate("roleRowsCountry","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("roleRowsCountry","Spa",'Seleccione este rol para indicar que los años seleccionados serán las filas de la tabulación cruzada con referencia a la dimensión que este fija (indicador o país). Las filas pueden ser un sólo año a todos los años disponibles. Cuando se selecciona el <em>último año disponible</em> este no puede ser combinado con otros años para las filas');
	this.add("roleColsCountry");
	this.setSize("roleColsCountry",550,280);
	this.setName("roleColsCountry","Eng","HELP for the Columns Role with the Dimension YEAR");
	this.setName("roleColsCountry","Spa","AYUDAS para el Rol Columnas con la Dimensión AÑO");
	this.translate("roleColsCountry","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("roleColsCountry","Spa",'Seleccione este rol para indicar que los años seleccionados serán las columnas de la tabulación cruzada con referencia a la dimensión que este fija (indicador o país). Las columnas pueden ser un sólo año a todos los años disponibles. Cuando se selecciona el <em>último año disponible</em> este no puede ser combinado con otros años para las columnas');
	this.add("time");
	this.setSize("time",250,250);
	this.setName("time","Eng","HELP for the Time Dimension");
	this.setName("time","Spa","AYUDAS para la Dimensión Tiempo");
	this.translate("time","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("time","Spa","La <EM>dimensión</EM> <STRONG>Tiempo</STRONG> puede tener como valor el <EM>último año disponible</EM> para la combinación de dimensiones <EM>indicador(es)-País(es)</EM> o un <EM>año&nbsp;específico</EM> (<EM>por ejemplo</EM>: <STRONG>1999</STRONG>). En el caso que se prentada usar estos datos para&nbsp;<EM>análisis de tendencia</EM> en el que se incluirán varios años, no es posible incluir como valor al último disponible junto con uno o más años específicos.");
	this.add("indicator");
	this.setSize("indicator",350,300);
	this.setName("indicator","Eng","HELP for the Indicator Dimension");
	this.setName("indicator","Spa","AYUDAS para la Dimensión Indicador");
	this.translate("indicator","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("indicator","Spa","La <EM>dimensión</EM> <STRONG>Indicador</STRONG> está agrupada por cinco grupos de indicadores:<br>&nbsp; A. Demográficos,<br>&nbsp; B. Socioeconómicos,<br>&nbsp; C. Mortalidad,<br>&nbsp; D. Morbilidad y factores de riesgo,<br>&nbsp; E. Recursos, servicios y cobertura).<br>Los <EM>indicadores</EM> pueden tener diferentes <STRONG>desagregaciones</STRONG> basadas en <EM>categorías</EM> como sexo, grupo de edad, etc.) las cajas de opción que se encuentran abajo del menú de indicadores permiten indicar que desagregaciones se desean obtener en la tabulación cruzada resultante, sólo se incluirán las desagregaciones que estén disponibles para los indicadores seleccionados.");
	this.add("country");
	this.setSize("country",400,330);
	this.setName("country","Eng","HELP for the Indicator Dimension");
	this.setName("country","Spa","AYUDAS para la Dimensión Indicador");
	this.translate("country","Eng","It is the roll that will have the dimension in the table result. The rolls are: FIXED that indicates only a value and it will be the reference para las other two dimensions, ROWS and COLUMNS");
	this.translate("country","Spa","La <EM>dimensión</EM> <STRONG>Lugar/Unidad Geográfica</STRONG> se pueden seleccionar por <STRONG>modo de Países</STRONG> o por <STRONG>modo de Subregiones</STRONG> . Las <EM>subregiones</EM> son las definidas por la Organización Panamericana de la Salud (OPS). Cuando se selecciona una <EM>subregión</EM> automáticamente el sistema añade a la consulta la lista de <EM>todos los países</EM> que conforman la subregión. Se puede seleccionar <EM>más de una subregión</EM> cuando esto se hace el sistema incluirá todos los países que estén en las subregiones seleccionadas. El modo de selección de subregiones y el de países <EM>no pueden ser combinados</EM>, es decir, usted no puede seleccionar una subregión en el modo de subregiones y después cambiar al modo de países y seleccionar países pretendiendo que el resultado final incluya la subregión y los países seleccionados. Cuando esta dimensión tiene el rol de dimensión <STRONG>Fija</STRONG> sólo se debe seleccionar un país (el que sea de interés) para que se genere la tabulación cruzada, si usted selecciona una subregión sólo el primer país en orden alfabético será incluido en la consulta.");
}
