var formInUse = false;

function setFocus()
{
 if(!formInUse) {
  document.checkForm.myusername.focus();
 }
}