window.onload = function () {
  moveFocusIfForm();
}

/**
 *
 */
function moveFocusIfForm() {
  var form = document.forms[0];
  
  if (form) {
    var inputs = document.getElementsByTagName('input');
    if (inputs && inputs[0]) {
      inputs[0].focus();
    }
  }
}

/**
 *
 */
function refreshParent() {

  // No, this may carry the logout query argument even though logging in
  // opener.location.reload();
  
  opener.location = 'index.pl';
}

/**
 * 
 */
function featureNotImplementedYet() {
  alert('This feature has not been implemented yet.');
  return false;
}