/*------------------------------------------------------------
	メニュー画像の入れ替え
--------------------------------------------------------------*/

// 画像がクリックされたら画像を入れ替える
// img0.jpg,img1.jpgなどの数字が続いたファイルを複数用意します。
	num = 2; // 入れ替える画像の枚数(最初の画像も含める)
	nme = "image/menu" // 画像のディレクトリとファイル名の数字と拡張子より前の部分
	exp = "gif" // 拡張子
	cnt = 0;
	function changeImage() {
	  cnt++;
	  cnt %= num;
	  document.img.src = nme + cnt + "." + exp;
	}
		
	function alt() {
		window.alert ( document.images[0].name ) ;
	}

// プルダウンメニューを表示させる処理です。
	function oritatami(id){
		obj=(document.all)?document.all(id):((document.getElementById)?document.getElementById(id):null);
		if(obj)	obj.style.display=(obj.style.display=="none")?"block":"none";
	}


	function myChgPic(myPicURL){
	   document.images["img"].src = myPicURL;
	}

	function myChgPic5(myPicURL){
	   document.images["img5"].src = myPicURL;
	}

	function myChgPic6(myPicURL){
	   document.images["img6"].src = myPicURL;
	}

// 画像を入れ替える処理です。
	function swImg(iName,str){
		document.images[iName].src = str;
	}

	x = 0;
	function moveBG(){
		document.body.style.backgroundPositionX = x++;
		setTimeout("moveBG()",100);
	}

	function change(obj,size){
		obj.style.fontSize        = size;
	}

// 右クリックすると警告ウィンドウを表示する処理です。
	function alt() {
		window.alert("右クリック禁止");
	}

// 二重送信を防ぐ処理です。
	flag = false;
	function send()
	{
		if (flag) { alert("送信済みです"); return false; }
		flag = true;
		return true;
	}

