function ventanaNueva(theURL, winName, ancho, alto, features) {
//  alert(screen.width);
  features += ",left=" + ((screen.width - ancho) / 2);
  features += ",top=" + ((screen.height - alto) / 2);
  features += ",width=" + ancho;
  features += ",height=" + alto;
  window.open(theURL, winName, features);
}
function resizeIframe() {
	// Must launched on the body onload event handler for IE
	// Use document.documentElement if you are in Compat mode
	i = parent.document.getElementById(window.name)
	iHeight = document.body.scrollHeight
	//parent.document.body.clientHeight: me da la altura del contenido de la ventana
//	alert(parent.document.body.clientHeight - 205);

	//i.style.height = iHeight + "px";

	//alert(document.getElementById("tabla"));
	
	if(iHeight >= (parent.document.body.clientHeight - 205)){
		i.style.height = iHeight + "px";
	}else{
//		alert("es más chico man...");
		//i.style.height = (parent.document.body.clientHeight - 205) + "px";
		i.style.height = (parent.document.body.clientHeight - 205) + "px";
		document.getElementById("tabla").height = i.style.height;
		//si le cambio el tamaño a la ventana, entonces se quiebra.
	}
}
