// Determinamos el Navegador
function What_Browser(){
	var Browser = navigator.appName;
	var Version = navigator.appVersion;
	var Platform = navigator.platform;
	// Determina el nombre del BROWSER
	if (Browser == "Netscape"){
		this.name = "NS";
	} else if (Browser == "Microsoft Internet Explorer"){
		this.name = "IE";
	} else if (Browser == "Opera"){
		this.name = "OP";
	} else {
		this.name = Browser;
	}
	this.version = parseInt(navigator.appVersion);
	if(this.name =="NS"){
		if(window.netscape.security){  //detecta Firefox
			this.FF = true;
			if(window.XML) this.FF15 = true;  //detecta Firefox 1.5
		} else {
			this.NS = (this.version >=4)
			this.NS4 = (this.version ==4)
			this.NS5 = (this.version ==5)
		}
	}
	if(this.name=="IE"){
		this.IE = (this.version >=4);
		this.IE4 = (Version.indexOf('MSIE 4')>0);
		this.IE5 = (Version.indexOf('MSIE 5')>0); 
		this.IE6 = (Version.indexOf('MSIE 6')>0);
	}
	if(this.name=="OP"){
		this.OP = true;
	}
	this.platform = Platform;
}

var BW = new What_Browser();

function redimIframe(nombre){
	var ifr = document.getElementById(nombre);
	var ifrObj = (BW.IE) ? document.frames(nombre) : window.frames[0];
	ifr.height = ifrObj.document.body.scrollHeight;
}
