/* ぺぺぺぺ */

	function returnImageData (imgWidth, imgHeight, imgData) {
		//alert(imgWidth +" x "+ imgHeight);
		document.bbsForm.imgWidth.value = "";
		document.bbsForm.imgHeight.value = "";
		document.bbsForm.imgData.value = "";

		if (Number(imgWidth)>0) {
			if (!confirm("一度投稿すると再編集出来ません。\n確認画面へ進んでよろしいですか？")) {
				return;
			}
			document.bbsForm.imgWidth.value = imgWidth;
			document.bbsForm.imgHeight.value = imgHeight;
			document.bbsForm.imgData.value = imgData;
		} else {
			return false;
		}
		document.bbsForm.submit();
	}

	function imageBbsSubmit() {
		capture();
		return false;
	}

	function undo() {
	/* Call a function registered as callPlayBall in the SWF named myMovie. */
		getMovieName("oekaki").undo();
	}

	function capture() {
	/* Call a function registered as callPlayBall in the SWF named myMovie. */
		getMovieName("oekaki").capture();
	}
	/* This utility function resolves the string movieName to a Flash object reference based on browser type. */
	function getMovieName(movieName) {
		if (navigator.appName.indexOf("Microsoft") != -1) {
//			return window[movieName]
			return document.getElementById(movieName);
		}
		else {
			return document[movieName]
		}
	}



