User:Memnochlv/vector.js

/* window.onload = function { setTimeout("document.forms[0].search.focus",1); }

window.onfocus = function { setTimeout("document.forms[0].search.focus",1); } /* function FocusSearchBox(e) {

var evtObj = document.event ? event : e //distinguish between IE's explicit event object (window.event) and Firefox's implicit. var unicode = evtobj.charCode ? evtobj.charCode : evtobj.keyCode var strKeyPressed = String.fromCharCode(unicode)

if ( strKeyPressed == "." ) setTimeout("document.forms[0].search.focus",1); }

document.onkeypress = FocusSearchBox