function search()
{
	var whattxt=document.getElementById("search").value;
	if (! whattxt) alert(catchword_please);
	if (! whattxt) return;
	var what = new RegExp(whattxt, "i");
	var key;
	var fkey;
	var akey;
	var tkey;
	var t;
	for (wi=0;wi < 20; wi++)
	{
		var where=document.getElementById("catchwords"+wi);
		if (! where) break;
		for (ki=0;ki < where.cells.length; ki++)
		{
			t = where.cells[ki];
			t.bgColor=key_bgcolor;
			t.onmouseout=function(){this.bgColor=key_bgcolor};
			akey = t.firstChild;
			if (! akey) continue;
			tkey = akey.firstChild;
			if (! tkey) continue;
			fkey = tkey.firstChild;
			if (! fkey) continue;
			key = fkey.nodeValue;
			if (! key) continue;
			if (key.match(what,"i")) 
			{
				t.bgColor=key_high;
				t.onmouseout=function(){this.bgColor=key_high};
			}
		}
	}
	var infomail=document.getElementById("infomail");
	if (infomail) {
		infomail.href=infotext + whattxt;
	}
}
function KeyDownHandler(event, btn)
    {
        // process only the Enter key
        if (event.keyCode == 13)
        {
            // cancel the default submit
            event.returnValue=false;
            event.cancel = true;
            // submit the form by programmatically clicking the specified button
            _db_ctl=document.getElementsByName(btn)[0];
	    _db_ctl.click();
        }
    }	

