//don't forget to add <body ondblclick="dictionary()">
function dictionary() {
if (navigator.appName!='Microsoft Internet Explorer') {
	var t = document.getSelection();
	od(t);
	}
else {
	var t = document.selection.createRange();
	if(document.selection.type == 'Text' && t.text>'') {
		document.selection.empty();
		od(t.text);}
   }
function od(t) {
while (t.substr(t.length-1,1)==' ') 
	t=t.substr(0,t.length-1)
while (t.substr(0,1)==' ') 
	t=t.substr(1)
if (t) window.open('http://www.oup.com/oald-bin/web_getald7index1a.pl?search_word='+encodeURIComponent(t), 'dict', 'width=620,height=450,left=320,top=200,resizable=0,menubar=0,scrollbars=1,status=0,titlebar=1,toolbar=0,location=0,personalbar=0');
}   
}
status='Double-click any word to get its definitions in the Oxford Advanced Learners Dictionary.'
document.ondblclick=dictionary //works for IE only. For NS add <body ondblclick="dictionary()">
