if(byId || !(el = document.getElementsByName(name)[0]))
el = document.getElementById(name);
}
if (el != null && el.focus) {
// The timeout is needed to prevent unpredictable behaviour on IE & Gecko.
// Using tmp var prevents crash on IE5
if(byId || !(el = document.getElementsByName(name)[0]))
el = document.getElementById(name);
}
if (el != null && el.focus) {
// The timeout is needed to prevent unpredictable behaviour on IE & Gecko.
// Using tmp var prevents crash on IE5