// JavaScript Document
<!--
function activarDesactivarFavorito(id,url,portal,urlPortal,favicon){
var activo;
//alert(document.getElementById(id).checked);
var menuFavorito;
menuFavorito=document.getElementById('menuFavorito').innerHTML;
if(document.getElementById(id).checked) 	
{
	document.getElementById(id).checked=1;
	activo='S';
	document.getElementById('menuFavorito').innerHTML='<div id="favorito-'+id+'"><a href="'+url+'" onclick=javascript:void(cargando("div_cuerpo","Cargando portal..."))> <img src="'+favicon+'" border="0" title="'+urlPortal+' ('+portal+')"></a></div>'+menuFavorito;	
}
else{
	document.getElementById(id).checked=0;	
	activo='N';
	document.getElementById('favorito-' +id).style.display='none';
}
	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('Error iniciando sesion');
		return false;
	}
	http_request = new XMLHttpRequest();
	http_request.onreadystatechange = function () {
	if (http_request.readyState == 4) 
	{
		if (http_request.status == 200) 
		{

		} 

		else 
		{
			alert(http_request.status + ' ' + 'Hubo problemas con la peticiÃƒÂ³n.');
		}
		}
	};

	http_request.open('GET', '/portalFavorito?id='+id+'&activo='+activo, true);
	http_request.send(null);

} 

//-->



