document.write('<div style="background:url(../img_timer/timer_bg.jpg) no-repeat 0 0; width:680px; height:40px; padding:0 0 0 20px; margin:0">');
document.write('<div style="float:left;"><img src="img_timer/0.gif" width="25" height="40" name="h1" /></div>');
document.write('<div style="float:left;"><img src="img_timer/0.gif" width="25" height="40" name="h2" /></div>');
document.write('<div style="float:left;"><img src="img_timer/ten.gif" width="15" height="40" name="ten" /></div>');
document.write('<div style="float:left;"><img src="img_timer/0.gif" width="25" height="40" name="m1" /></div>');
document.write('<div style="float:left;"><img src="img_timer/0.gif" width="25" height="40" name="m2" /></div>');
document.write('</div>');

var flag = 0;

function clock(){
  dd   = new Date();

  hour   = dd.getHours();
  hour2  = hour % 10;
  hour1  = (hour-hour2) / 10 ;

  mine   = dd.getMinutes();
  mine2  = mine % 10;
  mine1  = (mine - mine2) / 10;
  
  sec    = dd.getSeconds();
  sec2   = sec % 10;
  sec1   = (sec - sec2) / 10;
  
document.h1.src =  "img_timer/" + hour1 + ".gif";
document.h2.src =  "img_timer/" + hour2 + ".gif";
document.m1.src =  "img_timer/" + mine1 + ".gif";
document.m2.src =  "img_timer/" + mine2 + ".gif";



if(flag == 0){
	// テキストフィールドにデータを渡す処理
	document.ten.src = "img_timer/ten.gif";
	flag = 1;
	}
	else{
	// テキストフィールドにデータを渡す処理
	document.ten.src = "img_timer/non.gif";
	flag = 0;
	}

}

setInterval("clock()",1000);
