function xml() {
var req;
if(window.XMLHttpRequest){req = new XMLHttpRequest();} else if(window.ActiveXObject) {req = new ActiveXObject("Microsoft.XMLHTTP");
}
return req;}

function hndlid(id){var id;return id;}

var http = xml();
var tag = new hndlid(null);

function check(fl,id) {
var selectbox=document.forms[0].language;
var lang=selectbox.options[selectbox.selectedIndex].value;
var word=document.forms[0].word.value;

document.getElementById(id).innerHTML = '<span id="ldng"><img src="aj.gif" align="bottom" alt="Loading" />  Loading...</span>';
	http.open('get',fl+'?lang='+lang+'&word='+word);http.onreadystatechange=re;tag.id=id;http.send(null);}

function re() {
if(http.readyState==4&&http.status==200){
var res=http.responseText;
if(res) {document.getElementById(tag.id).innerHTML = res;}}
window.location='#r';}

   function dhtmlload(script,id)
   {
      var e = document.createElement("script");
	  e.innerHTML = script;
	  e.type="text/javascript";
	  document.getElementsById(id).appendChild(e);	  
   }
