function daysFrom(y,m,d) {
var t = new Date();
var s = new Date(y,m-1,d);
return Math.floor((t.getTime() - s.getTime())/86400000);
}
function toCommaFormat(v){
var sep = /(\d+)(\d{3})/;
v = v + "";
while(sep.test(v)) v = v.replace(sep, "$1,$2");
return v;
}
function displayDays(){ 
var length1 = toCommaFormat(daysFrom(1999,12,8));
var length2 = toCommaFormat(daysFrom(2004,6,10));
document.getElementById("age").innerHTML="<p>- ウェブサイト開設から " + length2 + " 日が経ちました - 弁理士登録から " + length1 + " 日が経ちました -</p>";
}

