function xDay(y,m,d)
{
today = new Date();
xday = new Date(y,m-1,d);
n = Math.floor((xday.getTime()-today.getTime())/86400000)+1;
document.write(num2img(n));
}
function num2img(num){
num=""+num;
temp="";
for(var i=0;i<num.length;i++){
temp+="<img src=\"http://www.cssnite-ishikawa.jp/vol02/wp-content/themes/cssniteishikawa20/images/count/"+num.charAt(i)+".gif\">";
}
temp="<img src=\"http://www.cssnite-ishikawa.jp/vol02/wp-content/themes/cssniteishikawa20/images/count/0.gif\">"+temp

return temp;
}

