// dict.js

window.onload= function(){
	document.forms['f'].w.focus()

if (ie4||Ope||Saf) {
document.body.ondragenter=cursorToCopy
document.body.ondragover=cursorToCopy
document.body.ondrop= txtdropped
document.body.onDrop= txtdropped
}
if(document.addEventListener) {
	document.addEventListener('ondrop', txtdropped, false);
}
document.forms[0].onsubmit=function(e){return validate()};

}

function txtdropped(e){
	fnGetInfo()}

function validate(f){
if (!f) f='f'
if (!document.forms[f])f=0
var w=document.forms[f].w.value
	if (w.length==0){alert('Type a word before pressing Look Up'); return false}
	if (bU) if (bU=="http://lookwayup.com/free") document.cookie = 'LANG=Non; path=/lwu.exe'; // session cookie to kill previous
	if (w.length>20) if(w.split(' ').length>2){
		if (confirm('Translate this text instead of looking up a word in the dictionary?')) {document.location='trans.htm#!!'+w; return false}
	}
	document.forms[f].submit();
	return false;
}
document.cookie = 'JS=1; path=/';