/*
 * Keyup Validation in Product Settings
 */
jQuery( function () {

    if ( jQuery( '#rs_select_serach_user_or_user_role' ).val() == '1' ) {
        jQuery( '#rs_search_user_role_for_user_reward_points_log' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_select_user_for_reward_log' ).closest( 'tr' ).show() ;
    } else {
        jQuery( '#rs_search_user_role_for_user_reward_points_log' ).closest( 'tr' ).show() ;
        jQuery( '#rs_select_user_for_reward_log' ).closest( 'tr' ).hide() ;
    }
    jQuery( '#rs_select_serach_user_or_user_role' ).change( function () {
        if ( jQuery( '#rs_select_serach_user_or_user_role' ).val() == '1' ) {
            jQuery( '#rs_search_user_role_for_user_reward_points_log' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_select_user_for_reward_log' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_search_user_role_for_user_reward_points_log' ).closest( 'tr' ).show() ;
            jQuery( '#rs_select_user_for_reward_log' ).closest( 'tr' ).hide() ;
        }
    } ) ;

    if ( jQuery( '#rs_send_mail_payment_gateway' ).is( ':checked' ) == true ) {
        jQuery( '#rs_email_subject_payment_gateway' ).closest( 'tr' ).show() ;
        jQuery( '#rs_email_message_payment_gateway' ).closest( 'tr' ).show() ;
    } else {
        jQuery( '#rs_email_subject_payment_gateway' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_email_message_payment_gateway' ).closest( 'tr' ).hide() ;
    }

    jQuery( '#rs_send_mail_payment_gateway' ).change( function () {
        if ( jQuery( '#rs_send_mail_payment_gateway' ).is( ':checked' ) == true ) {
            jQuery( '#rs_email_subject_payment_gateway' ).closest( 'tr' ).show() ;
            jQuery( '#rs_email_message_payment_gateway' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_email_subject_payment_gateway' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_email_message_payment_gateway' ).closest( 'tr' ).hide() ;
        }
    } ) ;

    if ( jQuery( '#rs_send_mail_point_url' ).is( ':checked' ) == true ) {
        jQuery( '#rs_email_subject_point_url' ).closest( 'tr' ).show() ;
        jQuery( '#rs_email_message_point_url' ).closest( 'tr' ).show() ;
    } else {
        jQuery( '#rs_email_subject_point_url' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_email_message_point_url' ).closest( 'tr' ).hide() ;
    }

    jQuery( '#rs_send_mail_point_url' ).change( function () {
        if ( jQuery( '#rs_send_mail_point_url' ).is( ':checked' ) == true ) {
            jQuery( '#rs_email_subject_point_url' ).closest( 'tr' ).show() ;
            jQuery( '#rs_email_message_point_url' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_email_subject_point_url' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_email_message_point_url' ).closest( 'tr' ).hide() ;
        }
    } ) ;
    // Confirm Dialog for Resetting the Tab

    jQuery( '#resettab' ).click( function ( e ) {
        var status = confirm( rewardsystem.reset_confirm_msg ) ;
        if ( status === true ) {
        } else {
            e.preventDefault() ;
        }
    } ) ;

    jQuery( '.button-primary' ).click( function ( e ) {
        if ( jQuery( '#_rs_select_referral_points_referee_time_content' ).val() != '' && jQuery( '#_rs_days_for_redeeming_points' ).val() != '' ) {
            var referral_points_referee_time_content = Number( jQuery( '#_rs_select_referral_points_referee_time_content' ).val() ) ;
            var days_for_redeeming_points = Number( jQuery( '#_rs_days_for_redeeming_points' ).val() ) ;
            if ( referral_points_referee_time_content > days_for_redeeming_points ) {
                e.preventDefault() ;
                jQuery( '#_rs_days_for_redeeming_points' ).focus() ;
                jQuery( "#_rs_days_for_redeeming_points" ).after( "<div class='validation' style='color:red;margin-bottom: 20px;'>Please enter</div>" ) ;
            }
        }
    } ) ;


    //To show or hide gift icon
    if ( jQuery( '#_rs_enable_disable_gift_icon' ).val() == '2' ) {
        jQuery( '#rs_image_url_upload' ).parent().parent().hide() ;
    } else {
        jQuery( '#rs_image_url_upload' ).parent().parent().show() ;
    }

    jQuery( '#_rs_enable_disable_gift_icon' ).change( function () {
        if ( jQuery( '#_rs_enable_disable_gift_icon' ).val() == '2' ) {
            jQuery( '#rs_image_url_upload' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_image_url_upload' ).parent().parent().show() ;
        }
    } ) ;

    /*Show or Hide for bbPress - Start*/
    if ( jQuery( '#rs_enable_reward_points_for_create_topic' ).is( ":checked" ) == false ) {
        jQuery( '#rs_reward_points_for_creatic_topic' ).parent().parent().hide() ;
    } else {
        jQuery( '#rs_reward_points_for_creatic_topic' ).parent().parent().show() ;
    }

    jQuery( '#rs_enable_reward_points_for_create_topic' ).change( function () {
        if ( jQuery( '#rs_enable_reward_points_for_create_topic' ).is( ":checked" ) == false ) {
            jQuery( '#rs_reward_points_for_creatic_topic' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_reward_points_for_creatic_topic' ).parent().parent().show() ;
        }
    } ) ;

    if ( jQuery( '#rs_enable_reward_points_for_reply_topic' ).is( ":checked" ) == false ) {
        jQuery( '#rs_reward_points_for_reply_topic' ).parent().parent().hide() ;
    } else {
        jQuery( '#rs_reward_points_for_reply_topic' ).parent().parent().show() ;
    }

    jQuery( '#rs_enable_reward_points_for_reply_topic' ).change( function () {
        if ( jQuery( '#rs_enable_reward_points_for_reply_topic' ).is( ":checked" ) == false ) {
            jQuery( '#rs_reward_points_for_reply_topic' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_reward_points_for_reply_topic' ).parent().parent().show() ;
        }
    } ) ;
    /*Show or Hide bbPress - End*/

    /*Show or Hide Reward Points for Waiting List - Start*/
    if ( jQuery( '#rs_enable_for_waitlist_subscribing' ).is( ":checked" ) == false ) {
        jQuery( '#rs_reward_for_waitlist_subscribing' ).parent().parent().hide() ;
        jQuery( '#rs_send_mail_for_waitlist_subscribing' ).parent().parent().parent().parent().hide() ;
        jQuery( '#rs_email_subject_for_waitlist_subscribing' ).parent().parent().hide() ;
        jQuery( '#rs_email_message_for_waitlist_subscribing' ).parent().parent().hide() ;
    } else {
        jQuery( '#rs_reward_for_waitlist_subscribing' ).parent().parent().show() ;
        jQuery( '#rs_send_mail_for_waitlist_subscribing' ).parent().parent().parent().parent().show() ;
        if ( jQuery( '#rs_send_mail_for_waitlist_subscribing' ).is( ':checked' ) == true ) {
            jQuery( '#rs_email_subject_for_waitlist_subscribing' ).parent().parent().show() ;
            jQuery( '#rs_email_message_for_waitlist_subscribing' ).parent().parent().show() ;
        } else {
            jQuery( '#rs_email_subject_for_waitlist_subscribing' ).parent().parent().hide() ;
            jQuery( '#rs_email_message_for_waitlist_subscribing' ).parent().parent().hide() ;
        }

        jQuery( '#rs_send_mail_for_waitlist_subscribing' ).change( function () {
            if ( jQuery( '#rs_send_mail_for_waitlist_subscribing' ).is( ':checked' ) == true ) {
                jQuery( '#rs_email_subject_for_waitlist_subscribing' ).parent().parent().show() ;
                jQuery( '#rs_email_message_for_waitlist_subscribing' ).parent().parent().show() ;
            } else {
                jQuery( '#rs_email_subject_for_waitlist_subscribing' ).parent().parent().hide() ;
                jQuery( '#rs_email_message_for_waitlist_subscribing' ).parent().parent().hide() ;
            }
        } ) ;
    }

    jQuery( '#rs_enable_for_waitlist_subscribing' ).change( function () {
        if ( jQuery( '#rs_enable_for_waitlist_subscribing' ).is( ":checked" ) == false ) {
            jQuery( '#rs_reward_for_waitlist_subscribing' ).parent().parent().hide() ;
            jQuery( '#rs_send_mail_for_waitlist_subscribing' ).parent().parent().parent().parent().hide() ;
            jQuery( '#rs_email_subject_for_waitlist_subscribing' ).parent().parent().hide() ;
            jQuery( '#rs_email_message_for_waitlist_subscribing' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_reward_for_waitlist_subscribing' ).parent().parent().show() ;
            jQuery( '#rs_send_mail_for_waitlist_subscribing' ).parent().parent().parent().parent().show() ;
            if ( jQuery( '#rs_send_mail_for_waitlist_subscribing' ).is( ':checked' ) == true ) {
                jQuery( '#rs_email_subject_for_waitlist_subscribing' ).parent().parent().show() ;
                jQuery( '#rs_email_message_for_waitlist_subscribing' ).parent().parent().show() ;
            } else {
                jQuery( '#rs_email_subject_for_waitlist_subscribing' ).parent().parent().hide() ;
                jQuery( '#rs_email_message_for_waitlist_subscribing' ).parent().parent().hide() ;
            }

            jQuery( '#rs_send_mail_for_waitlist_subscribing' ).change( function () {
                if ( jQuery( '#rs_send_mail_for_waitlist_subscribing' ).is( ':checked' ) == true ) {
                    jQuery( '#rs_email_subject_for_waitlist_subscribing' ).parent().parent().show() ;
                    jQuery( '#rs_email_message_for_waitlist_subscribing' ).parent().parent().show() ;
                } else {
                    jQuery( '#rs_email_subject_for_waitlist_subscribing' ).parent().parent().hide() ;
                    jQuery( '#rs_email_message_for_waitlist_subscribing' ).parent().parent().hide() ;
                }
            } ) ;
        }
    } ) ;

    if ( jQuery( '#rs_enable_for_waitlist_sale_conversion' ).is( ":checked" ) == false ) {
        jQuery( '#rs_reward_for_waitlist_sale_conversion' ).parent().parent().hide() ;
        jQuery( '#rs_send_mail_for_waitlist_sale_conversion' ).parent().parent().parent().parent().hide() ;
        jQuery( '#rs_email_subject_for_waitlist_sale_conversion' ).parent().parent().hide() ;
        jQuery( '#rs_email_message_for_waitlist_sale_conversion' ).parent().parent().hide() ;
    } else {
        jQuery( '#rs_reward_for_waitlist_sale_conversion' ).parent().parent().show() ;
        jQuery( '#rs_send_mail_for_waitlist_sale_conversion' ).parent().parent().parent().parent().show() ;
        if ( jQuery( '#rs_send_mail_for_waitlist_sale_conversion' ).is( ':checked' ) == true ) {
            jQuery( '#rs_email_subject_for_waitlist_sale_conversion' ).parent().parent().show() ;
            jQuery( '#rs_email_message_for_waitlist_sale_conversion' ).parent().parent().show() ;
        } else {
            jQuery( '#rs_email_subject_for_waitlist_sale_conversion' ).parent().parent().hide() ;
            jQuery( '#rs_email_message_for_waitlist_sale_conversion' ).parent().parent().hide() ;
        }

        jQuery( '#rs_send_mail_for_waitlist_sale_conversion' ).change( function () {
            if ( jQuery( '#rs_send_mail_for_waitlist_sale_conversion' ).is( ':checked' ) == true ) {
                jQuery( '#rs_email_subject_for_waitlist_sale_conversion' ).parent().parent().show() ;
                jQuery( '#rs_email_message_for_waitlist_sale_conversion' ).parent().parent().show() ;
            } else {
                jQuery( '#rs_email_subject_for_waitlist_sale_conversion' ).parent().parent().hide() ;
                jQuery( '#rs_email_message_for_waitlist_sale_conversion' ).parent().parent().hide() ;
            }
        } ) ;
    }

    jQuery( '#rs_enable_for_waitlist_sale_conversion' ).change( function () {
        if ( jQuery( '#rs_enable_for_waitlist_sale_conversion' ).is( ":checked" ) == false ) {
            jQuery( '#rs_reward_for_waitlist_sale_conversion' ).parent().parent().hide() ;
            jQuery( '#rs_send_mail_for_waitlist_sale_conversion' ).parent().parent().parent().parent().hide() ;
            jQuery( '#rs_email_subject_for_waitlist_sale_conversion' ).parent().parent().hide() ;
            jQuery( '#rs_email_message_for_waitlist_sale_conversion' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_reward_for_waitlist_sale_conversion' ).parent().parent().show() ;
            jQuery( '#rs_send_mail_for_waitlist_sale_conversion' ).parent().parent().parent().parent().show() ;
            if ( jQuery( '#rs_send_mail_for_waitlist_sale_conversion' ).is( ':checked' ) == true ) {
                jQuery( '#rs_email_subject_for_waitlist_sale_conversion' ).parent().parent().show() ;
                jQuery( '#rs_email_message_for_waitlist_sale_conversion' ).parent().parent().show() ;
            } else {
                jQuery( '#rs_email_subject_for_waitlist_sale_conversion' ).parent().parent().hide() ;
                jQuery( '#rs_email_message_for_waitlist_sale_conversion' ).parent().parent().hide() ;
            }

            jQuery( '#rs_send_mail_for_waitlist_sale_conversion' ).change( function () {
                if ( jQuery( '#rs_send_mail_for_waitlist_sale_conversion' ).is( ':checked' ) == true ) {
                    jQuery( '#rs_email_subject_for_waitlist_sale_conversion' ).parent().parent().show() ;
                    jQuery( '#rs_email_message_for_waitlist_sale_conversion' ).parent().parent().show() ;
                } else {
                    jQuery( '#rs_email_subject_for_waitlist_sale_conversion' ).parent().parent().hide() ;
                    jQuery( '#rs_email_message_for_waitlist_sale_conversion' ).parent().parent().hide() ;
                }
            } ) ;
        }
    } ) ;

    /*Show or hide Settings for Reward Points for Action Tab - End*/

    var enable_selected_product_for_purchase = jQuery( '#rs_enable_selected_product_for_purchase_using_points' ).is( ':checked' ) ? 'yes' : 'no' ;
    if ( enable_selected_product_for_purchase == 'yes' ) {
        jQuery( '#rs_select_product_for_purchase_using_points' ).parent().parent().show() ;
    } else {
        jQuery( '#rs_select_product_for_purchase_using_points' ).parent().parent().hide() ;
    }

    jQuery( '#rs_enable_selected_product_for_purchase_using_points' ).change( function () {
        jQuery( '#rs_select_product_for_purchase_using_points' ).parent().parent().toggle() ;
    } ) ;

    var enable_selected_product_for_purchase1 = jQuery( '#rs_enable_selected_product_for_hide_gateway' ).is( ':checked' ) ? 'yes' : 'no' ;
    if ( enable_selected_product_for_purchase1 == 'yes' ) {
        jQuery( '#rs_select_product_for_hide_gateway' ).parent().parent().show() ;
    } else {
        jQuery( '#rs_select_product_for_hide_gateway' ).parent().parent().hide() ;
    }

    jQuery( '#rs_enable_selected_product_for_hide_gateway' ).change( function () {
        jQuery( '#rs_select_product_for_hide_gateway' ).parent().parent().toggle() ;
    } ) ;

    /*SUMO Reward Points Payment Gateway Visibility Settings - Start */

    if ( jQuery( '#rs_show_hide_reward_points_gatewy' ).val() == '1' ) {
        jQuery( '#rs_enable_selected_product_for_purchase_using_points' ).closest( 'tr' ).show() ;
        jQuery( '#rs_enable_selected_category_for_purchase_using_points' ).closest( 'tr' ).show() ;
        jQuery( '#rs_enable_selected_product_for_hide_gateway' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_enable_selected_category_to_hide_gateway' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_select_product_for_hide_gateway' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_select_category_to_hide_gateway' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_enable_gateway_visible_to_all_product' ).closest( 'tr' ).show() ;
        jQuery( '#rs_errmsg_when_other_products_added_to_cart_page' ).closest( 'tr' ).show() ;

        /*Show or Hide for Selected Product in Visible Option - Start*/
        if ( jQuery( '#rs_enable_selected_product_for_purchase_using_points' ).is( ':checked' ) ) {
            jQuery( '#rs_select_product_for_purchase_using_points' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_select_product_for_purchase_using_points' ).closest( 'tr' ).hide() ;
        }

        jQuery( '#rs_enable_selected_product_for_purchase_using_points' ).change( function () {
            if ( jQuery( '#rs_enable_selected_product_for_purchase_using_points' ).is( ':checked' ) ) {
                jQuery( '#rs_select_product_for_purchase_using_points' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_select_product_for_purchase_using_points' ).closest( 'tr' ).hide() ;
            }
        } ) ;
        /*Show or Hide for Selected Product in Visible Option - End*/

        /*Show or Hide for Selected Category in Visible Option - Start*/
        if ( jQuery( '#rs_enable_selected_category_for_purchase_using_points' ).is( ':checked' ) ) {
            jQuery( '#rs_select_category_for_purchase_using_points' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_select_category_for_purchase_using_points' ).closest( 'tr' ).hide() ;
        }

        jQuery( '#rs_enable_selected_category_for_purchase_using_points' ).change( function () {
            if ( jQuery( '#rs_enable_selected_category_for_purchase_using_points' ).is( ':checked' ) ) {
                jQuery( '#rs_select_category_for_purchase_using_points' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_select_category_for_purchase_using_points' ).closest( 'tr' ).hide() ;
            }
        } ) ;
        /*Show or Hide for Selected Category in Visible Option - End*/
    } else {
        jQuery( '#rs_enable_selected_product_for_purchase_using_points' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_enable_selected_category_for_purchase_using_points' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_select_product_for_purchase_using_points' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_select_category_for_purchase_using_points' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_enable_selected_product_for_hide_gateway' ).closest( 'tr' ).show() ;
        jQuery( '#rs_enable_selected_category_to_hide_gateway' ).closest( 'tr' ).show() ;
        jQuery( '#rs_enable_gateway_visible_to_all_product' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_errmsg_when_other_products_added_to_cart_page' ).closest( 'tr' ).show() ;

        /*Show or Hide for Selected Product in Hide Option - Start*/
        if ( jQuery( '#rs_enable_selected_product_for_hide_gateway' ).is( ':checked' ) ) {
            jQuery( '#rs_select_product_for_hide_gateway' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_select_product_for_hide_gateway' ).closest( 'tr' ).hide() ;
        }

        jQuery( '#rs_enable_selected_product_for_hide_gateway' ).change( function () {
            if ( jQuery( '#rs_enable_selected_product_for_hide_gateway' ).is( ':checked' ) ) {
                jQuery( '#rs_select_product_for_hide_gateway' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_select_product_for_hide_gateway' ).closest( 'tr' ).hide() ;
            }
        } ) ;
        /*Show or Hide for Selected Product in Hide Option - End*/

        /*Show or Hide for Selected Category in Hide Option - Start*/
        if ( jQuery( '#rs_enable_selected_category_to_hide_gateway' ).is( ':checked' ) ) {
            jQuery( '#rs_select_category_to_hide_gateway' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_select_category_to_hide_gateway' ).closest( 'tr' ).hide() ;
        }

        jQuery( '#rs_enable_selected_category_to_hide_gateway' ).change( function () {
            if ( jQuery( '#rs_enable_selected_category_to_hide_gateway' ).is( ':checked' ) ) {
                jQuery( '#rs_select_category_to_hide_gateway' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_select_category_to_hide_gateway' ).closest( 'tr' ).hide() ;
            }
        } ) ;
        /*Show or Hide for Selected Category in Hide Option - End*/
    }

    jQuery( '#rs_show_hide_reward_points_gatewy' ).change( function () {
        if ( jQuery( '#rs_show_hide_reward_points_gatewy' ).val() == '1' ) {
            jQuery( '#rs_enable_selected_product_for_purchase_using_points' ).closest( 'tr' ).show() ;
            jQuery( '#rs_enable_selected_category_for_purchase_using_points' ).closest( 'tr' ).show() ;
            jQuery( '#rs_enable_selected_product_for_hide_gateway' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_enable_selected_category_to_hide_gateway' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_select_product_for_hide_gateway' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_select_category_to_hide_gateway' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_enable_gateway_visible_to_all_product' ).closest( 'tr' ).show() ;
            jQuery( '#rs_errmsg_when_other_products_added_to_cart_page' ).closest( 'tr' ).show() ;

            /*Show or Hide for Selected Product in Visible Option - Start*/
            if ( jQuery( '#rs_enable_selected_product_for_purchase_using_points' ).is( ':checked' ) ) {
                jQuery( '#rs_select_product_for_purchase_using_points' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_select_product_for_purchase_using_points' ).closest( 'tr' ).hide() ;
            }

            jQuery( '#rs_enable_selected_product_for_purchase_using_points' ).change( function () {
                if ( jQuery( '#rs_enable_selected_product_for_purchase_using_points' ).is( ':checked' ) ) {
                    jQuery( '#rs_select_product_for_purchase_using_points' ).closest( 'tr' ).show() ;
                } else {
                    jQuery( '#rs_select_product_for_purchase_using_points' ).closest( 'tr' ).hide() ;
                }
            } ) ;
            /*Show or Hide for Selected Product in Visible Option - End*/

            /*Show or Hide for Selected Category in Visible Option - Start*/
            if ( jQuery( '#rs_enable_selected_category_for_purchase_using_points' ).is( ':checked' ) ) {
                jQuery( '#rs_select_category_for_purchase_using_points' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_select_category_for_purchase_using_points' ).closest( 'tr' ).hide() ;
            }

            jQuery( '#rs_enable_selected_category_for_purchase_using_points' ).change( function () {
                if ( jQuery( '#rs_enable_selected_category_for_purchase_using_points' ).is( ':checked' ) ) {
                    jQuery( '#rs_select_category_for_purchase_using_points' ).closest( 'tr' ).show() ;
                } else {
                    jQuery( '#rs_select_category_for_purchase_using_points' ).closest( 'tr' ).hide() ;
                }
            } ) ;
            /*Show or Hide for Selected Category in Visible Option - End*/
        } else {
            jQuery( '#rs_enable_selected_product_for_purchase_using_points' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_enable_selected_category_for_purchase_using_points' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_select_product_for_purchase_using_points' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_select_category_for_purchase_using_points' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_enable_selected_product_for_hide_gateway' ).closest( 'tr' ).show() ;
            jQuery( '#rs_enable_selected_category_to_hide_gateway' ).closest( 'tr' ).show() ;
            jQuery( '#rs_enable_gateway_visible_to_all_product' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_errmsg_when_other_products_added_to_cart_page' ).closest( 'tr' ).show() ;

            /*Show or Hide for Selected Product in Hide Option - Start*/
            if ( jQuery( '#rs_enable_selected_product_for_hide_gateway' ).is( ':checked' ) ) {
                jQuery( '#rs_select_product_for_hide_gateway' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_select_product_for_hide_gateway' ).closest( 'tr' ).hide() ;
            }

            jQuery( '#rs_enable_selected_product_for_hide_gateway' ).change( function () {
                if ( jQuery( '#rs_enable_selected_product_for_hide_gateway' ).is( ':checked' ) ) {
                    jQuery( '#rs_select_product_for_hide_gateway' ).closest( 'tr' ).show() ;
                } else {
                    jQuery( '#rs_select_product_for_hide_gateway' ).closest( 'tr' ).hide() ;
                }
            } ) ;
            /*Show or Hide for Selected Product in Hide Option - End*/

            /*Show or Hide for Selected Category in Hide Option - Start*/
            if ( jQuery( '#rs_enable_selected_category_to_hide_gateway' ).is( ':checked' ) ) {
                jQuery( '#rs_select_category_to_hide_gateway' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_select_category_to_hide_gateway' ).closest( 'tr' ).hide() ;
            }

            jQuery( '#rs_enable_selected_category_to_hide_gateway' ).change( function () {
                if ( jQuery( '#rs_enable_selected_category_to_hide_gateway' ).is( ':checked' ) ) {
                    jQuery( '#rs_select_category_to_hide_gateway' ).closest( 'tr' ).show() ;
                } else {
                    jQuery( '#rs_select_category_to_hide_gateway' ).closest( 'tr' ).hide() ;
                }
            } ) ;
            /*Show or Hide for Selected Category in Hide Option - End*/
        }
    } ) ;

    /*SUMO Reward Points Payment Gateway Visibility Settings - End */

    /*To hide Loader Image in Bulk Update Tab - Start*/
    jQuery( '.gif_rs_sumo_reward_button' ).css( 'display' , 'none' ) ;
    jQuery( '.gif_rs_bulk_update_button_for_buying_points' ).css( 'display' , 'none' ) ;
    jQuery( '.gif_rs_sumo_reward_button_social' ).css( 'display' , 'none' ) ;
    jQuery( '.gif_rs_sumo_point_price_button' ).css( 'display' , 'none' ) ;

    /*To hide Loader Image in Bulk Update Tab - End*/

    if ( jQuery( '#rs_local_enable_disable_reward' ).val() == '2' ) {
        jQuery( '.show_if_enable_in_reward' ).parent().parent().hide() ;
    } else {
        jQuery( '.show_if_enable_in_reward' ).parent().parent().show() ;

        if ( jQuery( '#rs_local_reward_type' ).val() === '1' ) {
            jQuery( '#rs_local_reward_points' ).parent().parent().show() ;
            jQuery( '#rs_local_reward_percent' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_local_reward_points' ).parent().parent().hide() ;
            jQuery( '#rs_local_reward_percent' ).parent().parent().show() ;
        }

        jQuery( '#rs_local_reward_type' ).change( function () {
            if ( ( jQuery( this ).val() ) === '1' ) {
                jQuery( '#rs_local_reward_points' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent' ).parent().parent().show() ;
            }
        } ) ;
    }

    jQuery( '#rs_local_enable_disable_reward' ).change( function () {
        if ( jQuery( this ).val() == '2' ) {
            jQuery( '.show_if_enable_in_reward' ).parent().parent().hide() ;
        } else {
            jQuery( '.show_if_enable_in_reward' ).parent().parent().show() ;

            if ( jQuery( '#rs_local_reward_type' ).val() === '1' ) {
                jQuery( '#rs_local_reward_points' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent' ).parent().parent().show() ;
            }

            jQuery( '#rs_local_reward_type' ).change( function () {
                if ( ( jQuery( this ).val() ) === '1' ) {
                    jQuery( '#rs_local_reward_points' ).parent().parent().show() ;
                    jQuery( '#rs_local_reward_percent' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_local_reward_points' ).parent().parent().hide() ;
                    jQuery( '#rs_local_reward_percent' ).parent().parent().show() ;
                }
            } ) ;
        }
    } ) ;

    if ( jQuery( '#rs_local_enable_disable_referral_reward' ).val() == '2' ) {
        jQuery( '.show_if_enable_in_update_referral' ).parent().parent().hide() ;
        jQuery( '#rs_send_mail_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_email_subject_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_email_message_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_send_mail_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_email_subject_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_email_message_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
    } else {
        jQuery( '.show_if_enable_in_update_referral' ).parent().parent().show() ;

        if ( jQuery( '#rs_local_referral_reward_type' ).val() === '1' ) {
            jQuery( '#rs_local_referral_reward_point' ).parent().parent().show() ;
            jQuery( '#rs_local_referral_reward_percent' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_local_referral_reward_point' ).parent().parent().hide() ;
            jQuery( '#rs_local_referral_reward_percent' ).parent().parent().show() ;
        }

        jQuery( '#rs_local_referral_reward_type' ).change( function () {
            if ( ( jQuery( this ).val() ) === '1' ) {
                jQuery( '#rs_local_referral_reward_point' ).parent().parent().show() ;
                jQuery( '#rs_local_referral_reward_percent' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_referral_reward_point' ).parent().parent().hide() ;
                jQuery( '#rs_local_referral_reward_percent' ).parent().parent().show() ;
            }
        } ) ;

        if ( jQuery( '#rs_local_referral_reward_type_get_refer' ).val() === '1' ) {
            jQuery( '#rs_local_referral_reward_point_for_getting_referred' ).parent().parent().show() ;
            jQuery( '#rs_local_referral_reward_percent_for_getting_referred' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_local_referral_reward_point_for_getting_referred' ).parent().parent().hide() ;
            jQuery( '#rs_local_referral_reward_percent_for_getting_referred' ).parent().parent().show() ;
        }

        jQuery( '#rs_local_referral_reward_type_get_refer' ).change( function () {
            if ( ( jQuery( this ).val() ) === '1' ) {
                jQuery( '#rs_local_referral_reward_point_for_getting_referred' ).parent().parent().show() ;
                jQuery( '#rs_local_referral_reward_percent_for_getting_referred' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_referral_reward_point_for_getting_referred' ).parent().parent().hide() ;
                jQuery( '#rs_local_referral_reward_percent_for_getting_referred' ).parent().parent().show() ;
            }
        } ) ;
        jQuery( '#rs_send_mail_pdt_purchase_referral' ).closest( 'tr' ).show() ;
        if ( jQuery( '#rs_send_mail_pdt_purchase_referral' ).is( ':checked' ) ) {
            jQuery( '#rs_email_subject_pdt_purchase_referral' ).closest( 'tr' ).show() ;
            jQuery( '#rs_email_message_pdt_purchase_referral' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_email_subject_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_email_message_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
        }
        jQuery( '#rs_send_mail_pdt_purchase_referral' ).change( function () {
            if ( jQuery( '#rs_send_mail_pdt_purchase_referral' ).is( ':checked' ) ) {
                jQuery( '#rs_email_subject_pdt_purchase_referral' ).closest( 'tr' ).show() ;
                jQuery( '#rs_email_message_pdt_purchase_referral' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_email_subject_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
                jQuery( '#rs_email_message_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
            }
        } ) ;

        jQuery( '#rs_send_mail_pdt_purchase_referrer' ).closest( 'tr' ).show() ;
        if ( jQuery( '#rs_send_mail_pdt_purchase_referrer' ).is( ':checked' ) ) {
            jQuery( '#rs_email_subject_pdt_purchase_referrer' ).closest( 'tr' ).show() ;
            jQuery( '#rs_email_message_pdt_purchase_referrer' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_email_subject_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_email_message_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
        }
        jQuery( '#rs_send_mail_pdt_purchase_referrer' ).change( function () {
            if ( jQuery( '#rs_send_mail_pdt_purchase_referrer' ).is( ':checked' ) ) {
                jQuery( '#rs_email_subject_pdt_purchase_referrer' ).closest( 'tr' ).show() ;
                jQuery( '#rs_email_message_pdt_purchase_referrer' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_email_subject_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
                jQuery( '#rs_email_message_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
            }
        } ) ;
    }

    jQuery( '#rs_local_enable_disable_referral_reward' ).change( function () {
        if ( jQuery( '#rs_local_enable_disable_referral_reward' ).val() == '2' ) {
            jQuery( '.show_if_enable_in_update_referral' ).parent().parent().hide() ;
            jQuery( '#rs_send_mail_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_email_subject_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_email_message_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_send_mail_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_email_subject_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_email_message_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
        } else {
            jQuery( '.show_if_enable_in_update_referral' ).parent().parent().show() ;

            if ( jQuery( '#rs_local_referral_reward_type' ).val() === '1' ) {
                jQuery( '#rs_local_referral_reward_point' ).parent().parent().show() ;
                jQuery( '#rs_local_referral_reward_percent' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_referral_reward_point' ).parent().parent().hide() ;
                jQuery( '#rs_local_referral_reward_percent' ).parent().parent().show() ;
            }

            jQuery( '#rs_local_referral_reward_type' ).change( function () {
                if ( ( jQuery( this ).val() ) === '1' ) {
                    jQuery( '#rs_local_referral_reward_point' ).parent().parent().show() ;
                    jQuery( '#rs_local_referral_reward_percent' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_local_referral_reward_point' ).parent().parent().hide() ;
                    jQuery( '#rs_local_referral_reward_percent' ).parent().parent().show() ;
                }
            } ) ;

            if ( jQuery( '#rs_local_referral_reward_type_get_refer' ).val() === '1' ) {
                jQuery( '#rs_local_referral_reward_point_for_getting_referred' ).parent().parent().show() ;
                jQuery( '#rs_local_referral_reward_percent_for_getting_referred' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_referral_reward_point_for_getting_referred' ).parent().parent().hide() ;
                jQuery( '#rs_local_referral_reward_percent_for_getting_referred' ).parent().parent().show() ;
            }

            jQuery( '#rs_local_referral_reward_type_get_refer' ).change( function () {
                if ( ( jQuery( this ).val() ) === '1' ) {
                    jQuery( '#rs_local_referral_reward_point_for_getting_referred' ).parent().parent().show() ;
                    jQuery( '#rs_local_referral_reward_percent_for_getting_referred' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_local_referral_reward_point_for_getting_referred' ).parent().parent().hide() ;
                    jQuery( '#rs_local_referral_reward_percent_for_getting_referred' ).parent().parent().show() ;
                }
            } ) ;

            jQuery( '#rs_send_mail_pdt_purchase_referral' ).closest( 'tr' ).show() ;
            if ( jQuery( '#rs_send_mail_pdt_purchase_referral' ).is( ':checked' ) ) {
                jQuery( '#rs_email_subject_pdt_purchase_referral' ).closest( 'tr' ).show() ;
                jQuery( '#rs_email_message_pdt_purchase_referral' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_email_subject_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
                jQuery( '#rs_email_message_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
            }
            jQuery( '#rs_send_mail_pdt_purchase_referral' ).change( function () {
                if ( jQuery( '#rs_send_mail_pdt_purchase_referral' ).is( ':checked' ) ) {
                    jQuery( '#rs_email_subject_pdt_purchase_referral' ).closest( 'tr' ).show() ;
                    jQuery( '#rs_email_message_pdt_purchase_referral' ).closest( 'tr' ).show() ;
                } else {
                    jQuery( '#rs_email_subject_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
                    jQuery( '#rs_email_message_pdt_purchase_referral' ).closest( 'tr' ).hide() ;
                }
            } ) ;

            jQuery( '#rs_send_mail_pdt_purchase_referrer' ).closest( 'tr' ).show() ;
            if ( jQuery( '#rs_send_mail_pdt_purchase_referrer' ).is( ':checked' ) ) {
                jQuery( '#rs_email_subject_pdt_purchase_referrer' ).closest( 'tr' ).show() ;
                jQuery( '#rs_email_message_pdt_purchase_referrer' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_email_subject_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
                jQuery( '#rs_email_message_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
            }
            jQuery( '#rs_send_mail_pdt_purchase_referrer' ).change( function () {
                if ( jQuery( '#rs_send_mail_pdt_purchase_referrer' ).is( ':checked' ) ) {
                    jQuery( '#rs_email_subject_pdt_purchase_referrer' ).closest( 'tr' ).show() ;
                    jQuery( '#rs_email_message_pdt_purchase_referrer' ).closest( 'tr' ).show() ;
                } else {
                    jQuery( '#rs_email_subject_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
                    jQuery( '#rs_email_message_pdt_purchase_referrer' ).closest( 'tr' ).hide() ;
                }
            } ) ;
        }
    } ) ;

    /*
     * End of Show or Hide For Reward Points In Update
     */


    /*
     * Show or Hide For Social Reward Points In Update
     */
    if ( jQuery( '#rs_local_enable_disable_social_reward' ).val() == '2' ) {
        jQuery( '.show_if_social_enable_in_update' ).parent().parent().hide() ;
    } else {
        jQuery( '.show_if_social_enable_in_update' ).parent().parent().show() ;

        if ( jQuery( '#rs_local_reward_type_for_facebook' ).val() === '1' ) {
            jQuery( '#rs_local_reward_points_facebook' ).parent().parent().show() ;
            jQuery( '#rs_local_reward_percent_facebook' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_local_reward_points_facebook' ).parent().parent().hide() ;
            jQuery( '#rs_local_reward_percent_facebook' ).parent().parent().show() ;
        }

        jQuery( '#rs_local_reward_type_for_facebook' ).change( function () {
            if ( ( jQuery( this ).val() ) === '1' ) {
                jQuery( '#rs_local_reward_points_facebook' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_facebook' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_facebook' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_facebook' ).parent().parent().show() ;
            }
        } ) ;

        if ( jQuery( '#rs_local_reward_type_for_facebook_share' ).val() === '1' ) {
            jQuery( '#rs_local_reward_points_facebook_share' ).parent().parent().show() ;
            jQuery( '#rs_local_reward_percent_facebook_share' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_local_reward_points_facebook_share' ).parent().parent().hide() ;
            jQuery( '#rs_local_reward_percent_facebook_share' ).parent().parent().show() ;
        }

        jQuery( '#rs_local_reward_type_for_facebook_share' ).change( function () {
            if ( ( jQuery( this ).val() ) === '1' ) {
                jQuery( '#rs_local_reward_points_facebook_share' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_facebook_share' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_facebook_share' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_facebook_share' ).parent().parent().show() ;
            }
        } ) ;
        if ( jQuery( '#rs_local_reward_type_for_twitter' ).val() === '1' ) {
            jQuery( '#rs_local_reward_points_twitter' ).parent().parent().show() ;
            jQuery( '#rs_local_reward_percent_twitter' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_local_reward_points_twitter' ).parent().parent().hide() ;
            jQuery( '#rs_local_reward_percent_twitter' ).parent().parent().show() ;
        }

        jQuery( '#rs_local_reward_type_for_twitter' ).change( function () {
            if ( ( jQuery( this ).val() ) === '1' ) {
                jQuery( '#rs_local_reward_points_twitter' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_twitter' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_twitter' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_twitter' ).parent().parent().show() ;
            }
        } ) ;
        if ( jQuery( '#rs_local_reward_type_for_twitter_follow' ).val() === '1' ) {
            jQuery( '#rs_local_reward_points_twitter_follow' ).parent().parent().show() ;
            jQuery( '#rs_local_reward_percent_twitter_follow' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_local_reward_points_twitter_follow' ).parent().parent().hide() ;
            jQuery( '#rs_local_reward_percent_twitter_follow' ).parent().parent().show() ;
        }

        jQuery( '#rs_local_reward_type_for_twitter_follow' ).change( function () {

            if ( ( jQuery( this ).val() ) === '1' ) {
                jQuery( '#rs_local_reward_points_twitter_follow' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_twitter_follow' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_twitter_follow' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_twitter_follow' ).parent().parent().show() ;
            }
        } ) ;
        if ( jQuery( '#rs_local_reward_type_for_vk' ).val() === '1' ) {
            jQuery( '#rs_local_reward_points_vk' ).parent().parent().show() ;
            jQuery( '#rs_local_reward_percent_vk' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_local_reward_points_vk' ).parent().parent().hide() ;
            jQuery( '#rs_local_reward_percent_vk' ).parent().parent().show() ;
        }

        jQuery( '#rs_local_reward_type_for_vk' ).change( function () {
            if ( ( jQuery( this ).val() ) === '1' ) {
                jQuery( '#rs_local_reward_points_vk' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_vk' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_vk' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_vk' ).parent().parent().show() ;
            }
        } ) ;

        if ( jQuery( '#rs_local_reward_type_for_ok_follow' ).val() === '1' ) {
            jQuery( '#rs_local_reward_points_ok_follow' ).parent().parent().show() ;
            jQuery( '#rs_local_reward_percent_ok_follow' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_local_reward_points_ok_follow' ).parent().parent().hide() ;
            jQuery( '#rs_local_reward_percent_ok_follow' ).parent().parent().show() ;
        }

        jQuery( '#rs_local_reward_type_for_ok_follow' ).change( function () {

            if ( ( jQuery( this ).val() ) === '1' ) {
                jQuery( '#rs_local_reward_points_ok_follow' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_ok_follow' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_ok_follow' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_ok_follow' ).parent().parent().show() ;
            }
        } ) ;
        if ( jQuery( '#rs_local_reward_type_for_instagram' ).val() === '1' ) {
            jQuery( '#rs_local_reward_points_instagram' ).parent().parent().show() ;
            jQuery( '#rs_local_reward_percent_instagram' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_local_reward_points_instagram' ).parent().parent().hide() ;
            jQuery( '#rs_local_reward_percent_instagram' ).parent().parent().show() ;
        }

        jQuery( '#rs_local_reward_type_for_instagram' ).change( function () {
            if ( ( jQuery( this ).val() ) === '1' ) {
                jQuery( '#rs_local_reward_points_instagram' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_instagram' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_instagram' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_instagram' ).parent().parent().show() ;
            }
        } ) ;
        if ( jQuery( '#rs_local_reward_type_for_google' ).val() === '1' ) {
            jQuery( '#rs_local_reward_points_google' ).parent().parent().show() ;
            jQuery( '#rs_local_reward_percent_google' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_local_reward_points_google' ).parent().parent().hide() ;
            jQuery( '#rs_local_reward_percent_google' ).parent().parent().show() ;
        }

        jQuery( '#rs_local_reward_type_for_google' ).change( function () {
            if ( ( jQuery( this ).val() ) === '1' ) {
                jQuery( '#rs_local_reward_points_google' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_google' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_google' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_google' ).parent().parent().show() ;
            }
        } ) ;
    }

    jQuery( '#rs_local_enable_disable_social_reward' ).change( function () {
        if ( jQuery( this ).val() == '2' ) {
            jQuery( '.show_if_social_enable_in_update' ).parent().parent().hide() ;
        } else {
            jQuery( '.show_if_social_enable_in_update' ).parent().parent().show() ;

            if ( jQuery( '#rs_local_reward_type_for_facebook' ).val() === '1' ) {
                jQuery( '#rs_local_reward_points_facebook' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_facebook' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_facebook' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_facebook' ).parent().parent().show() ;
            }

            jQuery( '#rs_local_reward_type_for_facebook' ).change( function () {
                if ( ( jQuery( this ).val() ) === '1' ) {
                    jQuery( '#rs_local_reward_points_facebook' ).parent().parent().show() ;
                    jQuery( '#rs_local_reward_percent_facebook' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_local_reward_points_facebook' ).parent().parent().hide() ;
                    jQuery( '#rs_local_reward_percent_facebook' ).parent().parent().show() ;
                }
            } ) ;

            if ( jQuery( '#rs_local_reward_type_for_facebook_share' ).val() === '1' ) {
                jQuery( '#rs_local_reward_points_facebook_share' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_facebook_share' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_facebook_share' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_facebook_share' ).parent().parent().show() ;
            }

            jQuery( '#rs_local_reward_type_for_facebook_share' ).change( function () {
                if ( ( jQuery( this ).val() ) === '1' ) {
                    jQuery( '#rs_local_reward_points_facebook_share' ).parent().parent().show() ;
                    jQuery( '#rs_local_reward_percent_facebook_share' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_local_reward_points_facebook_share' ).parent().parent().hide() ;
                    jQuery( '#rs_local_reward_percent_facebook_share' ).parent().parent().show() ;
                }
            } ) ;

            if ( jQuery( '#rs_local_reward_type_for_twitter' ).val() === '1' ) {
                jQuery( '#rs_local_reward_points_twitter' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_twitter' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_twitter' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_twitter' ).parent().parent().show() ;
            }

            jQuery( '#rs_local_reward_type_for_twitter' ).change( function () {
                if ( ( jQuery( this ).val() ) === '1' ) {
                    jQuery( '#rs_local_reward_points_twitter' ).parent().parent().show() ;
                    jQuery( '#rs_local_reward_percent_twitter' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_local_reward_points_twitter' ).parent().parent().hide() ;
                    jQuery( '#rs_local_reward_percent_twitter' ).parent().parent().show() ;
                }
            } ) ;

            if ( jQuery( '#rs_local_reward_type_for_twitter_follow' ).val() === '1' ) {
                jQuery( '#rs_local_reward_points_twitter_follow' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_twitter_follow' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_twitter_follow' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_twitter_follow' ).parent().parent().show() ;
            }

            jQuery( '#rs_local_reward_type_for_twitter_follow' ).change( function () {
                if ( ( jQuery( this ).val() ) === '1' ) {
                    jQuery( '#rs_local_reward_points_twitter_follow' ).parent().parent().show() ;
                    jQuery( '#rs_local_reward_percent_twitter_follow' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_local_reward_points_twitter_follow' ).parent().parent().hide() ;
                    jQuery( '#rs_local_reward_percent_twitter_follow' ).parent().parent().show() ;
                }
            } ) ;
            if ( jQuery( '#rs_local_reward_type_for_vk' ).val() === '1' ) {
                jQuery( '#rs_local_reward_points_vk' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_vk' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_vk' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_vk' ).parent().parent().show() ;
            }

            jQuery( '#rs_local_reward_type_for_vk' ).change( function () {
                if ( ( jQuery( this ).val() ) === '1' ) {
                    jQuery( '#rs_local_reward_points_vk' ).parent().parent().show() ;
                    jQuery( '#rs_local_reward_percent_vk' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_local_reward_points_vk' ).parent().parent().hide() ;
                    jQuery( '#rs_local_reward_percent_vk' ).parent().parent().show() ;
                }
            } ) ;
            if ( jQuery( '#rs_local_reward_type_for_instagram' ).val() === '1' ) {
                jQuery( '#rs_local_reward_points_instagram' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_instagram' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_instagram' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_instagram' ).parent().parent().show() ;
            }

            jQuery( '#rs_local_reward_type_for_instagram' ).change( function () {
                if ( ( jQuery( this ).val() ) === '1' ) {
                    jQuery( '#rs_local_reward_points_instagram' ).parent().parent().show() ;
                    jQuery( '#rs_local_reward_percent_instagram' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_local_reward_points_instagram' ).parent().parent().hide() ;
                    jQuery( '#rs_local_reward_percent_instagram' ).parent().parent().show() ;
                }
            } ) ;
            if ( jQuery( '#rs_local_reward_type_for_google' ).val() === '1' ) {
                jQuery( '#rs_local_reward_points_google' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_google' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_google' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_google' ).parent().parent().show() ;
            }

            jQuery( '#rs_local_reward_type_for_google' ).change( function () {
                if ( ( jQuery( this ).val() ) === '1' ) {
                    jQuery( '#rs_local_reward_points_google' ).parent().parent().show() ;
                    jQuery( '#rs_local_reward_percent_google' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_local_reward_points_google' ).parent().parent().hide() ;
                    jQuery( '#rs_local_reward_percent_google' ).parent().parent().show() ;
                }
            } ) ;

            if ( jQuery( '#rs_local_reward_type_for_ok_follow' ).val() === '1' ) {
                jQuery( '#rs_local_reward_points_ok_follow' ).parent().parent().show() ;
                jQuery( '#rs_local_reward_percent_ok_follow' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_local_reward_points_ok_follow' ).parent().parent().hide() ;
                jQuery( '#rs_local_reward_percent_ok_follow' ).parent().parent().show() ;
            }

            jQuery( '#rs_local_reward_type_for_ok_follow' ).change( function () {
                if ( ( jQuery( this ).val() ) === '1' ) {
                    jQuery( '#rs_local_reward_points_ok_follow' ).parent().parent().show() ;
                    jQuery( '#rs_local_reward_percent_ok_follow' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_local_reward_points_ok_follow' ).parent().parent().hide() ;
                    jQuery( '#rs_local_reward_percent_ok_follow' ).parent().parent().show() ;
                }
            } ) ;
        }
    } ) ;

    /*Show or hide Settings for Bulk Update Tab - End*/

    /*Show or hide Settings for Import/Export Tab - Start*/

    if ( ( jQuery( 'input[name=rs_export_import_user_option]:checked' ).val() ) === '2' ) {
        jQuery( '#rs_import_export_users_list' ).parent().parent().show() ;
    } else {
        jQuery( '#rs_import_export_users_list' ).parent().parent().hide() ;
    }
    jQuery( 'input[name=rs_export_import_user_option]:radio' ).change( function () {
        jQuery( '#rs_import_export_users_list' ).parent().parent().toggle() ;
    } ) ;

    if ( ( jQuery( 'input[name=rs_export_import_date_option]:checked' ).val() ) === '2' ) {
        jQuery( '#rs_point_export_start_date' ).parent().parent().show() ;
        jQuery( '#rs_point_export_end_date' ).parent().parent().show() ;
    } else {
        jQuery( '#rs_point_export_start_date' ).parent().parent().hide() ;
        jQuery( '#rs_point_export_end_date' ).parent().parent().hide() ;
    }
    jQuery( 'input[name=rs_export_import_date_option]:radio' ).change( function () {
        jQuery( '#rs_point_export_start_date' ).parent().parent().toggle() ;
        jQuery( '#rs_point_export_end_date' ).parent().parent().toggle() ;
    } ) ;

    /*Show or hide Settings for Import/Export Tab - End*/

    /*Show or hide Settings for Report in CSV Tab - Start*/

    if ( ( jQuery( 'input[name=rs_export_user_report_option]:checked' ).val() ) === '2' ) {
        jQuery( '#rs_export_users_report_list' ).parent().parent().show() ;
    } else {
        jQuery( '#rs_export_users_report_list' ).parent().parent().hide() ;
    }
    jQuery( 'input[name=rs_export_user_report_option]:radio' ).change( function () {
        jQuery( '#rs_export_users_report_list' ).parent().parent().toggle() ;
    } ) ;

    if ( ( jQuery( 'input[name=rs_export_report_date_option]:checked' ).val() ) === '2' ) {
        jQuery( '#rs_point_export_report_start_date' ).parent().parent().show() ;
        jQuery( '#rs_point_export_report_end_date' ).parent().parent().show() ;
    } else {
        jQuery( '#rs_point_export_report_start_date' ).parent().parent().hide() ;
        jQuery( '#rs_point_export_report_end_date' ).parent().parent().hide() ;
    }
    jQuery( 'input[name=rs_export_report_date_option]:radio' ).change( function () {
        jQuery( '#rs_point_export_report_start_date' ).parent().parent().toggle() ;
        jQuery( '#rs_point_export_report_end_date' ).parent().parent().toggle() ;
    } ) ;

    /*Show or hide Settings for Report in CSV Tab - End*/

    /*Show or hide Settings for Form for Send Points Tab - Start*/
    if ( jQuery( '#rs_enable_msg_for_send_point' ).val() == '1' ) {
        jQuery( '#rs_select_send_points_user_type' ).closest( 'tr' ).show() ;
        /*Show or Hide for User Selection - Start*/
        if ( jQuery( '#rs_select_send_points_user_type' ).val() == '1' ) {
            jQuery( '#rs_select_users_list_for_send_point' ).parent().parent().hide() ;
        }
        jQuery( '#rs_select_send_points_user_type' ).change( function () {
            if ( jQuery( this ).val() == '2' ) {
                jQuery( '#rs_select_users_list_for_send_point' ).parent().parent().show() ;
            } else {
                jQuery( '#rs_select_users_list_for_send_point' ).parent().parent().hide() ;
            }
        } ) ;
        /*Show or Hide for User Selection - End*/
        jQuery( '#rs_total_send_points_request' ).closest( 'tr' ).show() ;
        jQuery( '#rs_points_to_send_request' ).closest( 'tr' ).show() ;
        jQuery( '#rs_select_user_label' ).closest( 'tr' ).show() ;
        jQuery( '#rs_select_user_placeholder' ).closest( 'tr' ).show() ;
        jQuery( '#rs_select_points_submit_label' ).closest( 'tr' ).show() ;
        jQuery( '#rs_request_approval_type' ).closest( 'tr' ).show() ;
        jQuery( '#rs_limit_for_send_point' ).closest( 'tr' ).show() ;
        jQuery( '#rs_reason_for_send_points' ).closest( 'tr' ).show() ;

        /*Show or Hide for Maximum Restriction Points to Send - Start*/
        if ( jQuery( '#rs_limit_for_send_point' ).val() == '1' ) {
            jQuery( '#rs_limit_send_points_request' ).parent().parent().show() ;
            jQuery( '#rs_err_when_point_greater_than_limit' ).parent().parent().show() ;
        } else {
            jQuery( '#rs_limit_send_points_request' ).parent().parent().hide() ;
            jQuery( '#rs_err_when_point_greater_than_limit' ).parent().parent().hide() ;
        }
        jQuery( '#rs_limit_for_send_point' ).change( function () {
            if ( jQuery( this ).val() == '1' ) {
                jQuery( '#rs_limit_send_points_request' ).parent().parent().show() ;
                jQuery( '#rs_err_when_point_greater_than_limit' ).parent().parent().show() ;
            } else {
                jQuery( '#rs_limit_send_points_request' ).parent().parent().hide() ;
                jQuery( '#rs_err_when_point_greater_than_limit' ).parent().parent().hide() ;
            }
        } ) ;
        /*Show or Hide for Maximum Restriction Points to Send - End*/
        jQuery( '#rs_request_approval_type' ).closest( 'tr' ).show() ;

        /*Show or Hide for Approval Type - Start*/
        if ( jQuery( '#rs_request_approval_type' ).val() == '1' ) {
            jQuery( '#rs_message_send_point_request_submitted' ).parent().parent().show() ;
            jQuery( '#rs_message_send_point_request_submitted_for_auto' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_message_send_point_request_submitted' ).parent().parent().hide() ;
            jQuery( '#rs_message_send_point_request_submitted_for_auto' ).parent().parent().show() ;
        }
        jQuery( '#rs_request_approval_type' ).change( function () {
            if ( jQuery( '#rs_request_approval_type' ).val() == '1' ) {
                jQuery( '#rs_message_send_point_request_submitted' ).parent().parent().show() ;
                jQuery( '#rs_message_send_point_request_submitted_for_auto' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_message_send_point_request_submitted' ).parent().parent().hide() ;
                jQuery( '#rs_message_send_point_request_submitted_for_auto' ).parent().parent().show() ;
            }
        } ) ;
        /*Show or Hide for Approval Type - End*/

    } else {
        jQuery( '#rs_select_send_points_user_type' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_select_users_list_for_send_point' ).parent().parent().hide() ;
        jQuery( '#rs_total_send_points_request' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_points_to_send_request' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_select_user_label' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_select_user_placeholder' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_select_points_submit_label' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_request_approval_type' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_limit_for_send_point' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_limit_send_points_request' ).parent().parent().hide() ;
        jQuery( '#rs_err_when_point_greater_than_limit' ).parent().parent().hide() ;
        jQuery( '#rs_request_approval_type' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_message_send_point_request_submitted' ).parent().parent().hide() ;
        jQuery( '#rs_message_send_point_request_submitted_for_auto' ).parent().parent().hide() ;
        jQuery( '#rs_reason_for_send_points' ).closest( 'tr' ).hide() ;
    }

    jQuery( '#rs_enable_msg_for_send_point' ).change( function () {
        if ( jQuery( '#rs_enable_msg_for_send_point' ).val() == '1' ) {
            jQuery( '#rs_select_send_points_user_type' ).closest( 'tr' ).show() ;

            /*Show or Hide for User Selection - Start*/
            if ( jQuery( '#rs_select_send_points_user_type' ).val() == '1' ) {
                jQuery( '#rs_select_users_list_for_send_point' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_select_users_list_for_send_point' ).parent().parent().show() ;
            }
            jQuery( '#rs_select_send_points_user_type' ).change( function () {
                if ( jQuery( this ).val() == '2' ) {
                    jQuery( '#rs_select_users_list_for_send_point' ).parent().parent().show() ;
                } else {
                    jQuery( '#rs_select_users_list_for_send_point' ).parent().parent().hide() ;
                }
            } ) ;
            /*Show or Hide for User Selection - End*/
            jQuery( '#rs_total_send_points_request' ).closest( 'tr' ).show() ;
            jQuery( '#rs_points_to_send_request' ).closest( 'tr' ).show() ;
            jQuery( '#rs_select_user_label' ).closest( 'tr' ).show() ;
            jQuery( '#rs_select_user_placeholder' ).closest( 'tr' ).show() ;
            jQuery( '#rs_select_points_submit_label' ).closest( 'tr' ).show() ;
            jQuery( '#rs_request_approval_type' ).closest( 'tr' ).show() ;
            jQuery( '#rs_limit_for_send_point' ).closest( 'tr' ).show() ;

            /*Show or Hide for Maximum Restriction Points to Send - Start*/
            if ( jQuery( '#rs_limit_for_send_point' ).val() == '1' ) {
                jQuery( '#rs_limit_send_points_request' ).parent().parent().show() ;
                jQuery( '#rs_err_when_point_greater_than_limit' ).parent().parent().show() ;
            } else {
                jQuery( '#rs_limit_send_points_request' ).parent().parent().hide() ;
                jQuery( '#rs_err_when_point_greater_than_limit' ).parent().parent().hide() ;
            }
            jQuery( '#rs_limit_for_send_point' ).change( function () {
                if ( jQuery( this ).val() == '1' ) {
                    jQuery( '#rs_limit_send_points_request' ).parent().parent().show() ;
                    jQuery( '#rs_err_when_point_greater_than_limit' ).parent().parent().show() ;
                } else {
                    jQuery( '#rs_limit_send_points_request' ).parent().parent().hide() ;
                    jQuery( '#rs_err_when_point_greater_than_limit' ).parent().parent().hide() ;
                }
            } ) ;
            /*Show or Hide for Maximum Restriction Points to Send - End*/
            jQuery( '#rs_request_approval_type' ).closest( 'tr' ).show() ;

            /*Show or Hide for Approval Type - Start*/
            if ( jQuery( '#rs_request_approval_type' ).val() == '1' ) {
                jQuery( '#rs_message_send_point_request_submitted' ).parent().parent().show() ;
                jQuery( '#rs_message_send_point_request_submitted_for_auto' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_message_send_point_request_submitted' ).parent().parent().hide() ;
                jQuery( '#rs_message_send_point_request_submitted_for_auto' ).parent().parent().show() ;
            }
            jQuery( '#rs_request_approval_type' ).change( function () {
                if ( jQuery( '#rs_request_approval_type' ).val() == '1' ) {
                    jQuery( '#rs_message_send_point_request_submitted' ).parent().parent().show() ;
                    jQuery( '#rs_message_send_point_request_submitted_for_auto' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_message_send_point_request_submitted' ).parent().parent().hide() ;
                    jQuery( '#rs_message_send_point_request_submitted_for_auto' ).parent().parent().show() ;
                }
            } ) ;
            /*Show or Hide for Approval Type - End*/
            jQuery( '#rs_reason_for_send_points' ).closest( 'tr' ).show() ;

        } else {
            jQuery( '#rs_select_send_points_user_type' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_select_users_list_for_send_point' ).parent().parent().hide() ;
            jQuery( '#rs_total_send_points_request' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_points_to_send_request' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_select_user_label' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_select_user_placeholder' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_select_points_submit_label' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_request_approval_type' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_limit_for_send_point' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_limit_send_points_request' ).parent().parent().hide() ;
            jQuery( '#rs_err_when_point_greater_than_limit' ).parent().parent().hide() ;
            jQuery( '#rs_request_approval_type' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_message_send_point_request_submitted' ).parent().parent().hide() ;
            jQuery( '#rs_message_send_point_request_submitted_for_auto' ).parent().parent().hide() ;
            jQuery( '#rs_reason_for_send_points' ).closest( 'tr' ).hide() ;
        }
    } ) ;

    /*Show or hide Settings for Form for Send Points Tab - End*/

    /*Show or hide Settings for Nominee Tab - Start*/

    var currentvalue = jQuery( '#rs_show_hide_nominee_field' ).val() ;
    if ( currentvalue == '1' ) {
        jQuery( '#rs_my_nominee_title' ).parent().parent().show() ;
        jQuery( '#rs_select_type_of_user_for_nominee' ).parent().parent().show() ;
        jQuery( '#rs_select_type_of_user_for_nominee_name' ).parent().parent().show() ;

        if ( jQuery( '#rs_select_type_of_user_for_nominee' ).val() == '1' ) {
            jQuery( '#rs_select_users_list_for_nominee' ).parent().parent().show() ;
            jQuery( '#rs_select_users_role_for_nominee' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_select_users_list_for_nominee' ).parent().parent().hide() ;
            jQuery( '#rs_select_users_role_for_nominee' ).parent().parent().show() ;
        }

        jQuery( '#rs_select_type_of_user_for_nominee' ).change( function () {
            if ( jQuery( '#rs_select_type_of_user_for_nominee' ).val() == '1' ) {
                jQuery( '#rs_select_users_list_for_nominee' ).parent().parent().show() ;
                jQuery( '#rs_select_users_role_for_nominee' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_select_users_list_for_nominee' ).parent().parent().hide() ;
                jQuery( '#rs_select_users_role_for_nominee' ).parent().parent().show() ;
            }
        } ) ;
    } else {
        jQuery( '#rs_my_nominee_title' ).parent().parent().hide() ;
        jQuery( '#rs_select_type_of_user_for_nominee' ).parent().parent().hide() ;
        jQuery( '#rs_select_users_list_for_nominee' ).parent().parent().hide() ;
        jQuery( '#rs_select_users_role_for_nominee' ).parent().parent().hide() ;
        jQuery( '#rs_select_type_of_user_for_nominee_name' ).parent().parent().hide() ;
    }

    jQuery( '#rs_show_hide_nominee_field' ).change( function () {
        var currentvalue = jQuery( '#rs_show_hide_nominee_field' ).val() ;
        if ( currentvalue == '1' ) {
            jQuery( '#rs_my_nominee_title' ).parent().parent().show() ;
            jQuery( '#rs_select_type_of_user_for_nominee' ).parent().parent().show() ;
            jQuery( '#rs_select_type_of_user_for_nominee_name' ).parent().parent().show() ;

            if ( jQuery( '#rs_select_type_of_user_for_nominee' ).val() == '1' ) {
                jQuery( '#rs_select_users_list_for_nominee' ).parent().parent().show() ;
                jQuery( '#rs_select_users_role_for_nominee' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_select_users_list_for_nominee' ).parent().parent().hide() ;
                jQuery( '#rs_select_users_role_for_nominee' ).parent().parent().show() ;
            }

            jQuery( '#rs_select_type_of_user_for_nominee' ).change( function () {
                if ( jQuery( '#rs_select_type_of_user_for_nominee' ).val() == '1' ) {
                    jQuery( '#rs_select_users_list_for_nominee' ).parent().parent().show() ;
                    jQuery( '#rs_select_users_role_for_nominee' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_select_users_list_for_nominee' ).parent().parent().hide() ;
                    jQuery( '#rs_select_users_role_for_nominee' ).parent().parent().show() ;
                }
            } ) ;
        } else {
            jQuery( '#rs_my_nominee_title' ).parent().parent().hide() ;
            jQuery( '#rs_select_type_of_user_for_nominee' ).parent().parent().hide() ;
            jQuery( '#rs_select_users_list_for_nominee' ).parent().parent().hide() ;
            jQuery( '#rs_select_users_role_for_nominee' ).parent().parent().hide() ;
            jQuery( '#rs_select_type_of_user_for_nominee_name' ).parent().parent().hide() ;
        }
    } ) ;


    var currentvalue = jQuery( '#rs_show_hide_nominee_field_shortcode' ).val() ;
    if ( currentvalue == '1' ) {
        jQuery( '#rs_my_nominee_title_shortcode' ).parent().parent().show() ;
        jQuery( '#rs_select_type_of_user_for_nominee_shortcode' ).parent().parent().show() ;
        jQuery( '#rs_select_type_of_user_for_nominee_name_shortcode' ).parent().parent().show() ;

        if ( jQuery( '#rs_select_type_of_user_for_nominee_shortcode' ).val() == '1' ) {
            jQuery( '#rs_select_users_list_for_nominee_shortcode' ).parent().parent().show() ;
            jQuery( '#rs_select_users_role_for_nominee_shortcode' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_select_users_list_for_nominee_shortcode' ).parent().parent().hide() ;
            jQuery( '#rs_select_users_role_for_nominee_shortcode' ).parent().parent().show() ;
        }

        jQuery( '#rs_select_type_of_user_for_nominee_shortcode' ).change( function () {
            if ( jQuery( '#rs_select_type_of_user_for_nominee_shortcode' ).val() == '1' ) {
                jQuery( '#rs_select_users_list_for_nominee_shortcode' ).parent().parent().show() ;
                jQuery( '#rs_select_users_role_for_nominee_shortcode' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_select_users_list_for_nominee_shortcode' ).parent().parent().hide() ;
                jQuery( '#rs_select_users_role_for_nominee_shortcode' ).parent().parent().show() ;
            }
        } ) ;
    } else {
        jQuery( '#rs_my_nominee_title_shortcode' ).parent().parent().hide() ;
        jQuery( '#rs_select_type_of_user_for_nominee_shortcode' ).parent().parent().hide() ;
        jQuery( '#rs_select_users_list_for_nominee_shortcode' ).parent().parent().hide() ;
        jQuery( '#rs_select_users_role_for_nominee_shortcode' ).parent().parent().hide() ;
        jQuery( '#rs_select_type_of_user_for_nominee_name_shortcode' ).parent().parent().hide() ;
    }

    jQuery( '#rs_show_hide_nominee_field_shortcode' ).change( function () {
        var currentvalue = jQuery( '#rs_show_hide_nominee_field_shortcode' ).val() ;
        if ( currentvalue == '1' ) {
            jQuery( '#rs_my_nominee_title_shortcode' ).parent().parent().show() ;
            jQuery( '#rs_select_type_of_user_for_nominee_shortcode' ).parent().parent().show() ;
            jQuery( '#rs_select_type_of_user_for_nominee_name_shortcode' ).parent().parent().show() ;

            if ( jQuery( '#rs_select_type_of_user_for_nominee_shortcode' ).val() == '1' ) {
                jQuery( '#rs_select_users_list_for_nominee_shortcode' ).parent().parent().show() ;
                jQuery( '#rs_select_users_role_for_nominee_shortcode' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_select_users_list_for_nominee_shortcode' ).parent().parent().hide() ;
                jQuery( '#rs_select_users_role_for_nominee_shortcode' ).parent().parent().show() ;
            }

            jQuery( '#rs_select_type_of_user_for_nominee_shortcode' ).change( function () {
                if ( jQuery( '#rs_select_type_of_user_for_nominee_shortcode' ).val() == '1' ) {
                    jQuery( '#rs_select_users_list_for_nominee_shortcode' ).parent().parent().show() ;
                    jQuery( '#rs_select_users_role_for_nominee_shortcode' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_select_users_list_for_nominee_shortcode' ).parent().parent().hide() ;
                    jQuery( '#rs_select_users_role_for_nominee_shortcode' ).parent().parent().show() ;
                }
            } ) ;
        } else {
            jQuery( '#rs_my_nominee_title_shortcode' ).parent().parent().hide() ;
            jQuery( '#rs_select_type_of_user_for_nominee_shortcode' ).parent().parent().hide() ;
            jQuery( '#rs_select_users_list_for_nominee_shortcode' ).parent().parent().hide() ;
            jQuery( '#rs_select_users_role_for_nominee_shortcode' ).parent().parent().hide() ;
            jQuery( '#rs_select_type_of_user_for_nominee_name_shortcode' ).parent().parent().hide() ;
        }
    } ) ;



    var currentvalues = jQuery( '#rs_show_hide_nominee_field_in_checkout' ).val() ;
    if ( currentvalues == '1' ) {
        jQuery( '#rs_my_nominee_title_in_checkout' ).parent().parent().show() ;
        jQuery( '#rs_select_type_of_user_for_nominee_checkout' ).parent().parent().show() ;
        jQuery( '#rs_select_type_of_user_for_nominee_name_checkout' ).parent().parent().show() ;

        if ( jQuery( '#rs_select_type_of_user_for_nominee_checkout' ).val() == '1' ) {
            jQuery( '#rs_select_users_list_for_nominee_in_checkout' ).parent().parent().show() ;
            jQuery( '#rs_select_users_role_for_nominee_checkout' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_select_users_list_for_nominee_in_checkout' ).parent().parent().hide() ;
            jQuery( '#rs_select_users_role_for_nominee_checkout' ).parent().parent().show() ;
        }

        jQuery( '#rs_select_type_of_user_for_nominee_checkout' ).change( function () {
            if ( jQuery( '#rs_select_type_of_user_for_nominee_checkout' ).val() == '1' ) {
                jQuery( '#rs_select_users_list_for_nominee_in_checkout' ).parent().parent().show() ;
                jQuery( '#rs_select_users_role_for_nominee_checkout' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_select_users_list_for_nominee_in_checkout' ).parent().parent().hide() ;
                jQuery( '#rs_select_users_role_for_nominee_checkout' ).parent().parent().show() ;
            }
        } ) ;
    } else {
        jQuery( '#rs_my_nominee_title_in_checkout' ).parent().parent().hide() ;
        jQuery( '#rs_select_users_list_for_nominee_in_checkout' ).parent().parent().hide() ;
        jQuery( '#rs_select_users_role_for_nominee_checkout' ).parent().parent().hide() ;
        jQuery( '#rs_select_type_of_user_for_nominee_checkout' ).parent().parent().hide() ;
        jQuery( '#rs_select_type_of_user_for_nominee_name_checkout' ).parent().parent().hide() ;
    }

    jQuery( '#rs_show_hide_nominee_field_in_checkout' ).change( function () {
        var currentvalues = jQuery( '#rs_show_hide_nominee_field_in_checkout' ).val() ;
        if ( currentvalues == '1' ) {
            jQuery( '#rs_my_nominee_title_in_checkout' ).parent().parent().show() ;
            jQuery( '#rs_select_type_of_user_for_nominee_checkout' ).parent().parent().show() ;
            jQuery( '#rs_select_type_of_user_for_nominee_name_checkout' ).parent().parent().show() ;

            if ( jQuery( '#rs_select_type_of_user_for_nominee_checkout' ).val() == '1' ) {
                jQuery( '#rs_select_users_list_for_nominee_in_checkout' ).parent().parent().show() ;
                jQuery( '#rs_select_users_role_for_nominee_checkout' ).parent().parent().hide() ;
            } else {
                jQuery( '#rs_select_users_list_for_nominee_in_checkout' ).parent().parent().hide() ;
                jQuery( '#rs_select_users_role_for_nominee_checkout' ).parent().parent().show() ;
            }

            jQuery( '#rs_select_type_of_user_for_nominee_checkout' ).change( function () {
                if ( jQuery( '#rs_select_type_of_user_for_nominee_checkout' ).val() == '1' ) {
                    jQuery( '#rs_select_users_list_for_nominee_in_checkout' ).parent().parent().show() ;
                    jQuery( '#rs_select_users_role_for_nominee_checkout' ).parent().parent().hide() ;
                } else {
                    jQuery( '#rs_select_users_list_for_nominee_in_checkout' ).parent().parent().hide() ;
                    jQuery( '#rs_select_users_role_for_nominee_checkout' ).parent().parent().show() ;
                }
            } ) ;
        } else {
            jQuery( '#rs_my_nominee_title_in_checkout' ).parent().parent().hide() ;
            jQuery( '#rs_select_users_list_for_nominee_in_checkout' ).parent().parent().hide() ;
            jQuery( '#rs_select_users_role_for_nominee_checkout' ).parent().parent().hide() ;
            jQuery( '#rs_select_type_of_user_for_nominee_checkout' ).parent().parent().hide() ;
            jQuery( '#rs_select_type_of_user_for_nominee_name_checkout' ).parent().parent().hide() ;
        }
    } ) ;

    /*Show or hide Settings for Nominee Tab - End*/

    /*Show or hide Settings for Point URL Tab - Start*/

    jQuery( '#rs_expiry_time_for_pointurl' ).datepicker( { dateFormat : 'yy-mm-dd' , minDate : 0 } ) ;
    if ( jQuery( '#rs_time_limit_for_pointurl' ).val() == '1' ) {
        jQuery( '#rs_expiry_time_for_pointurl' ).parent().parent().hide() ;
    } else {
        jQuery( '#rs_expiry_time_for_pointurl' ).parent().parent().show() ;
    }

    jQuery( '#rs_time_limit_for_pointurl' ).change( function () {
        if ( jQuery( '#rs_time_limit_for_pointurl' ).val() == '1' ) {
            jQuery( '#rs_expiry_time_for_pointurl' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_expiry_time_for_pointurl' ).parent().parent().show() ;
        }
    } ) ;

    if ( jQuery( '#rs_count_limit_for_pointurl' ).val() == '1' ) {
        jQuery( '#rs_count_for_pointurl' ).parent().parent().hide() ;
    } else {
        jQuery( '#rs_count_for_pointurl' ).parent().parent().show() ;
    }

    jQuery( '#rs_count_limit_for_pointurl' ).change( function () {
        if ( jQuery( '#rs_count_limit_for_pointurl' ).val() == '1' ) {
            jQuery( '#rs_count_for_pointurl' ).parent().parent().hide() ;
        } else {
            jQuery( '#rs_count_for_pointurl' ).parent().parent().show() ;
        }
    } ) ;

    /*Show or hide Settings for Point URL Tab - End*/

    /*Show or hide Settings for Auto Redeeming in Checkout - Start*/

    var enable_auto_redeem_checkbox = jQuery( '#rs_enable_disable_auto_redeem_points' ).is( ':checked' ) ? 'yes' : 'no' ;
    if ( enable_auto_redeem_checkbox === 'yes' ) {
        jQuery( '#rs_percentage_cart_total_auto_redeem' ).parent().parent().show() ;
        jQuery( '#rs_enable_disable_auto_redeem_checkout' ).parent().parent().parent().parent().show() ;
    } else {
        jQuery( '#rs_percentage_cart_total_auto_redeem' ).parent().parent().hide() ;
        jQuery( '#rs_enable_disable_auto_redeem_checkout' ).parent().parent().parent().parent().hide() ;
    }

    jQuery( '#rs_enable_disable_auto_redeem_points' ).click( function () {
        var enable_auto_redeem_checkbox = jQuery( '#rs_enable_disable_auto_redeem_points' ).is( ':checked' ) ? 'yes' : 'no' ;
        if ( enable_auto_redeem_checkbox == 'yes' ) {
            jQuery( '#rs_percentage_cart_total_auto_redeem' ).parent().parent().show() ;
            jQuery( '#rs_enable_disable_auto_redeem_checkout' ).parent().parent().parent().parent().show() ;
        } else {
            jQuery( '#rs_percentage_cart_total_auto_redeem' ).parent().parent().hide() ;
            jQuery( '#rs_enable_disable_auto_redeem_checkout' ).parent().parent().parent().parent().hide() ;
        }
    } ) ;
    /*Show or hide Settings for Auto Redeeming in Checkout - End*/
    if ( jQuery( '#rs_my_cashback_table' ).val() == '1' ) {
        jQuery( '#rs_my_cashback_title' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_cashback_sno_label' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_cashback_userid_label' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_cashback_requested_label' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_cashback_status_label' ).closest( 'tr' ).show() ;
    } else {
        jQuery( '#rs_my_cashback_title' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_cashback_sno_label' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_cashback_userid_label' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_cashback_requested_label' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_cashback_status_label' ).closest( 'tr' ).hide() ;
    }

    jQuery( '#rs_my_cashback_table' ).change( function () {
        if ( jQuery( '#rs_my_cashback_table' ).val() == '1' ) {
            jQuery( '#rs_my_cashback_title' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_cashback_sno_label' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_cashback_userid_label' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_cashback_requested_label' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_cashback_status_label' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_my_cashback_title' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_cashback_sno_label' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_cashback_userid_label' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_cashback_requested_label' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_cashback_status_label' ).closest( 'tr' ).hide() ;
        }
    } ) ;
    if ( jQuery( '#rs_my_cashback_table_shortcode' ).val() == '1' ) {
        jQuery( '#rs_my_cashback_title_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_cashback_sno_label_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_cashback_userid_label_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_cashback_requested_label_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_cashback_status_label_shortcode' ).closest( 'tr' ).show() ;
    } else {
        jQuery( '#rs_my_cashback_title_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_cashback_sno_label' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_cashback_userid_label' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_cashback_requested_label' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_cashback_status_label' ).closest( 'tr' ).hide() ;
    }

    jQuery( '#rs_my_cashback_table_shortcode' ).change( function () {
        if ( jQuery( '#rs_my_cashback_table_shortcode' ).val() == '1' ) {
            jQuery( '#rs_my_cashback_title_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_cashback_sno_label_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_cashback_userid_label_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_cashback_requested_label_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_cashback_status_label_shortcode' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_my_cashback_title_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_cashback_sno_label_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_cashback_userid_label_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_cashback_requested_label_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_cashback_status_label_shortcode' ).closest( 'tr' ).hide() ;
        }
    } ) ;
    /*Show or hide Settings for Cashback - End*/

    /*Show or hide for Points can Earned in Checkout - Start*/
    if ( jQuery( '#rs_show_hide_total_points_checkout_field' ).val() == '1' ) {
        jQuery( '#rs_total_earned_point_caption_checkout' ).closest( 'tr' ).show() ;
        jQuery( '#rs_show_hide_equivalent_price_for_points' ).closest( 'tr' ).show() ;
    } else {
        jQuery( '#rs_total_earned_point_caption_checkout' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_show_hide_equivalent_price_for_points' ).closest( 'tr' ).hide() ;
    }

    jQuery( '#rs_show_hide_total_points_checkout_field' ).change( function () {
        if ( jQuery( '#rs_show_hide_total_points_checkout_field' ).val() == '1' ) {
            jQuery( '#rs_total_earned_point_caption_checkout' ).closest( 'tr' ).show() ;
            jQuery( '#rs_show_hide_equivalent_price_for_points' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_total_earned_point_caption_checkout' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_show_hide_equivalent_price_for_points' ).closest( 'tr' ).hide() ;
        }
    } ) ;
    /*Show or hide for Points can Earned in Checkout - End*/

    /*Show or hide for Points can Earned in Thank You Page - Start*/
    if ( jQuery( '#rs_show_hide_total_points_order_field' ).val() == '1' ) {
        jQuery( '#rs_total_earned_point_caption_thank_you' ).closest( 'tr' ).show() ;
        jQuery( '#rs_show_hide_equivalent_price_for_points_thankyou' ).closest( 'tr' ).show() ;

    } else {
        jQuery( '#rs_total_earned_point_caption_thank_you' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_show_hide_equivalent_price_for_points_thankyou' ).closest( 'tr' ).hide() ;
    }

    jQuery( '#rs_show_hide_total_points_order_field' ).change( function () {
        if ( jQuery( '#rs_show_hide_total_points_order_field' ).val() == '1' ) {
            jQuery( '#rs_total_earned_point_caption_thank_you' ).closest( 'tr' ).show() ;
            jQuery( '#rs_show_hide_equivalent_price_for_points_thankyou' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_total_earned_point_caption_thank_you' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_show_hide_equivalent_price_for_points_thankyou' ).closest( 'tr' ).hide() ;
        }
    } ) ;
    /*Show or hide for Points can Earned in Thank You Page - End*/

    /*Show or hide for Product Purchase Module - End*/

    /*Show or hide for Subscribe Link - Start*/
//    if (jQuery('#rs_show_hide_your_subscribe_link').val() == '1') {
//        jQuery('#rs_unsub_field_caption').closest('tr').show();
//    } else {
//        jQuery('#rs_unsub_field_caption').closest('tr').hide();
//    }
//
//    jQuery('#rs_show_hide_your_subscribe_link').change(function () {
//        if (jQuery('#rs_show_hide_your_subscribe_link').val() == '1') {
//            jQuery('#rs_unsub_field_caption').closest('tr').show();
//        } else {
//            jQuery('#rs_unsub_field_caption').closest('tr').hide();
//        }
//    });
    /*Show or hide for Subscribe Link - End*/

    /*Show or hide for My Reward Table - Start*/
//    if (jQuery('#rs_my_reward_table').val() == '1') {
//        jQuery('#rs_points_log_sorting').closest('tr').show();
//        jQuery('#rs_show_hide_search_box_in_my_rewards_table').closest('tr').show();
//        jQuery('#rs_my_reward_points_expire').closest('tr').show();
//        jQuery('#rs_my_reward_points_user_name_hide').closest('tr').show();
//        jQuery('#rs_show_hide_page_size_my_rewards').closest('tr').show();
//        jQuery('#rs_reward_table_position').closest('tr').show();
//        jQuery('#rs_reward_point_label_position').closest('tr').show();
//        jQuery('#rs_my_rewards_total').closest('tr').show();
//        jQuery('#rs_reward_currency_value').closest('tr').show();
//        jQuery('#rs_my_rewards_title').closest('tr').show();
//        jQuery('#rs_my_rewards_sno_label').closest('tr').show();
//        jQuery('#rs_my_rewards_userid_label').closest('tr').show();
//        jQuery('#rs_my_rewards_rewarder_label').closest('tr').show();
//        jQuery('#rs_my_rewards_points_earned_label').closest('tr').show();
//        jQuery('#rs_my_rewards_redeem_points_label').closest('tr').show();
//        jQuery('#rs_my_rewards_total_points_label').closest('tr').show();
//        jQuery('#rs_my_rewards_date_label').closest('tr').show();
//        jQuery('#rs_my_rewards_points_expired_label').closest('tr').show();
//    } else {
//        jQuery('#rs_points_log_sorting').closest('tr').hide();
//        jQuery('#rs_show_hide_search_box_in_my_rewards_table').closest('tr').hide();
//        jQuery('#rs_my_reward_points_expire').closest('tr').hide();
//        jQuery('#rs_my_reward_points_user_name_hide').closest('tr').hide();
//        jQuery('#rs_show_hide_page_size_my_rewards').closest('tr').hide();
//        jQuery('#rs_reward_table_position').closest('tr').hide();
//        jQuery('#rs_reward_point_label_position').closest('tr').hide();
//        jQuery('#rs_my_rewards_total').closest('tr').hide();
//        jQuery('#rs_reward_currency_value').closest('tr').hide();
//        jQuery('#rs_my_rewards_title').closest('tr').hide();
//        jQuery('#rs_my_rewards_sno_label').closest('tr').hide();
//        jQuery('#rs_my_rewards_userid_label').closest('tr').hide();
//        jQuery('#rs_my_rewards_rewarder_label').closest('tr').hide();
//        jQuery('#rs_my_rewards_points_earned_label').closest('tr').hide();
//        jQuery('#rs_my_rewards_redeem_points_label').closest('tr').hide();
//        jQuery('#rs_my_rewards_total_points_label').closest('tr').hide();
//        jQuery('#rs_my_rewards_date_label').closest('tr').hide();
//        jQuery('#rs_my_rewards_points_expired_label').closest('tr').hide();
//    }
//
//    jQuery('#rs_my_reward_table').change(function () {
//        if (jQuery('#rs_my_reward_table').val() == '1') {
//            jQuery('#rs_points_log_sorting').closest('tr').show();
//            jQuery('#rs_show_hide_search_box_in_my_rewards_table').closest('tr').show();
//            jQuery('#rs_my_reward_points_expire').closest('tr').show();
//            jQuery('#rs_my_reward_points_user_name_hide').closest('tr').show();
//            jQuery('#rs_show_hide_page_size_my_rewards').closest('tr').show();
//            jQuery('#rs_reward_table_position').closest('tr').show();
//            jQuery('#rs_reward_point_label_position').closest('tr').show();
//            jQuery('#rs_my_rewards_total').closest('tr').show();
//            jQuery('#rs_reward_currency_value').closest('tr').show();
//            jQuery('#rs_my_rewards_title').closest('tr').show();
//            jQuery('#rs_my_rewards_sno_label').closest('tr').show();
//            jQuery('#rs_my_rewards_userid_label').closest('tr').show();
//            jQuery('#rs_my_rewards_rewarder_label').closest('tr').show();
//            jQuery('#rs_my_rewards_points_earned_label').closest('tr').show();
//            jQuery('#rs_my_rewards_redeem_points_label').closest('tr').show();
//            jQuery('#rs_my_rewards_total_points_label').closest('tr').show();
//            jQuery('#rs_my_rewards_date_label').closest('tr').show();
//            jQuery('#rs_my_rewards_points_expired_label').closest('tr').show();
//        } else {
//            jQuery('#rs_points_log_sorting').closest('tr').hide();
//            jQuery('#rs_show_hide_search_box_in_my_rewards_table').closest('tr').hide();
//            jQuery('#rs_my_reward_points_expire').closest('tr').hide();
//            jQuery('#rs_my_reward_points_user_name_hide').closest('tr').hide();
//            jQuery('#rs_show_hide_page_size_my_rewards').closest('tr').hide();
//            jQuery('#rs_reward_table_position').closest('tr').hide();
//            jQuery('#rs_reward_point_label_position').closest('tr').hide();
//            jQuery('#rs_my_rewards_total').closest('tr').hide();
//            jQuery('#rs_reward_currency_value').closest('tr').hide();
//            jQuery('#rs_my_rewards_title').closest('tr').hide();
//            jQuery('#rs_my_rewards_sno_label').closest('tr').hide();
//            jQuery('#rs_my_rewards_userid_label').closest('tr').hide();
//            jQuery('#rs_my_rewards_rewarder_label').closest('tr').hide();
//            jQuery('#rs_my_rewards_points_earned_label').closest('tr').hide();
//            jQuery('#rs_my_rewards_redeem_points_label').closest('tr').hide();
//            jQuery('#rs_my_rewards_total_points_label').closest('tr').hide();
//            jQuery('#rs_my_rewards_date_label').closest('tr').hide();
//            jQuery('#rs_my_rewards_points_expired_label').closest('tr').hide();
//        }
//    });
    /*Show or hide for My Reward Table - End*/

    if ( jQuery( '#rs_my_reward_table_shortcode' ).val() == '1' ) {
        jQuery( '#rs_points_log_sorting_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_show_hide_search_box_in_my_rewards_table_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_reward_points_expire_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_reward_points_s_no_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_reward_points_user_name_hide_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_show_hide_page_size_my_rewards_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_reward_table_position_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_reward_point_label_position_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_rewards_total_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_reward_currency_value_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_rewards_title_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_rewards_sno_label_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_rewards_userid_label_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_rewards_rewarder_label_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_rewards_points_earned_label_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_rewards_redeem_points_label_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_rewards_total_points_label_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_rewards_date_label_shortcode' ).closest( 'tr' ).show() ;
        jQuery( '#rs_my_rewards_points_expired_label_shortcode' ).closest( 'tr' ).show() ;
    } else {
        jQuery( '#rs_points_log_sorting' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_show_hide_search_box_in_my_rewards_table_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_reward_points_expire_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_reward_points_s_no_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_reward_points_user_name_hide_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_show_hide_page_size_my_rewards_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_reward_table_position_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_reward_point_label_position_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_rewards_total_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_reward_currency_value_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_rewards_title_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_rewards_sno_label_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_rewards_userid_label_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_rewards_rewarder_label_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_rewards_points_earned_label_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_rewards_redeem_points_label_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_rewards_total_points_label_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_rewards_date_label_shortcode' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_my_rewards_points_expired_label_shortcode' ).closest( 'tr' ).hide() ;
    }

    jQuery( '#rs_my_reward_table_shortcode' ).change( function () {
        if ( jQuery( '#rs_my_reward_table_shortcode' ).val() == '1' ) {
            jQuery( '#rs_points_log_sorting_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_show_hide_search_box_in_my_rewards_table_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_reward_points_expire_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_reward_points_s_no_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_reward_points_user_name_hide_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_show_hide_page_size_my_rewards_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_reward_table_position_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_reward_point_label_position_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_rewards_total_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_reward_currency_value_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_rewards_title_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_rewards_sno_label_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_rewards_userid_label_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_rewards_rewarder_label_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_rewards_points_earned_label_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_rewards_redeem_points_label_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_rewards_total_points_label_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_rewards_date_label_shortcode' ).closest( 'tr' ).show() ;
            jQuery( '#rs_my_rewards_points_expired_label_shortcode' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_points_log_sorting_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_show_hide_search_box_in_my_rewards_table_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_reward_points_expire_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_reward_points_s_no_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_reward_points_user_name_hide_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_show_hide_page_size_my_rewards_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_reward_table_position_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_reward_point_label_position_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_rewards_total_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_reward_currency_value_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_rewards_title_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_rewards_sno_label_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_rewards_userid_label_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_rewards_rewarder_label_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_rewards_points_earned_label_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_rewards_redeem_points_label_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_rewards_total_points_label_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_rewards_date_label_shortcode' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_my_rewards_points_expired_label_shortcode' ).closest( 'tr' ).hide() ;
        }
    } ) ;

    jQuery( "#rs_enable_earned_level_based_reward_points" ).change( function () {
        if ( jQuery( "#rs_enable_earned_level_based_reward_points" ).is( ':checked' ) == true ) {
            jQuery( '.rs_sample' ).css( 'border' , '1px solid #ccc' ) ;
        } else {
            jQuery( '.rs_sample' ).css( 'border' , 'none' ) ;
        }
    } ) ;

    /*Show or hide Settings for My Account Tab - Start*/
    jQuery( '#rs_show_hide_iagree_termsandcondition_field' ).change( function () {
        if ( jQuery( '#rs_show_hide_iagree_termsandcondition_field' ).val() == '2' ) {
            jQuery( '#rs_refer_friend_iagreecaption_link' ).closest( 'tr' ).show() ;
            jQuery( '#rs_refer_friend_termscondition_caption' ).closest( 'tr' ).show() ;
            jQuery( '#rs_refer_friend_termscondition_url' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_refer_friend_iagreecaption_link' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_refer_friend_termscondition_caption' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_refer_friend_termscondition_url' ).closest( 'tr' ).hide() ;
        }
    } ) ;
    /*Show or hide Settings for My Account Tab - End*/

    /*Show or Hide Referrer Label Settings - Start*/

    /*Show/Hide for Point Price in Bulk Update Settings - Start*/
    if ( jQuery( '#rs_local_enable_disable_point_price' ).val() == '1' ) {
        jQuery( '#rs_local_point_pricing_type' ).closest( 'tr' ).show() ;

        /*Show/Hide for Currency & Point Pricing Option in Bulk Update Settings - Start*/
        if ( jQuery( '#rs_local_point_pricing_type' ).val() == '1' ) {
            jQuery( '#rs_local_point_price_type' ).closest( 'tr' ).show() ;

            /*Show/Hide for Fixed/Conversion Option in Bulk Update Settings - Start*/
            if ( jQuery( '#rs_local_point_price_type' ).val() == '1' ) {
                jQuery( '#rs_local_price_points' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_local_price_points' ).closest( 'tr' ).hide() ;
            }

            jQuery( '#rs_local_point_price_type' ).change( function () {
                if ( jQuery( '#rs_local_point_price_type' ).val() == '1' ) {
                    jQuery( '#rs_local_price_points' ).closest( 'tr' ).show() ;
                } else {
                    jQuery( '#rs_local_price_points' ).closest( 'tr' ).hide() ;
                }
            } ) ;
            /*Show/Hide for Fixed/Conversion Option in Bulk Update Settings - End*/
        } else {
            jQuery( '#rs_local_point_price_type' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_local_price_points' ).closest( 'tr' ).show() ;
        }

        jQuery( '#rs_local_point_pricing_type' ).change( function () {
            if ( jQuery( '#rs_local_point_pricing_type' ).val() == '1' ) {
                jQuery( '#rs_local_point_price_type' ).closest( 'tr' ).show() ;

                /*Show/Hide for Fixed/Conversion Option in Bulk Update Settings - Start*/
                if ( jQuery( '#rs_local_point_price_type' ).val() == '1' ) {
                    jQuery( '#rs_local_price_points' ).closest( 'tr' ).show() ;
                } else {
                    jQuery( '#rs_local_price_points' ).closest( 'tr' ).hide() ;
                }

                jQuery( '#rs_local_point_price_type' ).change( function () {
                    if ( jQuery( '#rs_local_point_price_type' ).val() == '1' ) {
                        jQuery( '#rs_local_price_points' ).closest( 'tr' ).show() ;
                    } else {
                        jQuery( '#rs_local_price_points' ).closest( 'tr' ).hide() ;
                    }
                } ) ;
                /*Show/Hide for Fixed/Conversion Option in Bulk Update Settings - End*/
            } else {
                jQuery( '#rs_local_point_price_type' ).closest( 'tr' ).hide() ;
                jQuery( '#rs_local_price_points' ).closest( 'tr' ).show() ;
            }
        } ) ;
        /*Show/Hide for Currency & Point Pricing Option in Bulk Update Settings - End*/
    } else {
        jQuery( '#rs_local_point_pricing_type' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_local_point_price_type' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_local_price_points' ).closest( 'tr' ).hide() ;
    }

    jQuery( '#rs_local_enable_disable_point_price' ).change( function () {
        if ( jQuery( '#rs_local_enable_disable_point_price' ).val() == '1' ) {
            jQuery( '#rs_local_point_pricing_type' ).closest( 'tr' ).show() ;

            /*Show/Hide for Currency & Point Pricing Option in Bulk Update Settings - Start*/
            if ( jQuery( '#rs_local_point_pricing_type' ).val() == '1' ) {
                jQuery( '#rs_local_point_price_type' ).closest( 'tr' ).show() ;

                /*Show/Hide for Fixed/Conversion Option in Bulk Update Settings - Start*/
                if ( jQuery( '#rs_local_point_price_type' ).val() == '1' ) {
                    jQuery( '#rs_local_price_points' ).closest( 'tr' ).show() ;
                } else {
                    jQuery( '#rs_local_price_points' ).closest( 'tr' ).hide() ;
                }

                jQuery( '#rs_local_point_price_type' ).change( function () {
                    if ( jQuery( '#rs_local_point_price_type' ).val() == '1' ) {
                        jQuery( '#rs_local_price_points' ).closest( 'tr' ).show() ;
                    } else {
                        jQuery( '#rs_local_price_points' ).closest( 'tr' ).hide() ;
                    }
                } ) ;
                /*Show/Hide for Fixed/Conversion Option in Bulk Update Settings - End*/
            } else {
                jQuery( '#rs_local_point_price_type' ).closest( 'tr' ).hide() ;
                jQuery( '#rs_local_price_points' ).closest( 'tr' ).show() ;
            }

            jQuery( '#rs_local_point_pricing_type' ).change( function () {
                if ( jQuery( '#rs_local_point_pricing_type' ).val() == '1' ) {
                    jQuery( '#rs_local_point_price_type' ).closest( 'tr' ).show() ;

                    /*Show/Hide for Fixed/Conversion Option in Bulk Update Settings - Start*/
                    if ( jQuery( '#rs_local_point_price_type' ).val() == '1' ) {
                        jQuery( '#rs_local_price_points' ).closest( 'tr' ).show() ;
                    } else {
                        jQuery( '#rs_local_price_points' ).closest( 'tr' ).hide() ;
                    }

                    jQuery( '#rs_local_point_price_type' ).change( function () {
                        if ( jQuery( '#rs_local_point_price_type' ).val() == '1' ) {
                            jQuery( '#rs_local_price_points' ).closest( 'tr' ).show() ;
                        } else {
                            jQuery( '#rs_local_price_points' ).closest( 'tr' ).hide() ;
                        }
                    } ) ;
                    /*Show/Hide for Fixed/Conversion Option in Bulk Update Settings - End*/
                } else {
                    jQuery( '#rs_local_point_price_type' ).closest( 'tr' ).hide() ;
                    jQuery( '#rs_local_price_points' ).closest( 'tr' ).show() ;
                }
            } ) ;
            /*Show/Hide for Currency & Point Pricing Option in Bulk Update Settings - End*/
        } else {
            jQuery( '#rs_local_point_pricing_type' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_local_point_price_type' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_local_price_points' ).closest( 'tr' ).hide() ;
        }
    } ) ;
    /*Show/Hide for Point Price in Bulk Update Settings - End*/

    /* Show or Hide Message for Sending Mail to Admin For Send Points Module - Start*/
    if ( jQuery( '#rs_mail_for_send_points_notification_admin' ).is( ':checked' ) == true ) {
        jQuery( '#rs_email_subject_for_send_points_notification_admin' ).closest( 'tr' ).show() ;
        jQuery( '#rs_email_message_for_send_points_notification_admin' ).closest( 'tr' ).show() ;
        jQuery( "input[type='radio'][name='rs_mail_sender_for_admin']" ).closest( 'tr' ).show()
        if ( jQuery( 'input[name=rs_mail_sender_for_admin]:checked' ).val() == 'local' ) {
            jQuery( '#rs_from_name_for_sendpoints_for_admin' ).closest( 'tr' ).show() ;
            jQuery( '#rs_from_email_for_sendpoints_for_admin' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_from_name_for_sendpoints_for_admin' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_from_email_for_sendpoints_for_admin' ).closest( 'tr' ).hide() ;
        }
    } else {
        jQuery( '#rs_email_subject_for_send_points_notification_admin' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_email_message_for_send_points_notification_admin' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_from_name_for_sendpoints_for_admin' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_from_email_for_sendpoints_for_admin' ).closest( 'tr' ).hide() ;
        jQuery( "input[type='radio'][name='rs_mail_sender_for_admin']" ).closest( 'tr' ).hide()
    }
    jQuery( '#rs_mail_for_send_points_notification_admin' ).change( function () {
        if ( jQuery( '#rs_mail_for_send_points_notification_admin' ).is( ':checked' ) == true ) {
            jQuery( '#rs_email_subject_for_send_points_notification_admin' ).closest( 'tr' ).show() ;
            jQuery( '#rs_email_message_for_send_points_notification_admin' ).closest( 'tr' ).show() ;
            jQuery( "input[type='radio'][name='rs_mail_sender_for_admin']" ).closest( 'tr' ).show()
            if ( jQuery( 'input[name=rs_mail_sender_for_admin]:checked' ).val() == 'local' ) {
                jQuery( '#rs_from_name_for_sendpoints_for_admin' ).closest( 'tr' ).show() ;
                jQuery( '#rs_from_email_for_sendpoints_for_admin' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_from_name_for_sendpoints_for_admin' ).closest( 'tr' ).hide() ;
                jQuery( '#rs_from_email_for_sendpoints_for_admin' ).closest( 'tr' ).hide() ;
            }
        } else {
            jQuery( '#rs_email_subject_for_send_points_notification_admin' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_email_message_for_send_points_notification_admin' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_from_name_for_sendpoints_for_admin' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_from_email_for_sendpoints_for_admin' ).closest( 'tr' ).hide() ;
            jQuery( "input[type='radio'][name='rs_mail_sender_for_admin']" ).closest( 'tr' ).hide()
        }
    } ) ;
    /* Show or Hide Message for Sending Mail to Admin For Send Points Module - End*/

    /* Show or Hide for Email Sending Option for Admin - Start*/
    jQuery( 'input[name=rs_mail_sender_for_admin]:radio' ).click( function () {
        if ( jQuery( 'input[name=rs_mail_sender_for_admin]:checked' ).val() == 'local' ) {
            jQuery( '#rs_from_name_for_sendpoints_for_admin' ).closest( 'tr' ).show() ;
            jQuery( '#rs_from_email_for_sendpoints_for_admin' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_from_name_for_sendpoints_for_admin' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_from_email_for_sendpoints_for_admin' ).closest( 'tr' ).hide() ;
        }
    } ) ;
    /* Show or Hide for Email Sending Option for Admin - End*/

    /* Show or Hide Message for Sending Mail in Send Points Module - Start*/
    if ( jQuery( '#rs_mail_for_send_points_for_user' ).is( ':checked' ) == true ) {
        jQuery( '#rs_email_subject_for_send_points' ).closest( 'tr' ).show() ;
        jQuery( '#rs_email_message_for_send_points' ).closest( 'tr' ).show() ;
    } else {
        jQuery( '#rs_email_subject_for_send_points' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_email_message_for_send_points' ).closest( 'tr' ).hide() ;
    }
    jQuery( '#rs_mail_for_send_points_for_user' ).change( function () {
        if ( jQuery( '#rs_mail_for_send_points_for_user' ).is( ':checked' ) == true ) {
            jQuery( '#rs_email_subject_for_send_points' ).closest( 'tr' ).show() ;
            jQuery( '#rs_email_message_for_send_points' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_email_subject_for_send_points' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_email_message_for_send_points' ).closest( 'tr' ).hide() ;
        }
    } ) ;
    /* Show or Hide Message for Sending Mail in Send Points Module - End*/

    /* Show or Hide Message for Sending Mail Confirmation in Send Points Module - Start*/

    if ( jQuery( '#rs_mail_for_send_points_confirmation_mail_for_user' ).is( ':checked' ) == true ) {
        jQuery( '#rs_email_subject_for_send_points_confirmation' ).closest( 'tr' ).show() ;
        jQuery( '#rs_email_message_for_send_points_confirmation' ).closest( 'tr' ).show() ;
    } else {
        jQuery( '#rs_email_subject_for_send_points_confirmation' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_email_message_for_send_points_confirmation' ).closest( 'tr' ).hide() ;
    }
    jQuery( '#rs_mail_for_send_points_confirmation_mail_for_user' ).change( function () {
        if ( jQuery( '#rs_mail_for_send_points_confirmation_mail_for_user' ).is( ':checked' ) == true ) {
            jQuery( '#rs_email_subject_for_send_points_confirmation' ).closest( 'tr' ).show() ;
            jQuery( '#rs_email_message_for_send_points_confirmation' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_email_subject_for_send_points_confirmation' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_email_message_for_send_points_confirmation' ).closest( 'tr' ).hide() ;
        }
    } ) ;

    /* Show or Hide Message for Sending Mail Confirmation in Send Points Module - End*/

    /*Show or Hide for delete the coupon - Start*/
    if ( jQuery( '#_rs_enable_coupon_restriction' ).is( ':checked' ) == true ) {
        jQuery( '#_rs_restrict_coupon' ).closest( 'tr' ).show() ;
        if ( jQuery( '#_rs_restrict_coupon' ).val() == '2' ) {
            jQuery( '#rs_delete_coupon_by_cron_time' ).closest( 'tr' ).show() ;
            jQuery( '#rs_delete_coupon_specific_time' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_delete_coupon_by_cron_time' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_delete_coupon_specific_time' ).closest( 'tr' ).hide() ;
        }
    } else {
        jQuery( '#_rs_restrict_coupon' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_delete_coupon_by_cron_time' ).closest( 'tr' ).hide() ;
        jQuery( '#rs_delete_coupon_specific_time' ).closest( 'tr' ).hide() ;
    }
    jQuery( '#_rs_enable_coupon_restriction' ).change( function () {
        if ( jQuery( '#_rs_enable_coupon_restriction' ).is( ':checked' ) == true ) {
            jQuery( '#_rs_restrict_coupon' ).closest( 'tr' ).show() ;
            if ( jQuery( '#_rs_restrict_coupon' ).val() == '2' ) {
                jQuery( '#rs_delete_coupon_by_cron_time' ).closest( 'tr' ).show() ;
                jQuery( '#rs_delete_coupon_specific_time' ).closest( 'tr' ).show() ;
            } else {
                jQuery( '#rs_delete_coupon_by_cron_time' ).closest( 'tr' ).hide() ;
                jQuery( '#rs_delete_coupon_specific_time' ).closest( 'tr' ).hide() ;
            }
        } else {
            jQuery( '#_rs_restrict_coupon' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_delete_coupon_by_cron_time' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_delete_coupon_specific_time' ).closest( 'tr' ).hide() ;
        }
    } ) ;
    jQuery( '#_rs_restrict_coupon' ).change( function () {
        if ( jQuery( '#_rs_restrict_coupon' ).val() == '2' ) {
            jQuery( '#rs_delete_coupon_by_cron_time' ).closest( 'tr' ).show() ;
            jQuery( '#rs_delete_coupon_specific_time' ).closest( 'tr' ).show() ;
        } else {
            jQuery( '#rs_delete_coupon_by_cron_time' ).closest( 'tr' ).hide() ;
            jQuery( '#rs_delete_coupon_specific_time' ).closest( 'tr' ).hide() ;
        }
    } ) ;
    
    /*Show or Hide for delete the coupon - End*/
} ) ;