contextlevel < CONTEXT_COURSE) { echo '' . '<' . 'input type="text" name="searchtext" id="searchtext" size="30" defaultvalue="" value="' . $searchtext . '"' . 'onKeydown="var keyCode = event.which ? event.which : event.keyCode; if (keyCode == 13) {document.assignoneuserform.userselect.selectedIndex=-1; document.assignoneuserform.submit();} "' . '/>'; } ?> contextlevel < CONTEXT_COURSE) { echo '<' . 'input name="search" id="search" type="submit" value="'.$strsearch.'"' . 'onClick="' . ' document.assignoneuserform.userselect.selectedIndex=-1;' . '"' . '/>'; } ?> ' . "\n"; } ?>