// dia i data by Spotnick © 2003
days = new Array(7)
days[1] = "Diumenge";
days[2] = "Dilluns";
days[3] = "Dimarts"; 
days[4] = "Dimecres";
days[5] = "Dijous";
days[6] = "Divendres";
days[7] = "Dissabte";
months = new Array(12)
months[1] = "gen.";           
months[2] = "feb.";
months[3] = "mar.";
months[4] = "abr.";
months[5] = "mai.";
months[6] = "jun.";
months[7] = "jul.";
months[8] = "ago.";
months[9] = "set.";
months[10] = "oct."; 
months[11] = "nov.";
months[12] = "des.";
today = new Date(); day = days[today.getDay() + 1]
month = months[today.getMonth() + 1]
date = today.getDate()
year=today.getYear(); 
if (year < 2000)
year = year + 1900;
ladata = day + ", " + date + " " + month + " de " + year;
ladataPHP = "<input name='data' type='hidden' value='"+ladata+"'>";