// aimsResource.js
/*
*  JavaScript resource file for ArcIMS HTML Viewer
*		arrays containing display text
* 		This file can be swapped out with appropriate language translation
*/

var msgList = new Array();
var unitList = new Array();
var sUnitList = new Array();
var modeList = new Array();
var titleList = new Array();
var buttonList = new Array();
	
	// ArcIMSparam.js - msgList
msgList[0] = "Unable to load one of the following Javascript Libraries:\naimsCommon.js\naimsXML.js\naimsMap.js";
	// aimsCommon.js - msgList
msgList[1] = "No existe requerimiento para el límite de la extensión";
msgList[2] = "No es posible iniciar. Se requiere de una forma HTML que no se encuentra (jsForm.htm).";
msgList[3] = "Extensión actual:\nLeft ";
msgList[4] = "\nBottom: ";
msgList[5] = "\nRight: ";
msgList[6] = "\nTop: ";
msgList[7] = "\n\nRadio para la extensión total: ";
	// aimsXML.js - msgList
msgList[8] = "Nombre del servicio: ";
msgList[9] = "\nRequerimiento de ArcXML:\n ";
msgList[10] = "No se ha recibido respuesta al requerimiento anterior";
msgList[11] = "No se ha encontrado la forma para publicar. No es posible comunicarse con el servidor.";
msgList[12] = "Enviando:\n\n";
msgList[13] = "Respuesta de ArcXML:\n ";
msgList[14] = "No es posible desplegar el servicio de mapa\n";
msgList[15] = "No es posible enviar el requerimiento";
msgList[16] = "No es posible desplegar el mapa de referencia\n";
msgList[17] = "No es posible poner los parámetros";
msgList[18] = "No es posible obtener la imagen para la posición seleccionada.";
msgList[19] = "\nNo es posible ejecutar la respuesta.";
	// aimsLayers.js - msgList
msgList[20] = " es ahora la capa activa";
msgList[21] = "No es posible obtener los nombres de campo.\nNo es posible realizar consultas sobre esta capa.";
msgList[22] = "Nombre:";
msgList[23] = "Identificación:";
msgList[24] = "Tipo:";
msgList[25] = "Extensión:";
msgList[26] = "Escala mínima de despliegue:";
msgList[27] = "Escala máxima de despliegue:";
msgList[28] = "Campos:";
msgList[29] = "Tamaño:";
msgList[30] = "Precisión:";
msgList[31] = "Desconocido";
msgList[32] = "Cadena";
msgList[33] = "Id";
msgList[34] = "Shape";
msgList[35] = "Entero";
msgList[36] = "Doble";
msgList[37] = "Boleano";
msgList[38] = "Flotante";
msgList[39] = "Entero pequeño (1 byte)";
msgList[40] = "BLOB";
msgList[41] = "Fecha";
msgList[42] = "Ninguno";
msgList[43] = "Corresponde a dirección";
msgList[44] = "No";
	// aimsDHTML.js - msgList
msgList[45] = "Debe ser cargado un servicio de mapas";
	// aimsClick.js - msgList
msgList[46] = "No puede consultar el servicio de mapas\nLas funciones de Identificar, Seleccionar, y consultar no estan disponibles.";
msgList[47] = "Esta capa no tiene hipervínculos.";
msgList[48] = "No existen características seleccionas para generar área de influencia.";
msgList[49] = "El modo de buffer no se encuentra activo.";
msgList[50] = "La librería de leyendas no ha sido cargada.";
msgList[51] = "Esta funcion no esta disponible.";
	// aimsNavigation.js - msgList
msgList[52] = "Proyección: CCL -- Mapa: ";
msgList[53] = "Imagen: ";
msgList[54] = "Factor de escala: ";
	// aimsCustom.js - msgList
msgList[55] = "Modo desconocido:";
msgList[56] = "\nNo es posible ejecutar el requerimiento.";
	// aimsGeocode.js - msgList
msgList[57] = "Recultados de localización";
msgList[58] = "Dirección";
msgList[59] = "Marcador";
msgList[60] = "No es posible localizar la dirección solicitada";
	// aimsIdentify.js - msgList
msgList[61] = "Previo ";
msgList[62] = " Registros";
msgList[63] = "Mas registros";
msgList[64] = "Características no encontradas.";
msgList[65] = "Respuesta de ArcXML:";
msgList[66] = "Servicio requerido:";
msgList[67] = "Hipervínculo a ";
msgList[68] = "No es posible realizar hipervínculos para la solicitud requerida.";
msgList[69] = "No es posible realizar hipervínculo.";
	// aimsSelect.js - msgList
msgList[70] = "Los totales calculados han sido eliminados.";
msgList[71] = "La selección ha sido anulada.";
	// aimsQuery.js - msgList
msgList[72] = "Campo";
msgList[73] = "Operador";
msgList[74] = "Valores de muestra requeridos para la capa ";
msgList[75] = "El primero ";
msgList[76] = " Los registros están siendo accesados. Puede haber valores duplicados.";
msgList[77] = ":\nEsta capa no cuenta con consultas almacenadas.";
msgList[78] = "Busqueda";
msgList[79] = "La búsqueda es sensible a mayúsculas y minúsculas";
msgList[80] = "No es posible construir el requerimiento de consulta.";
	// aimsBuffer.js - msgList
msgList[81] = "La distancia debe ser al menos cero.\\nTodos los números menores que cero, ponerlos a cero.";
msgList[82] = "Resaltar características de ";
msgList[83] = " comprendidos en una distancia de&nbsp;";
msgList[84] = " alrededor de las características seleccionadas de ";
msgList[85] = "Displegar atributos";
msgList[86] = "Reg";
	// addmatch.htm - msgList
msgList[87] = "No es capa";
msgList[88] = "Capa";
msgList[89] = "Por favor introduzca un texco";
msgList[90] = "Introduzca el texto a buscar ";
msgList[91] = "Cancelado.";
//msgList[92] = "Encontrar texto";
msgList[92] = "Buscar";
// select.htm - msgList
msgList[93] = "Se requiere un mínimo de dos puntos.";
msgList[94] = "Se requiere un mínimo de tres puntos.";
msgList[95] = "Seleccionar con línea o poligono";
	// printForm.htm
msgList[96] = "Oprima en el boton \"Crear página de impresión\" para abrir una nueva ventana con la imágen del mapa,";
msgList[97] = "el mapa de referencia, y la leyenda que corresponde a la información desplegada. Entonces, haciendo uso de la opción de impresión del menú";
msgList[98] = "enviará la información a la impresora.";
msgList[99] = "Por favor introduzca un texto";
msgList[100] = "Los modúlos disponibles en este sistema de consulta hacen uso intensivo del JavaScript <br> y requiere una versión 4 o superior de su navegador.<br>Internet Explorer no es soportado en Machintosh."; // default.htm
msgList[101] = " no es visible debido a que la escala y las características no pueden ser seleccionadas.\n\nAcerquese mas, hasta que la capa sea visible.\n\n";
msgList[102] = " no es visible y las características no pueden ser seleccionadas.\n\nSeleccione la capa como visible ";
msgList[103] = "Seleccione las capas que desee ver y oprima Regenerar mapa.";
msgList[104] = "La capa activa ";
msgList[105] = "Se requiere de al menos un punto";
msgList[106] = "Forma del buffer";
msgList[107] = "Tamaño del buffer:";
msgList[108] = " y oprima Regenerar mapa.";
msgList[109] = "Hace falta un operador en la consulta";
msgList[110] = "La expresión para consulta está en blanco.\nNinguna característica ha sido seleccionada.";
msgList[111] = "No hay capas visibles.";
msgList[112] = "No se encontraron características para desplegar donde usted realizó el click sobre la pantalla.";
msgList[113] = "Procesando. . .";
msgList[114] = "No hay hipervínculos definidos para las capas visibles.";
msgList[115] = "No hay hipervínculos definidos.";
msgList[116] = "No hay hipervínculos definidos para las capas visibles donde usted realizón el click sobre la pantalla";
msgList[117] = "Recuperando datos. . .";
msgList[118] = "Procesando. . .";
msgList[119] = "No está autorizado para realizar consultas en este servicio de mapas.";
msgList[120] = "Modo de depuración activado";
msgList[121] = "Modo de depuración desactivado";
msgList[122] = " los registros están siendo accesados. Los valores duplicados serán omitidos.";
msgList[123] = "";
msgList[124] = "";
msgList[125] = "";
msgList[126] = "";
msgList[127] = "";
msgList[128] = "";
msgList[129] = "";
msgList[130] = "";
/*
msgList[1] = "";
msgList[2] = "";
msgList[3] = "";
msgList[4] = "";
msgList[5] = "";
msgList[6] = "";
msgList[7] = "";
msgList[8] = "";
msgList[9] = "";
msgList[0] = "";
*/
unitList[0] = "GRADOS";
unitList[1] = "PIES";
unitList[2] = "MILLAS";
unitList[3] = "METROS";
unitList[4] = "KILOMETROS";

sUnitList[0] = "GRADOS";
sUnitList[1] = "PIES";
sUnitList[2] = "MILLAS";
//sUnitList[3] = "METROS";
sUnitList[3] = "metros";
sUnitList[4] = "KILOMETROS";

modeList[0] = "Acercar";
modeList[1] = "Alejar";
modeList[2] = "Desplazar";
modeList[3] = "Identificar";
modeList[4] = "Seleccionar Rectángulo";
modeList[5] = "Seleccionar Punto";
modeList[6] = "Seleccionar Línea";
modeList[7] = "Seleccionar Poligono";
modeList[8] = "Seleccionar Línea/Polígono";
modeList[9] = "Hypervínculo";
modeList[10] = "Seleccionar forma";
modeList[11] = "Forma de Buffer";
modeList[12] = "Medir";
modeList[13] = "Crear forma";
modeList[14] = "Localizar Direccion";
modeList[15] = "Consulta";
modeList[16] = "Busqueda";
modeList[17] = "Encontrar";
modeList[18] = "Buffer";
modeList[19] = "Identificar todo";
modeList[20] = "Caracteristicas visibles de identificacion";
modeList[21] = "Obtener direccion";

titleList[0] = "Visor HTML"; 
titleList[1] = "Capa activa actual";	// aimsLayers.js
titleList[2] = "Information de la capa";	
titleList[3] = "Leyenda";	// aimsLegend.js
titleList[4] = "Mi mapa"; // aimsPrint.js
titleList[5] = ":: INEGI :: Mapa Digital de Mexico :: INEGI ::";
titleList[6] = "Address Match Candidates";	// aimsGeocode.js
titleList[7] = "Resultados de la consulta/seleccion";	// aimsIdentify.js
titleList[8] = "Seleccionar Resultados";
titleList[9] = "Resultados del hipervínculo";
titleList[10] = "Resultados de Buffer";			// aimsBuffer.js
titleList[11] = "Correspondencia de Direcciones";			// aimsGeocode.js
titleList[12] = "Barra de herramientas";
titleList[13] = "Capas";
titleList[14] = " Visible ";
titleList[15] = " Activa ";
titleList[16] = "Desplegar unidades";			// setUnits.htm
titleList[17] = "Unidades de mapa";
titleList[18] = "Forma de impresion";				// printForm.htm
titleList[19] = "Titulo para desplegar en mapa:";
titleList[20] = "Mi mapa";
titleList[21] = "Imprimir mapa";
titleList[22] = "";;	
titleList[23] = "";
titleList[24] = "";
titleList[25] = "";
titleList[26] = "";
titleList[27] = "";
titleList[28] = "";
titleList[29] = "";
titleList[30] = "";
/*
titleList[0] = ""; 
titleList[1] = "";
titleList[2] = "";;	
titleList[3] = "";
titleList[4] = "";
titleList[5] = "";
titleList[6] = "";
titleList[7] = "";
titleList[8] = "";
titleList[9] = "";
*/

buttonList[0] = "Ocultar leyenda"; // aimsLegend.js
buttonList[1] = "Localizar otra direccion"; // aimsGeocode.js
buttonList[2] = "Valor";	// aimsQuery.js
buttonList[3] = "Valores de ejemplo";
buttonList[4] = "Obtener muestras";
buttonList[5] = "Agregar a query string";
buttonList[6] = "Ejecutar";
buttonList[7] = "Deshacer";
buttonList[8] = "Limpiar";
//buttonList[9] = "Crear Buffer";	// aimsBuffer.js
buttonList[9] = "Crear";	// aimsBuffer.js
buttonList[10] = "Si";
buttonList[11] = "No";
buttonList[12] = "Seleccionar capa";	// addmatch.htm
buttonList[13] = "Localizar";	
buttonList[14] = "Ver leyenda o capas";		// toolbar.htm
buttonList[15] = "Ver/ocultar mapa de referencia";
buttonList[16] = "Acercar";
buttonList[17] = "Alejar";
buttonList[18] = "Ver toda la Republica";
buttonList[19] = "Aceramiento a capa activa";
buttonList[20] = "Regresar a la vista anterior";
buttonList[21] = "Desplazar";
buttonList[22] = "Desplazar hacia el norte";	
buttonList[23] = "Desplazar hacia el sur";	
buttonList[24] = "Desplazar hacia el oeste";		
buttonList[25] = "Desplazar hacia el este";
buttonList[26] = "Hipervínculo";
buttonList[27] = "Identificar";
buttonList[28] = "Consultar";
buttonList[29] = "Buscar";
buttonList[30] = "Encontrar";
buttonList[31] = "Medir";
buttonList[32] = "Establecer unidades";	
buttonList[33] = "Buffer";	
buttonList[34] = "Seleccionar por rectangulo";		
buttonList[35] = "Seleccionar por línea/poligono";
buttonList[36] = "Limpiar seleccion";
buttonList[37] = "Localizar dirección";
buttonList[38] = "Imprimir";
buttonList[39] = "Extraer";
buttonList[40] = "Opciones";
buttonList[41] = "Cargar servicio de mapa";
buttonList[42] = "Ocultar la lista de capas";	// toc.htm
buttonList[43] = "Informacion";	
buttonList[44] = "Regenerar mapa";		
buttonList[45] = "    Reiniciar    "; // select.htm
buttonList[46] = " Borrar el último punto ";
buttonList[47] = "  Completar linea y seleccionar  ";
buttonList[48] = "Completar poligono y seleccionar";
buttonList[49] = "Cancelar"; // setUnits.htm
//buttonList[50] = "Crear pagina para impresion";  // printForm.htm
buttonList[50] = "Crear";  // printForm.htm
buttonList[51] = "Buffer de punto y seleccionar";
buttonList[52] = "Buffer de línea y seleccionar";	
buttonList[53] = "Completar poligo, buffer y seleccionar";	
buttonList[54] = "Usar punto para seleccionar";		
buttonList[55] = "Obtener direccion en un click";
buttonList[56] = "Encontrar ruta";
buttonList[57] = "";
buttonList[58] = "";
buttonList[59] = "";
buttonList[60] = "";
/*
buttonList[1] = "";
buttonList[2] = "";	
buttonList[3] = "";	
buttonList[4] = "";		
buttonList[5] = "";
buttonList[6] = "";
buttonList[7] = "";
buttonList[8] = "";
buttonList[9] = "";
buttonList[0] = "";
*/




function strFecha(){
	 var ahora = new Date();
	 var mes = ahora.getMonth()+1;
	 var dia = ahora.getDate();
	 var hora = ahora.getHours();
	 var minu = ahora.getMinutes();
	 var seg = ahora.getSeconds();
	 var mil = ahora.getMilliseconds();
	 var strMes = '';
	 var strDia = '';
	 var strHora = '';
	 var strMin = '';
	 var strSeg = '';
	 var strMil = '';
	 if (mes < 10){strMes = '0'+mes;}else{strMes = ''+mes;}
	 if (dia < 10){strDia = '0'+dia;}else{strDia = ''+dia;}
	 if (hora < 10){strHora = '0'+hora;}else{strHora = ''+hora;}
	 if (minu < 10){strMin = '0'+minu;}else{strMin = ''+minu;}
	 if (seg < 10){strSeg = '0'+seg;}else{strSeg = ''+seg;}
	 if (mil < 10){strMil = '0'+mil;}else{strMil = ''+mil;}
	 var strFecha = ahora.getFullYear()+strMes+strDia+strHora+strMin+strSeg+strMil;
	 return strFecha

}

function diferenciaFecha(strFechaA,strFechaB){
	var anoA =  strFechaA.substring(0,4);
	var mesA =  parseInt(strFechaA.substring(4,6))-1;
	var diaA =  strFechaA.substring(6,8);
	var horaA =  strFechaA.substring(8,10);
	var minA =  strFechaA.substring(10,12);
	var segA =  strFechaA.substring(12,14);
	var milA =  strFechaA.substring(14,19);
	
	var anoB =  strFechaB.substring(0,4);
	var mesB =  parseInt(strFechaB.substring(4,6))-1;
	var diaB =  strFechaB.substring(6,8);
	var horaB =  strFechaB.substring(8,10);
	var minB =  strFechaB.substring(10,12);
	var segB =  strFechaB.substring(12,14);
	var milB =  strFechaB.substring(14,19);
	
	
	fechaA = new Date(anoA,mesA,diaA,horaA,minA,segA,milA);
	fechaB = new Date(anoB,mesB,diaB,horaB,minB,segB,milB);
	
	diferencia = fechaB.getTime() - fechaA.getTime();
	
	return diferencia;
}
