// JavaScript Document
<!--

	// INICIALIZACIONES
   var http_request = false;
   var param1;

   
   // FUNCIONES 

 function cargarSeccionNoticias(url, id_select) {
 	http_request = false;

	// Selecciona la opcion del submenu actual y desactiva el resto
 	if (id_select) {
		var container = document.getElementsByName('boton_fuente');
		for (var i=0; i< container.length; i++) {
			tmp1 = container[i].className;
			if (tmp1 == 'botonFuenteActiva') {
				container[i].className = 'botonFuente';
			}
		}
		document.getElementById(id_select).className = 'botonFuenteActiva';
	}

	document.getElementById('div_noticias').innerHTML = "<div align='center' style='width:200px; margin-top:50px; left:50%;'><img src='/headers/zonas/5652/cargando.gif' border='0'></div>";
 	if (window.XMLHttpRequest) { // Mozilla, Safari,...
 		http_request = new XMLHttpRequest();
 		if (http_request.overrideMimeType) {
 			http_request.overrideMimeType('text/xml');
 		}
 	} else if (window.ActiveXObject) { // IE
 		try {
 			http_request = new ActiveXObject("Msxml2.XMLHTTP");
 		} catch (e) {
 			try {
 				http_request = new ActiveXObject("Microsoft.XMLHTTP");
 			} catch (e) {}
 		}
 	}

 	if (!http_request) {
 		alert('Falla :( No es posible crear una instancia XMLHTTP');
 		return false;
 	}
 	http_request.onreadystatechange = alertNoticias;
 	http_request.open('POST', url, true);
 	http_request.send(null);

 }


function alertNoticias() 
{
	if (http_request.readyState == 4) {
 		if (http_request.status == 200) {
			respuesta_html = http_request.responseText;
			posicion_body = respuesta_html.indexOf('<div id="div_noticias">');
			final_html = respuesta_html.substring(posicion_body);

			document.getElementById('div_noticias').innerHTML = final_html;
//			cargarScriptsDOM ('div_central');

		 } else if (http_request.status == 403) { // 403. - FORBIDEN
			document.getElementsByTagName('body')[0].innerHTML = formLoginBlobic();
		 } else {
			 alert(http_request.status + ' ' + 'Hubo problemas con la petición.');
		 }
	 }
 }




   function validarEstatica () {
        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
				respuesta_html = http_request.responseText;
				id_seccion = respuesta_html.substring(0,respuesta_html.indexOf(','));
				estado_validado = respuesta_html.substring(respuesta_html.indexOf(',')+1);
				icono_estado = document.getElementById('iconoEstado' + id_seccion );
				tabla_seccion = document.getElementById('tablaSeccion' + id_seccion );
				if (estado_validado=='S') {
					tabla_seccion.setAttribute('class', '');
					tabla_seccion.setAttribute('className', '');
					icono_estado.src = '/headers/zonas/5652/icono-ok.gif';
				} else {
					tabla_seccion.setAttribute('class', 'claro');
					tabla_seccion.setAttribute('className', 'claro');
					icono_estado.src = '/headers/zonas/5652/icono-danger.gif';
				}
			} else if (http_request.status == 403) {	// 403. - FORBIDEN
				document.getElementsByTagName('body')[0].innerHTML = formLoginBlobic();		
            } else {
                alert(http_request.status + ' ' + 'Hubo problemas con la petición.');
            }
        }
   }
   
   function validarTopic () {
        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
				respuesta_html = http_request.responseText;
				id_topic = respuesta_html.substring(0,respuesta_html.indexOf(','));
				estado_validado = respuesta_html.substring(respuesta_html.indexOf(',')+1);
				icono_estado = document.getElementById('iconoEstadoTopic' + id_topic);
				tabla_topic = document.getElementById('tablaTopic' + id_topic);
				if (estado_validado=='S') {
					tabla_topic.setAttribute('class', '');
					tabla_topic.setAttribute('className', '');
					icono_estado.src = '/headers/zonas/5652/icono-ok.gif';
				} else {
					tabla_topic.setAttribute('class', 'claro');
					tabla_topic.setAttribute('className', 'claro');
					icono_estado.src = '/headers/zonas/5652/icono-error.gif';
				}
			} else if (http_request.status == 403) {	// 403. - FORBIDEN
				document.getElementsByTagName('body')[0].innerHTML = formLoginBlobic();		
            } else {
                alert(http_request.status + ' ' + 'Hubo problemas con la petición.');
            }
        }
   }
  
    function httpRequestAjax(url, funcion_respuesta) 
	{
        http_request = false;

        if (window.XMLHttpRequest) { // Mozilla, Safari,...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

		if (!http_request) {
			alert('Falla :( No es posible crear una instancia XMLHTTP');
			return false;
		}
		switch (funcion_respuesta) {
			case 'validarTopic':
				http_request.onreadystatechange = validarTopic;
				break;
			case 'validarEstatica':
				http_request.onreadystatechange = validarEstatica;
				break;
		}
        http_request.open('POST', url, true);
        http_request.send(null);
    }   
	
   
	function formLoginBlobic () {
		var code;
		code='';
		code = code + '<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">';
		code = code + '<tr>';
		code = code + '<td align="center" valign="middle">';	
		code = code + '<div align="center">';
		code = code + '<a href="http://www.blobic.com/">';
		code = code + '<img src="/headers/zonas/5652/blobic.jpg" border="0" width="168" height="65">';	
		code = code + '</a>';
		code = code + '<div align="center">';
		code = code + '<form action="/?go=ab7c7d504b7f581e2f3f75158a8684078d3034ff61cf369954f24660e888ed12" method="POST">';
		code = code + '<table width="170" height="100"  border="0" cellspacing="0" cellpadding="3">';
		code = code + '<tr>';
		code = code + '<td class="EstiloTextoDestacado" width="70"><div align="left">Usuario</div></td>';
		code = code + '<td width="100"><input type="text"  id="username" tabindex="1" style="width:100px;font-family:Arial, Helvetica, sans-serif;font-size:x-small;color:BLACK;" maxlength="" name="username" value=""></td>';
		code = code + '</tr><tr>';
		code = code + '<td class="EstiloTextoDestacado" width="70"><div align="left">Clave</div></td>';
		code = code + '<td width="100"><input type="password"  id="password" tabindex="1" style="width:100px;font-family:Arial, Helvetica, sans-serif;font-size:x-small;color:BLACK;" maxlength="" name="password" value=""></td>';
		code = code + '</tr><tr>';
		code = code + '<td width="70">&nbsp;</td>';
		code = code + '<td width="100"><input type="hidden"  id="zona" tabindex="1" style="width:100px;font-family:Arial, Helvetica, sans-serif;font-size:x-small;color:BLACK;" maxlength="" name="zona" value="5652">';
		code = code + '<input type="submit" style="font-family:Arial, Helvetica, sans-serif;font-size:x-small;color:BLACK;" name="entrar" value="Entrar" tabindex="1" /></td>';
		code = code + '</tr>';
		code = code + '</table>';
		code = code + '</form>';
		code = code + '</div>';
		code = code + '</div>';
		code = code + '</td></tr>';
		code = code + '</table>';
   		return code;
   }
   
	// Simula el comando TRIM
	function trim(cadena)
	{
		for(i=0; i<cadena.length; )
		{
			if(cadena.charAt(i)==" ")
				cadena=cadena.substring(i+1, cadena.length);
			else
				break;
		}

		for(i=cadena.length-1; i>=0; i=cadena.length-1)
		{
			if(cadena.charAt(i)==" ")
				cadena=cadena.substring(0,i);
			else
				break;
		}
	
//		forma.caja2.value=cadena;
		return cadena;
	}
   
   // Comprueba si el escript ya esta insertado DOM
   function existeScript (tipo, codigo_script) {
		var existe = false;
		var todos_scripts = document.getElementsByTagName('head')[0].getElementsByTagName('script');
		var arr = new Array();
		for(i = 0,iarr = 0; (i < todos_scripts.length)&&(existe==false); i++) 
		{
			if (tipo=='text') {
//				alert ('TEXT: ' + todos_scripts[i].text + '**************' + codigo_script);
				if (todos_scripts[i].text.indexOf(codigo_script)>=0) {
					existe = true;
				}
			} else if (tipo=='src') {
//				alert ('SRC: ' + todos_scripts[i].src + '**************' + codigo_script);
				if (todos_scripts[i].src.indexOf(codigo_script)>=0) {
					existe = true;
				}
			}
		}
//		alert ('RETURN: ' + existe);
		return existe;
   }
   
   // Esta funcion recorre el codigo html que recibe como parametro y carga de forma dinamica mediante DOM todos los script que encuentra
   function cargarScriptsDOM (id_etiqueta) {
		//comprueba si hay scripts
		objeto_subseccion = document.getElementById(id_etiqueta);
		codigo_html = objeto_subseccion.innerHTML;
		codigo_html = codigo_html.replace('<!--','');
		codigo_html = codigo_html.replace('-->','');
		posicion_script = codigo_html.indexOf("<script");
		if (posicion_script<0) {
			posicion_script = codigo_html.indexOf('<SCRIPT');
		}
		posicion_script_cierre = codigo_html.indexOf('>', posicion_script)+1;
		while (posicion_script>0) {
			// comprueba si el script tiene SRC
			etiqueta_abrir = codigo_html.substring(posicion_script, posicion_script_cierre);
			posicion_src = etiqueta_abrir.indexOf('src=');
			if (posicion_src<0) {
				posicion_src = etiqueta_abrir.indexOf('SRC=');
			}
			if (posicion_src>0) {
				posicion_comillas = etiqueta_abrir.indexOf('"', posicion_src);
				if (posicion_comillas<0) {
					posicion_comillas = etiqueta_abrir.indexOf("'", posicion_src);
					posicion_comillas_fin = etiqueta_abrir.indexOf("'", posicion_comillas+1);
				}
				else {
					posicion_comillas_fin = etiqueta_abrir.indexOf('"', posicion_comillas+1);
				}
				codigo_script_src = etiqueta_abrir.substring(posicion_comillas+1, posicion_comillas_fin);
				if (!existeScript('src', codigo_script_src))
				{
					miScript = document.createElement('script');
					miScript.type = 'text/javascript';
					miScript.src = codigo_script_src;

//					alert ('SRC: ' + miScript.src);

					headTag = document.getElementsByTagName('head')[0];
					headTag.appendChild(miScript);
//					alert ('src ->*' + codigo_script_src + '*');
				}
			}
			// si hay scripts los carga dinamicamente
			posicion_script_fin = codigo_html.indexOf('</script>', posicion_script_cierre);
			if (posicion_script_fin<0) {
				posicion_script_fin = codigo_html.indexOf('</SCRIPT>', posicion_script_cierre);
			}
			codigo_script = codigo_html.substring (posicion_script_cierre, posicion_script_fin);
			if (codigo_script.length>0)
			{
				if (!existeScript('text', codigo_script))
				{
					miScript = document.createElement('script');
					miScript.type = 'text/javascript';
					miScript.text = codigo_script;

//					alert ('CODE: ' + miScript.text);
			
					headTag = document.getElementsByTagName('head')[0];	
					headTag.appendChild(miScript);
//					alert ('script ->*' + codigo_script + '*');
				}
			}
	
			posicion_script = codigo_html.indexOf('<script', posicion_script_fin);
			if (posicion_script<0) {
				posicion_script = codigo_html.indexOf('<SCRIPT', posicion_script_fin);
			}
			posicion_script_cierre = codigo_html.indexOf('>', posicion_script)+1;
		}

   }
   
/*	function actualizarOrdenSecciones () {

		var container = document.getElementsByName('node');
		for (var i=0; i< container.length; i++){
			container[i].id = "node" + (i+1);
		}
	}

	function actualizarOrdenSubsecciones () {

		var container = document.getElementsByName('node');
		for (var i=0; i< container.length; i++){
			container[i].id = "node" + (i+1);
		}
	}
*/
	function getElementsByName_iefix(tag, name) 
	{
		var elem = document.getElementsByTagName(tag);
		var arr = new Array();
		for(i = 0,iarr = 0; i < elem.length; i++) 
		{
			att = elem[i].getAttribute("name");
			if(att == name) 
			{
				arr[iarr] = elem[i];
				iarr++;
			}
		}
	return arr;
	}

	function desactivarMenuSecciones () {

//		var container = document.getElementsByName('node');
		var container = getElementsByName_iefix('li', 'node');
		for (var i=0; i< container.length; i++){
//			container[i].class = "EstiloSeccion";
			//container[i].className = "EstiloSeccion";
			container[i].setAttribute('class', 'EstiloSeccion');
			container[i].setAttribute('className', 'EstiloSeccion');
		}
	}

	
   function cambiarOrdenSeccionAsincrono (idInicial, idFinal, esHijo) {
        http_request = false;

        if (window.XMLHttpRequest) { // Mozilla, Safari,...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

        if (!http_request) {
            alert('Falla :( No es posible crear una instancia XMLHTTP');
            return false;
        }
		http_request.onreadystatechange = alertCambiarOrdenSeccionAsincrono;
		posIni = idInicial.substring(4);	// idInicial y idFinal llega valiendo "nodeN" y lo dejamos en "N"
		posFin = idFinal.substring(4);
		url = "/cambiarOrdenSeccionAsincrono/?ini=" + posIni + "&fin=" + posFin + "&eshijo=" + esHijo;
        http_request.open('POST', url, true);
        http_request.send(null);
	}

    function alertCambiarOrdenSeccionAsincrono() 
	{
        if (http_request.readyState == 4) 
		{
            if (http_request.status == 200) 
			{
//				OK
//				actualizarOrdenSecciones();
            } 
			else if (http_request.status == 403)	// 403. - FORBIDEN
			{
				document.getElementsByTagName('body')[0].innerHTML = formLoginBlobic();		
            }
			else 
			{
                alert(http_request.status + ' ' + 'Hubo problemas con la petición.');
            }
        }
    }

	
	function mostrarMenuContenidos(id_select, opcion1, url1, opcion2, url2, opcion3, url3) {
//		document.getElementById('menu_contenidos').innerHTML = "<span style='padding: 20px 20px 20px 20px; border: 1px solid #000000;'><a href='javascript:cargarSubseccionAjax(" + url1 + ", " + id_select + ")'>" + opcion1 + "</a><a href='javascript:cargarSubseccionAjax(" + url2 + ", " + id_select + ")'>" + opcion2 + "</a><a href='javascript:cargarSubseccionAjax(" + url3 + ", " + id_select + ")'>" + opcion3 + "</a></span>";
		var respuesta;
		respuesta = ""
//		respuesta = respuesta + "<span style='padding: 20px 20px 20px 20px; border: 1px solid #000000;'>";
		respuesta = respuesta + "<table border='0' width='300' cellpadding='3' cellspacing='3' style='border: 1px solid #999999;'>";
		respuesta = respuesta + "<tr><td><a href='javascript:cargarSubseccionAjax(\"" + url1 + "\", \"" + id_select + "\");' class='EstiloTextoDestacado'>" + opcion1 + "</a></td></tr>";
		respuesta = respuesta + "<tr><td><a href='javascript:cargarSubseccionAjax(\"" + url2 + "\", \"" + id_select + "\");' class='EstiloTextoDestacado'>" + opcion2 + "</a></td></tr>";
		respuesta = respuesta + "<tr><td><a href='javascript:cargarSubseccionAjax(\"" + url3 + "\", \"" + id_select + "\");' class='EstiloTextoDestacado'>" + opcion3 + "</a></td></tr>";
		respuesta = respuesta + "</table>";
		//respuesta = respuesta + "</span>";
		document.getElementById('menu_contenidos').innerHTML = respuesta;
	}
	
	function ocultarMenuContenidos() {
		document.getElementById('menu_contenidos').innerHTML = "";
	}


function cargando (div_inicial, texto)
{
       if (texto!='') {
//	document.getElementById(div_inicial).innerHTML = "<table border='0' cellspacing='0' cellpadding='0' width='100%' height='100%'><tr height='100%'><td align='center' valign='middle'><span class='EstiloTexto'>" + texto +"<br><br><br><img src='/headers/zonas/5652/cargando.gif' border='0'></span></td></tr></table>";
	document.getElementById(div_inicial).innerHTML = "<div align='center' style='position:absolute; top:50%; left:50%;'><span class='EstiloTexto'>" + texto +"<br><br><br><img src='/headers/zonas/5652/cargando.gif' border='0'></span></div>";
     }  else {
//	document.getElementById(div_inicial).innerHTML = "<table border='0' cellspacing='0' cellpadding='0' width='100%' height='100%'><tr height='100%'><td align='center' valign='middle'><span class='EstiloTexto'><img src='/headers/zonas/5652/cargando.gif' border='0'></span></td></tr></table>";
	document.getElementById(div_inicial).innerHTML = "<div align='center' style='position:absolute; top:50%; left:50%;'><img src='/headers/zonas/5652/cargando.gif' border='0'></div>";
     }
}



 
    function cargarSeccionAjax(url) {

        http_request = false;

//		document.getElementById('div_central').innerHTML = "<div align='center' style='position:absolute; top:50%; left:50%;'><img src='/headers/zonas/5652/cargando.gif' border='0'></div>";
		document.getElementById('div_central').innerHTML = "<div align='center' style='position:absolute; top:50%; left:50%;'><div id='div_subseccion'><img src='/headers/zonas/5652/cargando.gif' border='0'></div></div>";

        if (window.XMLHttpRequest) { // Mozilla, Safari,...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

        if (!http_request) {
            alert('Falla :( No es posible crear una instancia XMLHTTP');
            return false;
        }
        http_request.onreadystatechange = alertContents;
        http_request.open('POST', url, true);
        http_request.send(null);

    }


    function cargarSeccionMenu(url, idNode) {

        http_request = false;

//		document.getElementById('div_central').innerHTML = "<div align='center' style='position:absolute; top:50%; left:50%;'><img src='/headers/zonas/5652/cargando.gif' border='0'>/div>";
		document.getElementById('div_central').innerHTML = "<div align='center' style='position:absolute; top:50%; left:50%;'><div id='div_subseccion'><img src='/headers/zonas/5652/cargando.gif' border='0'></div></div>";
		desactivarMenuSecciones();

        if (window.XMLHttpRequest) { // Mozilla, Safari,...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

        if (!http_request) {
            alert('Falla :( No es posible crear una instancia XMLHTTP');
            return false;
        }
		document.getElementById(idNode).className = "seccionActiva";
        http_request.onreadystatechange = alertContents;
        http_request.open('POST', url, true);
        http_request.send(null);

    }	

	
    function alertContents() 
	{
        if (http_request.readyState == 4) 
		{
            if (http_request.status == 200) 
			{
				respuesta_html = http_request.responseText;
				posicion_body = respuesta_html.indexOf('<div id="div_central">');
				final_html = respuesta_html.substring(posicion_body);	
				posicion_div_antes = final_html.indexOf('<myscript>');
				if (posicion_div_antes>0) 
				{
					// Es una seccion con rich-text
					antes_html = final_html.substring(0, posicion_div_antes);
					posicion_div_despues = final_html.lastIndexOf('</myscript>',antes_html) + 11;
					cuerpo_html = final_html.substring(posicion_div_antes+10, posicion_div_despues-11);

					cuerpo_script = initRTE('', '/ebdml/7223/example.css');

					despues_html = final_html.substring(posicion_div_despues);
					final_html = antes_html + cuerpo_script + despues_html;	
				}
		
				document.getElementById('div_central').innerHTML = final_html;
				cargarScriptsDOM ('div_central');	

				if (posicion_div_antes>0) 
				{
					// Es una seccion con rich-text
					startRTE(cuerpo_html); 
					menuBuilder();	
				}
		
            } 
			else if (http_request.status == 403)	// 403. - FORBIDEN
			{
				document.getElementsByTagName('body')[0].innerHTML = formLoginBlobic();		
            }
			else 
			{
                alert(http_request.status + ' ' + 'Hubo problemas con la petición.');
            }
        }

    }

	
//	var id_select = false;
	
    function cargarSubseccionAjax(url, id_select) 
	{

		// Selecciona la opcion del submenu actual y desactiva el resto
		if (id_select) 
		{
			var container = document.getElementsByName('link_submenu');
			for (var i=0; i< container.length; i++)
			{
				tmp1 = container[i].className;
				if (tmp1 == 'EstiloMenuSeleccionado') 
				{
					container[i].className = 'EstiloMenuOpcion';
				}
			}
			document.getElementById(id_select).className = 'EstiloMenuSeleccionado';
		}

		http_request = false;
	
		document.getElementById('div_subseccion').innerHTML = '<div align="center" style="position:absolute; top:50%; left:50%;"><img src="/headers/zonas/5652/cargando.gif" border="0"></div>';

        if (window.XMLHttpRequest) 
		{ // Mozilla, Safari,...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) 
			{
                http_request.overrideMimeType('text/xml');
            }
        } 
		else if (window.ActiveXObject) 
		{ // IE
            try 
			{
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } 
			catch (e) 
			{
                try 
				{
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } 
				catch (e) {}
            }
        }

        if (!http_request) 
		{
            alert('Falla :( No es posible crear una instancia XMLHTTP');
            return false;
        }
        http_request.onreadystatechange = alertContentsSubseccion;
        http_request.open('POST', url, true);
        http_request.send(null);

    }

    function alertContentsSubseccion() 
	{
        if (http_request.readyState == 4) 
		{
            if (http_request.status == 200) 
			{
				respuesta_html = http_request.responseText;
// 				alert(respuesta_html);
				posicion_body = respuesta_html.indexOf('<body>') + 6;
				respuesta_html = respuesta_html.substring(posicion_body);
				posicion_body = respuesta_html.indexOf('<div id="div_subseccion">');
				final_html = respuesta_html.substring(posicion_body);

		
				posicion_div_antes = final_html.indexOf('<myscript>');
				if (posicion_div_antes>0) 
				{
					// Es una seccion con rich-text
					antes_html = final_html.substring(0, posicion_div_antes);
					posicion_div_despues = final_html.lastIndexOf('</myscript>',antes_html) + 11;
					cuerpo_html = final_html.substring(posicion_div_antes+10, posicion_div_despues-11);

					cuerpo_script = initRTE('', '/ebdml/7223/example.css');

					despues_html = final_html.substring(posicion_div_despues);
					final_html = antes_html + cuerpo_script + despues_html;	
				}
				
//				cargarScriptsDOM (final_html);

				document.getElementById('div_subseccion').innerHTML = final_html;
				cargarScriptsDOM ('div_subseccion');	

				if (posicion_div_antes>0) 
				{
					// Es una seccion con rich-text
					startRTE(cuerpo_html); 
					menuBuilder();	
				}

//				document.getElementById('div_subseccion').innerHTML = final_html;
//				eval(document.getElementById('div_subseccion').innerHTML);
			} 
			else if (http_request.status == 403)	// 403. - FORBIDEN
			{
				document.getElementsByTagName('body')[0].innerHTML = formLoginBlobic();		
            }
			else 
			{
                alert(http_request.status + ' ' + 'Hubo problemas con la petición.');
            }
        }

    }
	

//-->



