function Gselectit() {
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.google.com/search?hl=en&q='+encodeURIComponent(t), 'dict', 'width=700,height=500,resizable=1,menubar=1,scrollbars=1,status=1,titlebar=1,toolbar=1,location=1,personalbar=1');
}   
}

function GNselectit() {
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://news.google.com/news?hl=en&tab=wn&ned=us&q='+encodeURIComponent(t), 'dict', 'width=700,height=500,resizable=1,menubar=1,scrollbars=1,status=1,titlebar=1,toolbar=1,location=1,personalbar=1');
}   
}


function Yselectit() {
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://search.yahoo.com/search?p='+encodeURIComponent(t), 'dict', 'width=700,height=500,resizable=1,menubar=1,scrollbars=1,status=1,titlebar=1,toolbar=1,location=1,personalbar=1');
}   
}

function Eselectit() {
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://search.ebay.com/search/search.dll?category0=&satitle='+encodeURIComponent(t), 'dict', 'width=700,height=500,resizable=1,menubar=1,scrollbars=1,status=1,titlebar=1,toolbar=1,location=1,personalbar=1');
}   
}

function Aselectit() {
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.amazon.com/exec/obidos/external-search/?keywords='+encodeURIComponent(t), 'dict', 'width=700,height=500,resizable=1,menubar=1,scrollbars=1,status=1,titlebar=1,toolbar=1,location=1,personalbar=1');
}   
}

function IMDBselectit() {
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.imdb.com/find?tt=on;nm=on;mx=20;q='+encodeURIComponent(t), 'dict', 'width=700,height=500,resizable=1,menubar=1,scrollbars=1,status=1,titlebar=1,toolbar=1,location=1,personalbar=1');
}   
}
