function redimensionaVentana2(ancho, alto) {
	var modo = null;
	
	if (self.innerWidth)
	{
		//Non-IE
		modo = "self.innerWidth - Non-IE";
		frameWidth = self.innerWidth;
		frameHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		//IE 6+ in 'standards compliant mode'
		modo = "document.documentElement - IE 6+ in 'standards compliant mode'";
		frameWidth = document.documentElement.clientWidth;
		frameHeight = document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		//IE 4 compatible
		modo = "document.body - IE 4 compatible";
		frameWidth = document.body.clientWidth;
		frameHeight = document.body.clientHeight;
	}
	else // No es un navegador que conozcamos
		return;

	if (frameWidth != ancho || frameHeight != alto)
	{
		var iWidth = ancho - frameWidth;
      	var iHeight = alto - frameHeight;
      	parent.window.resizeBy(iWidth, iHeight);

		if (false)
		{
			alert("modo '" + modo + "\n" + "frameWidth:= " + frameWidth + " frameHeight:= " + frameHeight + "\n" +
				  "ancho:= " + ancho + " alto:= " + alto + "\n" +
				  "iWidth:= " + iWidth + " iHeight:= " + iHeight + "\n");
		}
	}
	else
	{
//		alert('No resize necessary');
	}
	
	if (window.focus) {self.focus();}
}

function redimensionaVentana(ancho, alto) {
	var t = 'redimensionaVentana2(' + ancho + ','  + alto + ')';
	setTimeout(t, 100);
}