function diasonline(){
fecha= new Date();
hoy = new Date(fecha.getFullYear(),fecha.getMonth()+1,fecha.getDate());

// Reemplazar (2001,01,29) por la fecha de inicio de tu sitio (aaaa,mm,dd)
inicio = new Date(2003,11,14)

resta = hoy.getTime() - inicio.getTime();
resultado = Math.floor(resta/(1000*60*60*24));
document.write(""+resultado+" dias online");
}
