function AltoElemento(elemento, elemento_1_a_cambiar) {

	div_1 = document.getElementById(elemento);
	div_2 = document.getElementById(elemento_1_a_cambiar);

	alto = div_1.clientHeight;

	div_2.style.height = alto + 'px';

}

function nw(pagina, ancho, alto) {

	window.open(pagina, 'ventana1','width='+ancho+', height='+alto,'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0');

}

function CampoEnBlanco(formulario, campo, cadena) {

	var f = document.forms[formulario][campo];

	if (f.value == cadena) {

		f.value = "";

	}

}


function RellenaCampo(formulario, campo, cadena) {

	var f = document.forms[formulario][campo];

	if (f.value == "") {

		f.value = cadena;

	}

}

function Expandir(id) {

	var oDiv = document.getElementById(id);

	if((oDiv != null) && (oDiv.style.display != "block")) {

		oDiv.style.display = "block";

	}
	else {

		oDiv.style.display = "none";

	}

}


function nw(pagina, ancho, alto) {

	window.open(pagina, 'ventana1','width='+ancho+', height='+alto,'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0');

}