
function AddFavoritesOld(x1, y1, x2, y2, zone)
{
	var url = window.location.href.split('?')[0] + "?";

	if (x1 != -1 && y1 != -1 && x2 != -1 && y2 != -1 && zone != -1)
		url = url + "ube=" + x1 + ";" + y1 + ";" + x2 + ";" + y2 + ";" + zone;
alert(url);

	window.external.AddFavorite(url, "·· SigPac ··");
}

function AddFavorites(x1, y1, x2, y2, zone)
{
	var url = window.location.href.split('?')[0] + "?";
	
	if (x1 != -1 && y1 != -1 && x2 != -1 && y2 != -1 && zone != -1)
		url = url + "ube=" + x1 + ";" + y1 + ";" + x2 + ";" + y2 + ";" + zone;
	
	if (navigator.appVersion.indexOf("Mac",0)>0)
	{
		alert("Esta funci" + decodeURI('%c3%b3') + "n no puede ejecutarse en Macintosh.\n Utiliza la combinaci" + decodeURI('%c3%b3') + "n de teclas Command D");
	}

	
	else if(window.external && (navigator.platform == "Win32" || 
								(window.ScriptEngine && ScriptEngine().indexOf("InScript") + 1 )))
	{
		//IE Win32 or iCab - checking for AddFavorite produces errors for no
		//good reason, so I use a platform and browser detect.
		//adds the current page page as a favourite; if this is unwanted,
		//simply write the desired page in here instead of "location.href"
		return window.external.AddFavorite(url, document.title );
	}	
	else if(window.sidebar && window.sidebar.addPanel)
	{
		//Gecko (Netscape 6 etc.) - add to Sidebar
		return window.sidebar.addPanel("Visor Sigpac", url, "");
	}
	else if(window.opera && window.print) 
	{
		//Opera 6+ - add as sidebar panel to Hotlist
		window.alert("El navegador no soporta la funci" + decodeURI('%c3%b3') + "n A" + decodeURI('%c3%b1') + "adir a Favoritos.\nPresiona Ctrl+T para a" + decodeURI('%c3%b1') + "adir un marcador de la p" + decodeURI('%c3%a1') + "gina.");
	}
	else if(document.layers) 
	{
		//NS4 &amp; Escape - tell them how to add a bookmark quickly (adds current page,
		//not target page)
		window.alert("El navegador no soporta la funci" + decodeURI('%c3%b3') + "n A" + decodeURI('%c3%b1') + "adir a Favoritos.\nPresiona Ctrl+D para a" + decodeURI('%c3%b1') + "adir un marcador de la p" + decodeURI('%c3%a1') + "gina.");
	}
	else 
	{
		//other browsers - tell them to add a bookmark (adds current page, not target page)
		window.alert("El navegador no soporta la funci" + decodeURI('%c3%b3') + "n A" + decodeURI('%c3%b1') + "adir a Favoritos.\nUsa los marcadores de tu navegador para a" + decodeURI('%c3%b1') + "adir marcador de la p" + decodeURI('%c3%a1') + "gina.");
	}
	return false;
}


function Att(id)
{return;
	if (urlInfo == "" || id == null || id == "") return;
	if (activeLayer != "PARCELA" && activeLayer != "PARCELA_FEGA" && activeLayer != "RECINTO" && activeLayer != "RECINTO_FEGA") return;
	newWin = window.open("blank", null, 'scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,menubar=no,width=600,height=400', true);
	newWin.name = "InfoSigPac";
	newWin.document.write("Cargando datos...");
	newWin.focus();

	var url = urlInfo + "?function=attributes&layer=" + activeLayer + "&id=" + id;
	newWin = window.open(url, "InfoSigPac", null, true);
	newWin.focus();
}

function prueba()
{
	alert("prueba ok");
}