function selectFieldType(href, select)
{


    var fieldTypeId = select.options[select.selectedIndex].value;

    $.post(href, { action: 'select-field-type', type: fieldTypeId},

    function(data) {
        if(data == 'true') {
            $('#cc_form-row-values').show();
        }
        else {
            $('#cc_form-row-values').hide();
        }
    });
}

function deleteField(href, fieldID)
{
    if(confirm('Are you sure you wish to delete this field?')) {

        $.post(href, { action: "delete", field: fieldID},

        function(data) {
            $('#field-' + fieldID).hide('slow');
        });
    }
}

function markRead(fieldID, href)
{
   $.post(href, { action: "read", field: fieldID},

    function(data) {
        $('#field-' + fieldID).removeClass('strong');
    });
}