var nameTextbox, emailTextbox;

function displayContact(name, email) {
    nameTextbox = name;
    emailTextbox = email;
    $('#basicModalContent').modal();
}

function displayUniqueIds(detail) {
    $('#basicModalContent').html(detail);
    $('#basicModalContent').modal();
}

function entsub(event, button) {
  if (window.event && window.event.keyCode == 13) {
    bt = document.getElementById(button);
    bt.click();
    return false;
  } else {
    return true;
  }

  if (event && event.which == 13) {
    bt = document.getElementById(button.id);
    bt.click();
    return false;
  } else {
    return true;
  }
}
    
function displayTo(from, to) {
    fromObj = document.getElementById(from);
    toObj = document.getElementById(to)
    //alert(to);
    toObj.value = fromObj.value;
}

function fillSelected(name, email) {
    document.getElementById(nameTextbox).value = name;
    document.getElementById(nameTextbox).focus();
    document.getElementById(emailTextbox).value = email;
    document.getElementById(emailTextbox).focus();
    $('a.modalCloseImg').click();
}