﻿function load() {
var inp = document.getElementsByTagName("input");
for (var i=0; i<inp.length; i++) {
    if (inp[i].type == 'text') {
    inp[i].value = '';
    }
}
/*var ta = document.getElementsByTagName("caption");
for (var i=0; i<ta.length; i++) {
    ta[i].innerHTML = '';
}*/
}
function formatcal() {
var texto = document.getElementById("ctl00_Content1_Calendar1").innerHTML;
do {

    texto = texto.replace('viernes','Divendres');

} while(texto.indexOf('viernes') >= 0);
alert(texto);
document.getElementById("cal").innerHTML = texto;
}