

function fieldFocus(field) {
if(document.oml  && field) {
  document.oml.elements[field].focus();
  }
}


function warn() {
  if(window.confirm("WARNING!\n\nThis will permanently delete all records.\n\nAre you sure you want to continue?")){
  document.oml.submit();
  }
}


//   POP-UP for Help
function NewHelpWindow(mypage) {
win = window.open(mypage, "help", 'height=300,width=550,top=10,left=10,scrollbars=1,resizable');
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


// Begin  POP-UP for Use form
function NewUserWindow(mypage) {
win = window.open(mypage, "profile", 'height=700,width=600,top=10,left=10,scrollbars=1,resizable');
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

