> I'm getting a strange javascript error when I try to load a page. The > URL: http://www.businesstravelerusa.com/admin/login.php Change your function call as follows. onload="putFocus(0,'username')" At the moment, your function is trying to focus on a hidden field, which is the first element in the document.forms[0].elements array. I usually find it best to place all hidden fields right before the </form> tag. Regards Mark Howells <http://www.mark.ac/evl>