jQuery.extend({
	dependentselectbox: {
		controlClass: 'dependentControl',

		buttonSuffix: '_submit',

		hideSubmits: function() {
			tr = $('.'+$.dependentselectbox.controlClass+$.dependentselectbox.buttonSuffix).parent().parent();     
                  tr.hide();
		},

		initialize: function() {
			$.dependentselectbox.hideSubmits();
			$('.'+$.dependentselectbox.controlClass).live('change', function() {
				//$('#'+($(this).attr('id'))+$.dependentselectbox.buttonSuffix).ajaxSubmit($.dependentselectbox.jsonResponse);
                        //$('#frmcheckoutForm-paymentId_submit').click();  
                        $('#'+($(this).attr('id'))+$.dependentselectbox.buttonSuffix).click();
			});
		},
	}
});

$(document).ready(function() {
	$.dependentselectbox.initialize();
});
