// JavaScript Document
function smiley(code){
	var cache = document.q_add.tresc.value;
	this.code = code;
	document.q_add.tresc.value = cache + "<img src='/img/smileys/" + code + ".gif'>";
	document.q_add.tresc.focus();
}

// F. Permadi May 2000 - thanks to the author for the hint & inspiration!
function getMovie(mName){
	
	if (window.document[mName]){
		return window.document[mName];
	}

	if (navigator.appName.indexOf("Microsoft Internet")==-1){
	
		if (document.embeds && document.embeds[mName]){
			return document.embeds[mName];
		}
	}
	else{
		return document.getElementById(mName);
	}
}

function SendData(dir,word){
	var flashMovie=getMovie("play_but");
	flashMovie.SetVariable("/:myword", word);
	flashMovie.SetVariable("/:dir2", dir);
	flashMovie.SetVariable("/:is_playing", "1");
	  
}
