function MuestraCapa(Capa) {
	if (document.getElementById) {
		// this is the way the standards work
		document.getElementById(Capa).style.display = "";
	} else if (document.all) {
		// this is the way old msie versions work
		document.all[Capa].style.display = "";
	} else if (document.layers) {
		// this is the way nn4 works
		document.layers[Capa].display = "";
	}
}

function EscondeCapa(Capa) {
	if (document.getElementById) {
		// this is the way the standards work
		document.getElementById(Capa).style.display = "none";
	} else if (document.all) {
		// this is the way old msie versions work
		document.all[Capa].style.display = "none";
	} else if (document.layers) {
		// this is the way nn4 works
		document.layers[Capa].display = "none";
	}
}

function do_void() {
	return;
}
function CargaIframe (id_proy, id_aptdo) {
	var URL="proyecto.php?Id="+id_proy;

	if  ( id_aptdo>0 ) {
		var frameObj=getFrameObj("iframe_resultados");
		if (frameObj) {
			URL+="&id_aptdo="+id_aptdo;
			frameObj.location.href=URL;
		} else {
			alert('Su navagador no soporta el uso de iframes');
		}
	}
}

function Estatus(Capa) {
	var visibilidad=-1;
	var proyecto = /^proyecto_[a-zA-Z0-9._-]+$/;

	if (document.getElementById) {
		// this is the way the standards work
		visibilidad=document.getElementById(Capa).style.display;
	} else if (document.all) {
		// this is the way old msie versions work
		visibilidad=document.all[Capa].style.display;
	} else if (document.layers) {
		// this is the way nn4 works
		visibilidad=document.layers[Capa].display;
	}

	if (visibilidad==-1) {
		alert('Error');
	} else if (visibilidad=="none") {
		MuestraCapa(Capa);
		/*
		if (proyecto.test(Capa)) {
			ar_nomproy=Capa.split("_");
			id_proy=ar_nomproy[1];
		} else {
			eval("document.f_"+Capa+".src='"+flecha_b+"'");
		}
		*/
	} else {
		EscondeCapa(Capa);
		/*
		if (proyecto.test(Capa)) {
		} else {
			eval("document.f_"+Capa+".src='"+flecha_a+"'");
		}
		*/
	}
}