//++Clear/Restore VALUE Text inside Search Field On Focus/Blur
function clearText(thefield){ if (thefield.defaultValue==thefield.value)
thefield.value="" }
function restoreText(thefield){ if (thefield.value=="")
thefield.value=thefield.defaultValue}

//++Move user-selected text to the search field
function display() {
if (Document.getSelection) { var str=Document.getSelection(); }
else if (Docu0ment.Selection && Document.Selection.createRange)
{ var range=Document.Selection.createRange();
var str=range.text; }
Window.search.terms.value=str;
}

if (window.Event)
document.captureEvents(Event.MOUSEUP);
document.onmouseup=display;

document.write('<FORM NAME=search METHOD=post ACTION="http://www.davidphenry.com/search/search.pl"><INPUT TYPE=text TITLE="Type what you would like to search for and hit Return" OnFocus="this.className=\'nextbuttonOn\'; clearText(this)" OnBlur="this.className=\'nextbutton\'; restoreText(this)" OnMouseOver="this.className=\'nextbuttonOn\'; window.status=\'Moteur de Recherche: Tapez ce que vous voulez rechercher ici, et faites Retour\'; return true;" OnMouseOut="this.className=\'nextbutton\'" CLASS=nextbutton NAME=terms VALUE="Search Engine" SIZE=20><INPUT TYPE=hidden NAME=boolean VALUE=And><INPUT TYPE=hidden NAME=case VALUE=Insensitive></FORM>');
