<!--//
function getwords() {
	document.getElementById("results").innerHTML = '';
	if (document.getElementById("query").value != '') {
		callAHAH('pscript/search.dict.php?content='+document.getElementById("query").value, 'contentsearch','<br />&nbsp; <span style="color:#eee;">Finding possible words ... please wait</span>', 'Error');
	}
}

//doubleclick scriptOriginal:  Nick Simonov (nicks@iln.net)
var NS = (navigator.appName == "Netscape") ? 1 : 0;
if (NS) document.captureEvents(Event.DBLCLICK);
document.ondblclick = dict;

var newwin;
function dict() {
if (NS) {
t = document.getSelection();
dosearch(t);
}
else {
t = document.selection.createRange();
if(document.selection.type == 'Text' && t.text != '') {
document.selection.empty();
dosearch(t.text);
      }
   }
}
function dosearch(text) {
if (text > '') {
 window.location.href='http://www.creotec.com/dictionary/index.php?d=true&query='+text;
   }
}
//-->