
    $r  = '#RECORD_ID#';
    $f  = '#sob_all_zzzzsys_form_id#';
    $o  = '#sob_all_id#';

    $s  = "
    
        SELECT COUNT(*) 
        FROM zzzzsys_object
        WHERE sob_all_zzzzsys_form_id = '$f'
        AND sob_all_id = '$o'
        AND zzzzsys_object_id != '$r'

        ";

    $t  = nuRunQuery($s);
    $r  = db_fetch_row($t);
    
    if($r[0] > 0){
        nuDisplayError('This <b>ID</b> is already used on this Form..');
    }

    $o = '#sob_all_type#';

    if('#sob_all_zzzzsys_tab_id#'   == ''){nuDisplayError('Type Cannot Be Blank..', 'sob_all_zzzzsys_tab_idcode');}
    if('#sob_all_type#'             == ''){nuDisplayError('Type Cannot Be Blank..', 'sob_all_type');}
    if('#sob_all_zzzzsys_form_id#'  == ''){nuDisplayError('Tab - Form Cannot Be Blank..', 'sob_all_zzzzsys_form_idcode');}
    if('#sob_all_id#'               == ''){nuDisplayError('ID Cannot Be Blank..', 'sob_all_id');}
    if('#sob_all_label#'            == ''){nuDisplayError('Label Cannot Be Blank..', 'sob_all_label');}
    if('#sob_all_top#'              == ''){nuDisplayError('Top Cannot Be Blank..', 'sob_all_top');}
    if('#sob_all_left#'             == ''){nuDisplayError('Left Cannot Be Blank..', 'sob_all_left');}
    if('#sob_all_width#'            == ''){nuDisplayError('Width Cannot Be Blank..', 'sob_all_width');}
    if('#sob_all_height#'           == ''){nuDisplayError('Height Cannot Be Blank..', 'sob_all_height');}
    if('#sob_all_cloneable#'        == ''){nuDisplayError('Cloneable Cannot Be Blank..', 'sob_all_cloneable');}
    if('#sob_all_align#'            == ''){nuDisplayError('Align Cannot Be Blank..', 'sob_all_align');}
    if('#sob_all_validate#'         == ''){nuDisplayError('Validation Cannot Be Blank..', 'sob_all_validate');}
    if('#sob_all_access#'           == ''){nuDisplayError('Read Only Cannot Be Blank..', 'sob_all_access');}


    if($o == 'display'){
        if('#sob_display_sql#'   == ''){nuDisplayError('Display Cannot Be Blank..','sob_display_sql');}
    }

    if($o == 'html'){
        
        if('#sob_html_code#'   == '' && '#sob_html_chart_type#'   == ''){nuDisplayError('HTML Fields Cannot Both Be Blank..','sob_html_code');}
        if('#sob_html_javascript#'   == '' && '#sob_html_chart_type#'   != ''){nuDisplayError('HTML Javascript Array Cannot Be Blank..','sob_html_javascript');}
        
    }
    
    

    if($o == 'lookup'){
        if('#sob_lookup_zzzzsys_form_id#'   == ''){nuDisplayError('Form Cannot Be Blank..', 'sob_lookup_zzzzsys_form_idcode');}
        if('#sob_lookup_code#'   == ''){nuDisplayError('Code Cannot Be Blank..', 'sob_lookup_code');}
        if('#sob_lookup_description#'   == ''){nuDisplayError('Descrition Cannot Be Blank..', 'sob_lookup_description');}
        if('#sob_lookup_description_width#'   == ''){nuDisplayError('Width Cannot Be Blank..', 'sob_lookup_description_width');}
    }

    if($o == 'run'){
        if('#sob_run_zzzzsys_form_id#'   == ''){nuDisplayError('Run Cannot Be Blank..', 'sob_run_zzzzsys_form_idcode');}
        if('#sob_run_method#'   == ''){nuDisplayError('Method Cannot Be Blank..', 'sob_run_method');}
    }


    if($o == 'input'){
        
        if('#sob_input_type#'   == ''){nuDisplayError("Input's Input Type Cannot Be Blank..", 'sob_input_type');}
        
        if('#sob_input_type#' == 'nuNumber' || '#sob_input_type#' == 'nuDate'){
            if('#sob_input_format#' == ''){nuDisplayError("Input Format Cannot Be Blank..", 'sob_input_format');}
        }
        
        if('#sob_input_type#' == 'nuAutoNumber'){
            if('#sob_input_count#' == ''){nuDisplayError("Next Number Cannot Be Blank..", 'sob_input_format');}
        }
        
    }


    if($o == 'select'){
        if('#sob_select_multiple#'   == ''){nuDisplayError('Multiple Cannot Be Blank..', 'sob_select_multiple');}
        if('#sob_select_sql#'   == ''){nuDisplayError('SQL/List Cannot Be Blank..', 'sob_select_sql');}
    }
    

    if($o == 'subform'){
        if('#sob_subform_zzzzsys_form_id#'   == ''){nuDisplayError('Form Cannot Be Blank..', 'sob_subform_zzzzsys_form_idcode');}
        if('#sob_subform_foreign_key#'   == ''){nuDisplayError('Foreign Key Cannot Be Blank..', 'sob_subform_foreign_key');}
        if('#sob_subform_add#'   == ''){nuDisplayError('Addable Cannot Be Blank..', 'sob_subform_add');}
        if('#sob_subform_delete#'   == ''){nuDisplayError('Deletable Cannot Be Blank..', 'sob_subform_delete');}
        if('#sob_subform_type#'   == ''){nuDisplayError('Type Cannot Be Blank..', 'sob_subform_type');}
    }

    if($o == ''){
        if('#sfo_browse_sql#'   == ''){nuDisplayError('Browse SQL Cannot Be Blank..', 'sfo_browse_sql');}
    }
