/** clear text field **/
function clearText(item, deleteOnThisText, password) {
        if (password == true)
                item.style.backgroundImage = 'none';
                //item.type = 'password';
        // If the text isn't equal to the default text then erase
        if (item.value == deleteOnThisText) {
                item.value = '';
                
                if (item.id == 'AliasWhitelist')
                        jQuery('#custom-alias').attr('disabled', false);
        }
        // If the value is blank then we reset it
        item.onblur = function() {
                if (!item.value) {
                        if (password == true)
                                item.style.backgroundImage = "url('../img/" + item.id + ".gif')";
                                //item.type = 'text';
                        else {
                                item.value = deleteOnThisText;
                                
                                if (item.id == 'AliasWhitelist')
                                        jQuery('#custom-alias').attr('disabled', true);
                        }
                }
        }
}
