function togglediv(mydiv){
	var mydiv = document.getElementById(mydiv);
	estado=mydiv.style.display;
	if(estado=='block'){
		mydiv.style.display="none";
	}
	else{
		mydiv.style.display="block";
		mydiv.focus();
	}
}
/*hace visible un div*/
function show(id){tgtDiv=window.parent.document.getElementById(id);tgtDiv.style.visibility='visible';tgtDiv.style.display='block';}
/*oculta un div*/
function hide(id){tgtDiv=window.parent.document.getElementById(id);tgtDiv.style.visibility='hidden';tgtDiv.style.display='none';}
/*muestra el primer div, y oculta el segundo, útil cuando ambos ocupan el mismo lugar*/
function swap(id_show, id_hide){show(id_show);hide(id_hide);}