user = "dpt1";
domain = "cist-turismo";
type = "es";
conector = "@";
dot = ".";
function getmail(){
return user + conector + domain +  dot + type;
} 

function writemail(){
document.write("<a class='addressmail' href='mailto:" + getmail() + "'>" + getmail() + "</a>");
}

function showDate() {
var dia = new Array("Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sabado");
var mes = new Array("enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre");
var miFecha = new Date();
document.write(dia[miFecha.getDay()] +  ", " + miFecha.getDate() + " de " + mes[miFecha.getMonth()] + " de " + miFecha.getYear() );
}

function openwindow(url, title) { 
var left = (screen.availWidth - 700) / 2; 
var top = (screen.availHeight - 500) / 2;
var config="top=" + top + ", left=" + left + ",toolbar=yes,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=700,height=500"
window.open(url, title, config); 
}

