function deletePhoneEntry(myId){
    document.getElementById('tel_entry_tr_' + myId).innerHTML = '<td id="replaced_entry_td_' + myId + '" align=center colspan=10 style="font-weight: 900; color: red;">&nbsp;</td>';
    ajax.replace('index.php', 'replaced_entry_td_' + myId, 'post', 'ajaxAction=commands.php&action=delete_phone_entry&id=' + myId);
}

function changeCategoryAssign(myVal){
    if(myVal == "NEW"){
        document.getElementById('categoryInput').value = '';
        document.getElementById('categoryInput_div').style.display = '';
        document.getElementById('categoryInput').focus();
    }
    else{
        document.getElementById('categoryInput_div').style.display = 'none';
        document.getElementById('categoryInput').value = myVal;
    }
}