// showhidebilling.js

// Show or hide the billing information based on the checkbox setting

function showOrHideBillingInfo() {
	if ( document.form.IdenticalAddresses.checked ) {
		hideBillingInfo();
	} else {
		showBillingInfo();
	}
}

// Show the billing information

function showBillingInfo() {
	if ( document.getElementById ) {
		// DOM3 = IE5, NS6 
		var div = document.getElementById( 'billingInfo' );
		div.style.display = "";
	} else {
		if ( document.layers ) {
			// Netscape 4
			document.billingInfo.visibility = 'visible';
		} else {
			// IE 4
			document.all.billingInfo.style.visibility = 'visible';
		}
	}
}

// Hide the billing information

function hideBillingInfo() {
	if ( document.getElementById ) {
		// DOM3 = IE5, NS6
		var div = document.getElementById( 'billingInfo' );
		div.style.display = "none";
	} else {
		if ( document.layers ) {
			// Netscape 4
			document.billingInfo.visibility = 'hidden';
		} else {
			// IE 4
			document.all.billingInfo.style.visibility = 'hidden';
		}
	}
}
