function Search(entry)
{
var position = document.forms[0].SearchIn.selectedIndex;
var optionlist = document.forms[0].SearchIn; 
var choice = optionlist.options[position].value;
out = " "; // replace this
add = "+"; // with this
temp = "" + entry; // temporary holder
if (entry != '') {
while (temp.indexOf(out)>-1) {
pos= temp.indexOf(out);
temp = "" + (temp.substring(0, pos) + add + 
temp.substring((pos + out.length), temp.length));
}

if (choice==0)
SearchURL="http://rsnaindex.rsnajnls.org/collsearchcgi/subjectfind.cgi?COLLECTION_ID="+temp+"&sendit=Search"
if (choice==1)
SearchURL="http://omni.ac.uk/search/search.html?hub=biome&hublet=omni&stemming=true&fieldname=all&titles_only=false&uk_only=false&sort_by=title&limit=10&maxrecs=200&category=any&is_simple=false&query=" + temp;
if (choice==2)
SearchURL= "http://www3.ncbi.nlm.nih.gov/htbin-post/Entrez/query?db=0&form=1&term=" + temp;
if (choice==3)
SearchURL= "http://uk.search.yahoo.com/search/ukie?p=" + temp +"&y=y";
if (choice==4)
SearchURL="http://www.lycos.co.uk/cgi-bin/pursuit?matchmode=and&mtemp=main.sites&etemp=error&query=" + temp + "&cat=lycos&x=21&y=4";
if (choice==5)
SearchURL ="http://infoseek.go.com/Titles?col=WW&qt=" + temp + "&svx=home_searchbox&sv=IS&lk=noframes";
if (choice==6)
SearchURL ="http://www.altavista.com/cgi-bin/query?pg=q&sc=on&hl=on&q=" + temp + "&kl=XX&stype=stext&search.x=26&search.y=13";
if (choice==7)
SearchURL ="http://www.google.com/search?q=" + temp + "&btnG=Google+Search";
winwidth=680
if (screen.width>800){winwidth=800} 
var windowprops = "height=400,width="+winwidth+",location=no,"
+ "scrollbars=yes,menubar=yes,toolbars=no,location=no,status=yes,resizable=yes,screenX=50,screenY=50,top=50,left=50";
popupWin = window.open(SearchURL,'new',windowprops);
popupWin.focus();
} else {
alert("You must enter a phrase to search for.")
}
}

function formHandler(form) {
winwidth=680;
if (screen.width>800){winwidth=800}
var windowprops = "height=400,width="+winwidth+",location=no,"
+ "scrollbars=yes,menubar=yes,toolbars=yes,location=yes,status=yes,resizable=yes,screenX=50,screenY=50,top=50,left=50";
var URL = form.site.options[form.site.selectedIndex].value;
if (URL=="")return false;
popupWin = window.open(URL,"new",windowprops);
popupWin.focus();
}
