<!--

function abre (url,nombre,ancho,alto)
{
facilkit = window.open(url,nombre,"width=500,height=400,scrollbars=yes,screenX=0,screenY=0,top=0,left=0");


}

function abreme (url,nombre,ancho,alto)
{
facilkit = window.open(url,nombre,"width=" + ancho +",height=" + alto +",scrollbars=yes,screenX=0,screenY=0,top=0,left=0");


}

function abre_cesta (url,nombre,ancho,alto)
{
var windowX = Math.ceil( (window.screen.width  - ancho) / 2 );
var windowY = Math.ceil( (window.screen.height - alto) / 2 );

parametros = "width=620,height=500,scrollbars=yes,alwaysRaised=yes,dependent=no,screenX=" + windowX + ",screenY=0,top=0,left="+ windowX;
facilkitcesta = window.open(url,nombre,parametros);
}

function abre_x (url,nombre,ancho,alto) {
	theURL= url;
	wname = nombre;
	W=ancho;
	H=alto;
	windowCERRARa 		= "/img/close_a.gif"
	windowCERRARd 		= "/img/close_d.gif"
	windowCERRARo 		= "/img/close_o.gif"
	windowNONEgrf 		= "/img/none.gif"
	windowCLOCK		= "/img/clock.gif"
	windowREALtit		= "&nbsp; Task title"
	windowTIT 	    	= "<font face=verdana size=1>&nbsp; Facilkit</font>"
	windowBORDERCOLOR   	= "#000000"
	windowBORDERCOLORsel	= "EF9C10"
	windowTITBGCOLOR    	= "#EF9C10"
	windowTITBGCOLORsel 	= "#000000"
	openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
}



//-->


ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

function muestra(id) {
	alert("muestra")
	if (ns4){
		 document.layers[id].visibility = "show";
	}			 
	else {	
			document.all[id].style.visibility = "visible";
	}
}
function oculta(id) {
	alert("oculta")
	if (ns4){
		document.layers[id].visibility = "hide";
	}		
	else{
		document.all[id].style.visibility = "hidden";
		}
}
