
//set focus on first input field
function foc() {
if (!document.getElementsByTagName) return false;
document.getElementsByTagName('input')[0].focus();
}

//run the function only after the page loads
window.onload = foc;

