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 openwindowcalendario(mywindow,mywindow2,myurl,mywidth,myheight,myscroll,x,y)
{
		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,left="+x+",top="+y);
}
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();
