//Simpele show/hide functionaliteit als billing adres anders is als postadres...

if (typeof AMSU == 'undefined') { AMSU = new Object()}

AMSU.accform = {
	init: function(){
		//Alleen handlers toevoegen als alle elementen er ook echt zijn...
		if ($('isbilladdr_yes') && $('isbilladdr_no') && $('billingaddress')){
			$('isbilladdr_yes').addEvent('click', AMSU.accform.hideBillingAddress);
			$('isbilladdr_no').addEvent('click', AMSU.accform.showBillingAddress);
		}
	},
	showBillingAddress: function(){
		$('isbilladdr_no').checked=true;
		$('isbilladdr_yes').checked=false;
		$('billingaddress').setStyle('display','');
	},
	hideBillingAddress: function(){
		$('isbilladdr_yes').checked=true;
		$('isbilladdr_no').checked=false;
		$('billingaddress').setStyle('display','none');
	}
}
	
window.addEvent('domready',AMSU.accform.init);
