/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function doFocus(formName, fieldName){

  var focusControl = document.forms[formName].elements[fieldName];

  if (focusControl.type != "hidden" && !focusControl.disabled && focusControl.style.display != "none") {
     focusControl.focus();
  }
}

