<!-- 
//This code will set focus to the first textbox or select (drop-down) on the page after the page loads
 
    //Ensure page is loaded before running the script
    document.OnLoad = focus();
    
    function focus()
    {   
	    var bFound = false;
        try{
            // for each form
            for (f=0; f < document.forms.length; f++)
            {
                // for each element in each form
                for(i=0; i < document.forms[f].length; i++)
                {
                    // if it's not disabled
                    if (document.forms[f][i].disabled != true)
                    {
                        // and it is a textbox or drop-down
                        if ((document.forms[f][i].type =="text" || document.forms[f][i].tagName == "SELECT"))
                        {
                            // set focus to it
                            document.forms[f][i].focus();
                            var bFound = true;
                        }
                     }
                    // if found in this element, stop looking
                    if (bFound == true)
                        break;
                }
              // if found in this form, stop looking
              if (bFound == true)
                    break;   
             }  
        // force page to scroll to the top
        scroll(0,0)
        }  
        catch(e){}
     }  
//-->