<!--
// ボタン１回あたりのページスクロールピクセル数
// カードデータの表示ピクセル数

y_max=200;
timer_Go = 0;timer_Back = 0;msg='';

function scrollGo(zx,zy){
	if((document.myform.xxx.value!=null && document.myform.stat.value=='go')
		||(document.myform.xxx.value!=null && document.myform.stat.value=='back')
		||(document.myform.xxx.value!=null && document.myform.stat.value=='stop'))
	{	clearTimeout(timer_Back);		x=document.myform.xxx.value;}
	else{	if(zx!=null){x=zx;}else{x=0;}}

	if((document.myform.yyy.value!=null && document.myform.stat.value=='go')
		||(document.myform.yyy.value!=null && document.myform.stat.value=='back')
		||(document.myform.yyy.value!=null && document.myform.stat.value=='stop'))
	{	clearTimeout(timer_Back);		y=document.myform.yyy.value;}
	else{	if(zy!=null){y=zy;}else{y=0;}}

		if (document.myform.aaa.value!='true')
		{
		scrollTo(x++,y++);

		mm=x;
		nn=y;
			
			if(y_max==y)
			{
				document.myform.aaa.value='true';
				msg='ページスクロール停止[x座標:'+ x +'][y座標:'+ y +']';
			}
			else
			{
				timer_Go=setTimeout('scrollGo(mm,nn)',5);
				msg='ページスクロールします[x座標:'+ x +'][y座標:'+ y +']';
				document.myform.stat.value='go';
				document.myform.xxx.value=x;
				document.myform.yyy.value=y;

			}
		status = msg;
			

		}else{
		clearTimeout(timer_Go);
		document.myform.xxx.value=x;
		document.myform.yyy.value=y;
		document.myform.stat.value='stop';
		}
}

function scrollBack(zx,zy){
	if((document.myform.xxx.value!=null && document.myform.stat.value=='go')
		||(document.myform.xxx.value!=null && document.myform.stat.value=='back')
		||(document.myform.xxx.value!=null && document.myform.stat.value=='stop'))
	{	clearTimeout(timer_Go);		x=document.myform.xxx.value;}
	else{	if(zx!=null){x=zx;}else{x=0;}}

	if((document.myform.yyy.value!=null && document.myform.stat.value=='go')
		||(document.myform.yyy.value!=null && document.myform.stat.value=='back')
		||(document.myform.yyy.value!=null && document.myform.stat.value=='stop'))
	{	clearTimeout(timer_Go);		y=document.myform.yyy.value;}
	else{	if(zy!=null){y=zy;}else{y=0;}}


if(y>=0){

		if (document.myform.aaa.value!='true')
		{
		scrollTo(x--,y--);
		mm=x;
		nn=y;
			if(y==0)
			{
				document.myform.aaa.value='true';
				msg='ページスクロール停止[x座標:'+ x +'][y座標:'+ y +']';
			}
			else
			{
				timer_Back=setTimeout('scrollBack(mm,nn)',5);
				msg='ページスクロール戻る[x座標:'+ x +'][y座標:'+ y +']';
				document.myform.stat.value='back';
				document.myform.xxx.value=x;
				document.myform.yyy.value=y;

			}
		status = msg;
			

		}else{
		clearTimeout(timer_Back);
		document.myform.xxx.value=x;
		document.myform.yyy.value=y;
		document.myform.stat.value='stop';
		}
}
}

function scrollTop(){
		clearTimeout(timer_Go);
		clearTimeout(timer_Back);

		x =0; y =0;
		scroll(x,y);
		msg='ページトップへ戻る[x座標:'+ x +'][y座標:'+ y +']';
		status = msg;
}
//-->