function armaLink(host,url,msg)
{
	var cadena = new String("");
	
	if (host == "10.20.152.73" || self.location.host == "biblioteca")
	{
		host='10.20.152.73';
	}
	else
	{
		host='biblioteca.afip.gov.ar';
	}


document.write('<a href=http://',host,url,'>',msg,'</a>');
}

//otra
function daFecha()
{
    days = new Array(7);
    days[1] = "Domingo";
    days[2] = "Lunes";
    days[3] = "Martes"; 
    days[4] = "Miercoles";
    days[5] = "Jueves";
    days[6] = "Viernes";
    days[7] = "Sabado";
    months = new Array(12)
    months[1] = "01";
    months[2] = "02";
    months[3] = "03";
    months[4] = "04";
    months[5] = "05";
    months[6] = "06";
    months[7] = "07";
    months[8] = "08";
    months[9] = "09";
    months[10] = "10"; 
    months[11] = "11";
    months[12] = "12";
    today = new Date(); 
    day = days[today.getDay()];

    month = months[today.getMonth() + 1];
    date = today.getDate() - 1;
    if (date == 0 )
	date = date + 1;

    year=today.getYear(); 

    if (year < 2000)
       year = year + 1900;
    
    document.writeln (date + "/" + month + "/" + year);    

}

//coloca el valor que recibe en la varible global
function colocaLink(linkAux)
{
	link = link.concat(linkAux);
	abreVentana();
}

function daValor()
{
document.write(link);
}
//Abre ventana
function abreVentana()
{
	var newWindow = String("");
   	newWindow=window.open("/agenda/generico_link.html");
	newWindow.focus();   
}
