	    /* definimos los dias festivos por el indice en la matriz:
	    sabado y domingo, y les asignamos un color de fondo a sus celdas */
	    var festivos = [5,6];
	    var festivosColor = "#CDCB7B";
	    /*definimos el tamaņo y familia de las fuentes*/
	    var familia_fuente = "Arial, Verdana";
	    var size_fuente = 2;

	    /*declaramos las cariables globales ahora, que va a contener
	    la fecha del sistema del usuario y calculo, que usaremos luego*/
	    var ahora = new Date();
	    var calculo;
	    
	    /*averiguamos el navegador del usuario y lo asignamos
	    a una veriable especifica*/
	    if (document.layers)
	        isNav = true;
	    else if (document.all)
	        isIE = true;

	    /*declaramos la matriz de meses del Calendario, como una propiedad
	    del objeto Calendario*/
	    Calendario.Meses = ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"];

	    /*definimos los dias de cada mes para aņo normal*/
	    Calendario.DiasMes = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
	    /*definimos los dias de cada mes para aņo bisiesto*/
	    Calendario.BisiestoDiasMes = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

	    /*funcion principal de definicion del objeto Calendario*/
	    function Calendario(p_item, p_WinCal, mes, anyo, formato)
	    {
	        /*si no se elige fecha, no hace nada*/
	      if ((mes == null) && (anyo == null))	
	        return;
		    if (p_WinCal == null)
			    this.gWinCal = calculo;
		    else
			    this.gWinCal = p_WinCal;
		
		    if (mes == null)
	        {
		        this.dameMes = null;
	          this.dameNumeroMes = null;
	          this.dameAnyo = true;
	        }
	        else
	        {
		        this.dameMes = Calendario.get_month(mes);
	          this.dameNumeroMes = new Number(mes);
	          this.dameAnyo = false;
	        }

		    /*configuramos el formato del calendario*/
	      this.gYear = anyo;
		    this.gFormat = formato;
		    this.gBGColor = "#006600";
		    this.gFGColor = "#000080";
		    this.gTextColor = "#000080";
		    this.gHeaderColor = "#FFFFFF";
		    this.gReturnp_item = p_item;
	    }

	    Calendario.get_month = Calendario_get_month;
	    Calendario.get_diasdelmes = Calendario_get_diasdelmes;
	    Calendario.calcula_mes_anyo = Calendario_calcula_mes_anyo;
	    Calendario.print = Calendario_print;

	    /*obtenemos el numero del mes*/
	    function Calendario_get_month(monthNo) 
	    {
		    return Calendario.Meses[monthNo];
	    }

	   /*vemos si el aņo es bisiesto o no, para asignar los dias
	   correspondientes a febrero*/
	    function Calendario_get_diasdelmes(monthNo, anyo) 
	    {	
	        if ((anyo % 4) == 0) 
	        {
	            if ((anyo % 100) == 0 && (anyo % 400) != 0)
	                return Calendario.DiasMes[monthNo];	
			     return Calendario.BisiestoDiasMes[monthNo];
		     }
	         else
			     return Calendario.DiasMes[monthNo];
	    }

	    /*funcion para incremento o decrementar 1 mes o 1 aņo al pulsar
	    las dobles flechas la variable incrementoemento establece el aumento
	    o disminucion en 1 unidad (se puede cambiar)*/
	    function Calendario_calcula_mes_anyo(mes, anyo, incremento) 
	    {
		    var ret_arr = new Array();	
		    if (incremento == -1) 
	        {
			    /*hacia atras*/
		        if (mes == 0) 
	            {
	                ret_arr[0] = 11;
			    	ret_arr[1] = parseInt(anyo) - 1;
		    	}	
	            else 
	            {
		    		ret_arr[0] = parseInt(mes) - 1;
		    		ret_arr[1] = parseInt(anyo);
			    }
		    }
	        /*hacia adelante*/ 
	        else if (incremento == 1) 
	        {
			    if (mes == 11) 
	            {
				    ret_arr[0] = 0;
	    			ret_arr[1] = parseInt(anyo) + 1;
	    		}
	    		else
	            {
				    ret_arr[0] = parseInt(mes) + 1;
	    			ret_arr[1] = parseInt(anyo);
	    		}
	    	}	
		    return ret_arr;
	    }

	    /*funcion para imprimir el calendario*/
	    function Calendario_print()
	    {
		    calculo.print();
	    }

	    /*aņadimos propiedades al objeto Calendario mediante el metodo prototype*/
	    Calendario.prototype.getMonthlyCalendarioCode = function() 
	    {
		    var vCode = "";
		    var vHeader_Code = "";
		    var vData_Code = "";
		
		   /*dibujamos la tabla del calendario en la ventana flotante,
		   Se rellena con filas que definimos luego*/
		    vCode = vCode + "<TABLE BORDER=1 BGCOLOR=\"" + this.gBGColor + "\">";	
		    vHeader_Code = this.cal_header();
		    vData_Code = this.cal_data();
		    vCode = vCode + vHeader_Code + vData_Code;	
		    vCode = vCode + "</TABLE>";	
		    return vCode;
	    }

	    Calendario.prototype.show = function() 
	    {
		    var vCode = "";	
	    	this.gWinCal.document.open();
		    /*definimos la cedana que nos pintara la pagina dentro de la ventana flotante*/
		    this.wwrite("<html>");
		    this.wwrite("<head><title>Calendario</title>");
		    this.wwrite("</head>");
		    this.wwrite("<body leftmargin=0 topmargin=1 marginwidth=0 marginheight=0 " + 
					"link=\"" + this.gLinkColor + "\" " + 
					"vlink=\"" + this.gLinkColor + "\" " +
					"alink=\"" + this.gLinkColor + "\" " +
					"text=\"" + this.gTextColor + "\">");
		    this.wwriteA("<FONT FACE='" + familia_fuente + "' SIZE=3><B><DIV ALIGN='CENTER'>");
	    	this.wwriteA(this.dameMes + " " + this.gYear);
	    	this.wwriteA("</DIV></B>");    	
		    var prevMMYYYY = Calendario.calcula_mes_anyo(this.dameNumeroMes, this.gYear, -1);
	    	var prevMM = prevMMYYYY[0];
	    	var prevYYYY = prevMMYYYY[1];
		    var nextMMYYYY = Calendario.calcula_mes_anyo(this.dameNumeroMes, this.gYear, 1);
		    var nextMM = nextMMYYYY[0];
		    var nextYYYY = nextMMYYYY[1];	
		    this.wwrite("<TABLE WIDTH='100%' BORDER=0 CELLSPACING=0 CELLPADDING=0><TR><TD height='5'></TD></TR><TR><TD ALIGN=center>");
		    this.wwrite("<img alt='Aņo Anterior...' src='../Images/btnCalAnyoAnt.gif' onmouseover=\"this.src='../Images/btnCalAnyoAntOver.gif'\" onmouseout=\"this.src='../Images/btnCalAnyoAnt.gif'\" style='cursor:hand;' onclick=\"" +
			"javascript:window.opener.Build(" + 
			"'" + this.gReturnp_item + "', '" + this.dameNumeroMes + "', '" + (parseInt(this.gYear)-1) + "', '" + this.gFormat + "'" +
			");" +
			"\"></TD><TD ALIGN=center>");
		    this.wwrite("<img alt='Mes Anterior...' src='../Images/btnCalMesAnt.gif' onmouseover=\"this.src='../Images/btnCalMesAntOver.gif'\" onmouseout=\"this.src='../Images/btnCalMesAnt.gif'\" style='cursor:hand;' onclick=\"" +
			"javascript:window.opener.Build(" + 
			"'" + this.gReturnp_item + "', '" + prevMM + "', '" + prevYYYY + "', '" + this.gFormat + "'" +
			");" +
			"\"></TD><TD ALIGN=center>");
		    this.wwrite("<img alt='Cerrar...' src='../Images/btnCalCerrar.gif' onmouseover=\"this.src='../Images/btnCalCerrarOver.gif'\" onmouseout=\"this.src='../Images/btnCalCerrar.gif'\" style='cursor:hand;' onclick=\"javascript:window.close();\"></TD><TD ALIGN=center>");
		    this.wwrite("<img alt='Mes Siguiente...' src='../Images/btnCalMesSig.gif' onmouseover=\"this.src='../Images/btnCalMesSigOver.gif'\" onmouseout=\"this.src='../Images/btnCalMesSig.gif'\" style='cursor:hand;' onclick=\"" +
			"javascript:window.opener.Build(" + 
			"'" + this.gReturnp_item + "', '" + nextMM + "', '" + nextYYYY + "', '" + this.gFormat + "'" +
			");" +
			"\"></TD><TD ALIGN=center>");
		    this.wwrite("<img alt='Aņo Siguiente...' src='../Images/btnCalAnyoSig.gif' onmouseover=\"this.src='../Images/btnCalAnyoSigOver.gif'\" onmouseout=\"this.src='../Images/btnCalAnyoSig.gif'\" style='cursor:hand;' onclick=\"" +
			"javascript:window.opener.Build(" + 
			"'" + this.gReturnp_item + "', '" + this.dameNumeroMes + "', '" + (parseInt(this.gYear)+1) + "', '" + this.gFormat + "'" +
			");" +
			"\"></TD></TR><TR><TD height='5'></TD></TR></TABLE>");
		    vCode = this.getMonthlyCalendarioCode();
		    this.wwrite(vCode);
		    this.wwrite("</font></body></html>");
		    this.gWinCal.document.close();
	    }

	    /*funcion que define las propiedades de la ventana flotante,
	    escribe dentro el codigo inicial y la a bre*/
	    Calendario.prototype.showY = function() 
	    {
		    var vCode = "";
	    	var i;
	    	var vr, vc, vx, vy;
	    	var vxf = 285;		
	    	var vyf = 200;		
	    	var vxm = 10;		
	    	var vym;
	    	if (isIE)	
	            vym = 75;
	    	else if (isNav)	
	            vym = 25;	
	    	this.gWinCal.document.open();
	    	this.wwrite("<html>");
	    	this.wwrite("<head><title>Calendario</title>");
	    	this.wwrite("<style type='text/css'>\n<!--");
	     	for (i=0; i<12; i++) 
	        {
	            vc = i % 3;
	    		if (i>=0 && i<= 2)	vr = 0;
	    		if (i>=3 && i<= 5)	vr = 1;
	    		if (i>=6 && i<= 8)	vr = 2;
	    		if (i>=9 && i<= 11)	vr = 3;		
	    		vx = parseInt(vxf * vc) + vxm;
	    		vy = parseInt(vyf * vr) + vym;
	    		this.wwrite(".lclass" + i + " {position:absolute;top:" + vy + ";left:" + vx + ";}");
	    	}
		    this.wwrite("-->\n</style>");
	    	this.wwrite("</head>");
	    	this.wwrite("<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0" + 
			"link=\"" + this.gLinkColor + "\" " + 
			"vlink=\"" + this.gLinkColor + "\" " +
			"alink=\"" + this.gLinkColor + "\" " +
			"text=\"" + this.gTextColor + "\">");
	    	this.wwrite("<FONT FACE='" + familia_fuente + "' SIZE=1><B>");
	    	this.wwrite("Year : " + this.gYear);
	    	this.wwrite("</B><BR>");
		    var prevYYYY = parseInt(this.gYear) - 1;
	    	var nextYYYY = parseInt(this.gYear) + 1;	
	    	this.wwrite("<TABLE WIDTH='100%' BORDER=1 BORDERCOLOR=red CELLSPACING=0 CELLPADDING=0 BGCOLOR='#ffcc66'><TR><TD ALIGN=center>");
	    	this.wwrite("[<A HREF=\"" +
			"javascript:window.opener.Build(" + 
			"'" + this.gReturnp_item + "', null, '" + prevYYYY + "', '" + this.gFormat + "'" +
			");" +
			"\" alt='Prev Year'><<<\/A>]</TD><TD ALIGN=center>");
		    this.wwrite("[<A HREF=\"javascript:window.print();\">Print</A>]</TD><TD ALIGN=center>");
	    	this.wwrite("[<A HREF=\"" +
	    	"javascript:window.opener.Build(" + 
			"'" + this.gReturnp_item + "', null, '" + nextYYYY + "', '" + this.gFormat + "'" +
			");" +
			"\">>><\/A>]</TD></TR></TABLE><BR>");
	    	var j;
	    	for (i=11; i>=0; i--) 
	        {
	    		if (isIE)
	    			this.wwrite("<DIV ID=\"layer" + i + "\" CLASS=\"lclass" + i + "\">");
	    		else if (isNav)
	    			this.wwrite("<LAYER ID=\"layer" + i + "\" CLASS=\"lclass" + i + "\">");
	    		this.dameNumeroMes = i;
	    		this.dameMes = Calendario.get_month(this.dameNumeroMes);
	    		vCode = this.getMonthlyCalendarioCode();
	    		this.wwrite(this.dameMes + "/" + this.gYear + "<BR>");
	    		this.wwrite(vCode);
	    		if (isIE)
	     			this.wwrite("</DIV>");
	    		else if (isNav)
	    			this.wwrite("</LAYER>");
	    	}
	    	this.wwrite("</font><BR></body></html>");
	    	this.gWinCal.document.close();
	    }

	    /*funciones que pintan el string de las filas y celdas*/
	    Calendario.prototype.wwrite = function(wtext) 
	    {
		    this.gWinCal.document.writeln(wtext);
	    }

	    Calendario.prototype.wwriteA = function(wtext) 
	    {
		    this.gWinCal.document.write(wtext);
	    }

	    /*funcion que crea el string con las diferentes filas y celdas
	    del calendario en la ventana flotante*/
	    Calendario.prototype.cal_header = function() 
	    {
		    var vCode = "";	
	       	vCode = vCode + "<TR BGCOLOR='#006600'>";
	    		vCode = vCode + "<TD WIDTH='10%' align='center'><FONT SIZE='1' FACE='" + familia_fuente + "' COLOR='" + this.gHeaderColor + "'><B>Lun</B></FONT></TD>";
	    		vCode = vCode + "<TD WIDTH='10%' align='center'><FONT SIZE='1' FACE='" + familia_fuente + "' COLOR='" + this.gHeaderColor + "'><B>Mar</B></FONT></TD>";
	    		vCode = vCode + "<TD WIDTH='10%' align='center'><FONT SIZE='1' FACE='" + familia_fuente + "' COLOR='" + this.gHeaderColor + "'><B>Mie</B></FONT></TD>";
	    		vCode = vCode + "<TD WIDTH='10%' align='center'><FONT SIZE='1' FACE='" + familia_fuente + "' COLOR='" + this.gHeaderColor + "'><B>Jue</B></FONT></TD>";
	    		vCode = vCode + "<TD WIDTH='10%' align='center'><FONT SIZE='1' FACE='" + familia_fuente + "' COLOR='" + this.gHeaderColor + "'><B>Vie</B></FONT></TD>";
	    		vCode = vCode + "<TD WIDTH='10%' align='center'><FONT SIZE='1' FACE='" + familia_fuente + "' COLOR='" + this.gHeaderColor + "'><B>S&aacute;b</B></FONT></TD>";
					vCode = vCode + "<TD WIDTH='10%' align='center'><FONT SIZE='1' FACE='" + familia_fuente + "' COLOR='" + this.gHeaderColor + "'><B>Dom</B></FONT></TD>";
					vCode = vCode + "</TR>";	
	    	return vCode;
	    }

	    /*funcion que calculas las partes de la fecha actual y crea las celdas
			con los dias*/
	    Calendario.prototype.cal_data = function()
	    {
		    var vDate = new Date();
	    	vDate.setDate(1);
	    	vDate.setMonth(this.dameNumeroMes);
	    	vDate.setFullYear(this.gYear);
	    	var vFirstDay=vDate.getDay()-1;
	    	var vDay=1;
	    	var vLastDay=Calendario.get_diasdelmes(this.dameNumeroMes, this.gYear);
	    	var vOnLastDay=0;
	    	var vCode = "";
	    	vCode = vCode + "<TR ALIGN= center BGCOLOR='#FFFFFF'>";
	    	/*primera semana del mes*/
	        
	        /*si el primer dia de la semana cae en domingo*/
	        if(vFirstDay==-1)
	        {
	            for (i=0; i<6; i++) 
	            {
			        vCode = vCode + "<TD WIDTH='10%'" + this.write_festivos_string(i) + "><FONT SIZE='1' FACE='" + familia_fuente + "'>&nbsp;</FONT></TD>";
		        }
	            for (j=6; j<7; j++) 
	            {
	    		    vCode = vCode + "<TD onClick=\"self.opener.document." + this.gReturnp_item + ".value='" + this.format_data(vDay) + "';window.close();\" style='cursor:hand' WIDTH='10%'" + this.write_festivos_string(j) + "><FONT SIZE='1' FACE='" + familia_fuente + "'>" + 
							this.format_day(vDay) + 
				    "</FONT></TD>";
	    		    vDay=vDay+1;
	    	   }
	        }
	        /*si no cae en domingo*/
	        else
	        {
	            for (i=0; i<vFirstDay; i++) 
	            {
			        vCode = vCode + "<TD WIDTH='10%'" + this.write_festivos_string(i) + "><FONT SIZE='1' FACE='" + familia_fuente + "'>&nbsp;</FONT></TD>";
		        }
	    	for (j=vFirstDay; j<7; j++) 
	        {
	    		vCode = vCode + "<TD onClick=\"self.opener.document." + this.gReturnp_item + ".value='" + this.format_data(vDay) + "';window.close();\" style='cursor:hand' WIDTH='10%'" + this.write_festivos_string(j) + "><FONT SIZE='1' FACE='" + familia_fuente + "'>" + 
						this.format_day(vDay) + "</FONT></TD>";
	    		vDay=vDay+1;
	    	}
	        }
	    	vCode = vCode + "</TR>";
	    	for (k=2; k<7; k++) 
	        {
			    vCode = vCode + "<TR ALIGN= center BGCOLOR='#FFFFFF'>";
	            for (j=0; j<7; j++) 
	            {
				    vCode = vCode + "<TD onClick=\"self.opener.document." + this.gReturnp_item + ".value='" + this.format_data(vDay) + "';window.close();\" style='cursor:hand' WIDTH='10%'" + this.write_festivos_string(j) + "><FONT SIZE='1' FACE='" + familia_fuente + "'>" + 
			    		this.format_day(vDay) + "</FONT></TD>";
				    vDay=vDay + 1;
	        		if (vDay > vLastDay) 
	                {
					    vOnLastDay = 1;
	        			break;
		            }
			    }
			    if (j == 6)
				    vCode = vCode + "</TR>";
	            if (vOnLastDay == 1)
		        	break;
	         }
		     for (m=1; m<(7-j); m++) 
	         {
			     if (this.dameAnyo)
				     vCode = vCode + "<TD WIDTH='10%'" + this.write_festivos_string(j+m) + 
				     "><FONT SIZE='1' FACE='" + familia_fuente + "' COLOR='gray'> </FONT></TD>";
			    else
				    vCode = vCode + "<TD WIDTH='10%'" + this.write_festivos_string(j+m) + 
				    "><FONT SIZE='1' FACE='" + familia_fuente + "' COLOR='gray'>" + m + "</FONT></TD>";
		     }	
		     return vCode;
	     }

	    /*metodo para formatear el dia actual*/
	    Calendario.prototype.format_day = function(vday) 
	    {
		    var vNowDay = ahora.getDate();
	    	var vNowMonth = ahora.getMonth();
	    	var vNowYear = ahora.getFullYear();
	    	if (vday == vNowDay && this.dameNumeroMes == vNowMonth && this.gYear == vNowYear)
		    	return ("<FONT COLOR=\"RED\"><B>" + vday + "</B></FONT>");
	    	else
	    		return (vday);
	    }

	    /*metodo para formatear los dias festivos*/
	    Calendario.prototype.write_festivos_string = function(vday) 
	    {
		    var i;
		    for (i=0; i<festivos.length; i++) 
	        {
			    if (vday == festivos[i])
				    return (" BGCOLOR=\"" + festivosColor + "\"");
		    }	
		    return "";
	    }

	    /*metodo para formatear el resto de los dias en las diferentes formas posibles*/
	    Calendario.prototype.format_data = function(p_day) 
	    {
	    	var vData;
	    	var vMonth = 1 + this.dameNumeroMes;
	    	vMonth = (vMonth.toString().length < 2) ? "0" + vMonth : vMonth;
	    	var vMon = Calendario.get_month(this.dameNumeroMes).substr(0,3).toUpperCase();
	    	var vFMon = Calendario.get_month(this.dameNumeroMes).toUpperCase();
	    	var vY4 = new String(this.gYear);
	    	var vY2 = new String(this.gYear.substr(2,2));
	    	var vDD = (p_day.toString().length < 2) ? "0" + p_day : p_day;
	    	switch (this.gFormat) 
	        {
			    case "MM\/DD\/YYYY" :
			    	vData = vMonth + "\/" + vDD + "\/" + vY4;
				    break;
			    case "MM\/DD\/YY" :
				   vData = vMonth + "\/" + vDD + "\/" + vY2;
				    break;
			    case "MM-DD-YYYY" :
				    vData = vMonth + "-" + vDD + "-" + vY4;
				    break;
			    case "MM-DD-YY" :
				   vData = vMonth + "-" + vDD + "-" + vY2;
	               break;
			    case "DD\/MON\/YYYY" :
				    vData = vDD + "\/" + vMon + "\/" + vY4;
	    			break;
	    		case "DD\/MON\/YY" :
	    			vData = vDD + "\/" + vMon + "\/" + vY2;
	    			break;
	    		case "DD-MON-YYYY" :
	    			vData = vDD + "-" + vMon + "-" + vY4;
	    			break;
	    		case "DD-MON-YY" :
	    			vData = vDD + "-" + vMon + "-" + vY2;
	    			break;
	    		case "DD\/MONTH\/YYYY" :
	    			vData = vDD + "\/" + vFMon + "\/" + vY4;
	    			break;
	    		case "DD\/MONTH\/YY" :
	    			vData = vDD + "\/" + vFMon + "\/" + vY2;
	    			break;
	    		case "DD-MONTH-YYYY" :
	    			vData = vDD + "-" + vFMon + "-" + vY4;
	    			break;
	    		case "DD-MONTH-YY" :
	    			vData = vDD + "-" + vFMon + "-" + vY2;
	    			break;
	    		case "DD\/MM\/YYYY" :
	    			vData = vDD + "\/" + vMonth + "\/" + vY4;
	    			break;
	    		case "DD\/MM\/YY" :
	    			vData = vDD + "\/" + vMonth + "\/" + vY2;
	    			break;
	    		case "DD-MM-YYYY" :
	        		vData = vDD + "-" + vMonth + "-" + vY4;
	    			break;
	    		case "DD-MM-YY" :
	    			vData = vDD + "-" + vMonth + "-" + vY2;
	    			break;
	    		default :
				vData = vMonth + "\/" + vDD + "\/" + vY4;
		    }
		    return vData;
	    }

	    /*funcion que formatea los colores de los textos y fondo del calendario*/
	    function Build(p_item, mes, anyo, formato) 
	    {
		    var p_WinCal = calculo;
		    gCal = new Calendario(p_item, p_WinCal, mes, anyo, formato);
	    	gCal.gBGColor="#CDCB7B";
	    	gCal.gLinkColor="#333399";
	    	gCal.gTextColor="#333399";
	    	gCal.gHeaderColor="#FFFFFF";
	    	if (gCal.dameAnyo)	
	            gCal.showY();
	    	else
	            gCal.show();
	    }

	   /*funcion que muestra el calendario en la ventana flotante*/
	    function show_Calendario() 
	    {
			/*mes : 0-11 para Enero-Diciembre; 12para todos los meses.
				anyo	: con 4 digitos
				formato:formato de fechas (mm/dd/yyyy, dd/mm/yy, ...)
				item	: devuelve el Item.*/
	    	p_item = arguments[0];
	      	if (arguments[1] == null)
		    	mes = new String(ahora.getMonth());
	    	else
	    		mes = arguments[1];
	       	if (arguments[2] == "" || arguments[2] == null)
	    		anyo = new String(ahora.getFullYear().toString());
	    	else
	    		anyo = arguments[2];    	
	        if (arguments[3] == null)
	    		formato = "DD/MM/YYYY";
		    else
			    formato = arguments[3];
		    /*OJO: CONFIGURAR AQUI EL TAMAŅO DE LA VENTANA FLOTANTE*/
	        vWinCal = window.open("", "Calendario", "width=285,height=215,status=no,resizable=no,top=200,left=200");
		    vWinCal.opener = self;
		    calculo = vWinCal;
		    Build(p_item, mes, anyo, formato);
	    }
	    /*OJO: CONFIGURAR AQUI EL FORMATO DE LA FECHA*/
	    function show_yearly_Calendario(p_item, anyo, formato) 
	    {
		    /*formato por defecto*/
		    if (anyo == null || anyo == "")
			    anyo = new String(ahora.getFullYear().toString());
		    if (formato == null || formato == "")
			    formato = "DD/MM/YYYY";
		    var vWinCal = window.open("", "Calendario", "scrollbars=no");
		    vWinCal.opener = self;
		    calculo = vWinCal;
		    Build(p_item, null, anyo, formato);
	    }

	/*fin del fichero*/

