function findeFlash (flash) {
	if (document.all) {
		if (document.all[flash]) {
			return document.all[flash];
		}
		if (window.opera) {
			var movie = eval(window.document + flash);
			if (movie.SetVariable) {
				return movie;
			}
		}
		return;
	}
	if(document.layers) {
		if(document.embeds[flash]) {
			var movie = document.embeds[flash];
			if (movie.SetVariable) {
				return movie;
			}
		}
		return;
	}
	if (!document.getElementById) {
		return;
	}
	var movie = document.getElementById(flash);
	if (movie.SetVariable) {
		return movie;
	}
	var movies = movie.getElementsByTagName('embed');
	if (!movies || !movies.length) {
		return;
	}
	movie = movies[0];
	if (movie.SetVariable) {
		return movie;
	}
	return;
}



function submitSoneInput(element) {
	var sonwWertJS = String(element.value);
	submitSone(soneWertJS);
}
function submitSone(soneWertJS) {
	var mov = findeFlash("flashNoiseSimulator");
	if(mov != "undefined" && mov != null && mov.flashReceiveSone) {
		mov.flashReceiveSone(soneWertJS*2);
	}
}
function flashAlert(message) {
	alert(message);
}


