Unless the "field" parameter is an object, such as 'this'.
Then you'll have to do:
function setfocus(field) {
document.grid.elements[field].focus();
el.focus();
}
*cLFlaVA
----------------------------
Ham and Eggs walks into a bar and asks, "Can I have a beer please?"
The bartender replies, "I'm sorry, we don't serve breakfast.