// JavaScript Document
function agregarFavoritos() {
	var url, texto;
	url = 'http://www.palmadelrionline.com';
	mensaje = 'palmadelrionlone.com ~ Portal socio-económico de Palma del Río';
	window.external.AddFavorite(url,mensaje);
}

function establecerPaginaInicio() {
	var url, id;
	id = 'pagina_inicio';
	url = 'http://www.palmadelrionline.com';
	document.getElementById(id).style.behavior='url(#default#homepage)';
	document.getElementById(id).setHomePage(url);
}

function actualizarPagina() {
	location.reload();
}

function MM_openBrWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}

function abrirURL(url) { 
	this.location = url;
}

function abrirVentana(url,nombre,opciones) {
  window.open(url,nombre,opciones);
}

function quitarFrames() {
	if(self.parent.frames.length!=0) { self.parent.location=document.location.href; }
}

function viewHide(id, nombre_formulario) {
	if(nombre_formulario != "") {
		var i;
		for(i=0;i<nombre_formulario.length;i++) { if(id != nombre_formulario[i].value) { document.getElementById(nombre_formulario[i].value).style.display = 'none'; } }
	}
	if(document.getElementById(id).style.display == 'block') { document.getElementById(id).style.display = 'none'; }
	else { document.getElementById(id).style.display = 'block'; } 
}