function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}

var bw=new checkBrowser();

function openwindow(mywindow,mywindow2,myurl,mywidth,myheight,myscroll)
{
		width = "width="+mywidth;
		height= "height="+myheight;
		auxscroll= "scrollbars="+myscroll;
		mywindow=window.open(myurl,mywindow2,width+","+height+",resizable=no,"+auxscroll+",toolbars=no,directories=no,titlebar=no,status=no");
}

function maxVentana(){
	window.moveTo(0,0);
	if (document.all) {
	top.window.resizeTo(screen.availWidth,screen.availHeight);
	}
	else if (document.layers||document.getElementById) {
	if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
	top.window.outerHeight = screen.availHeight;
	top.window.outerWidth = screen.availWidth;
	}
	}
}
