function cart_refresh(cnt, crt) {
	if (e1 = $('cartcount')) {
		e1.set('html',cnt);
	}
	if (e2 = $('cartdiv')) {
		e2.set('html',crt);
	}
}

function cart_step(step) {
	$('h_action').set('value',step);
	document.forms.cart.submit();
}

function cart_del(id) {
	$('qty_'+id).set('value',0);
	$('b_recalc').click();
}

function toggle_account(chk) {
	var e1 = 'account_why';
	var e2 = 'account_create';
	if (!chk) {
		e2 = e1;
		e1 = 'account_create';
	}
	ef = new Fx.Tween(e1, {
		duration: 'short',
		onComplete: function() {
			this.element.setStyle('display','none');
			new Fx.Tween(e2, {
				duration:'short',
				onStart: function() {
					this.element.set('opacity',0).setStyle('display','block');
				}
			}).start('opacity',0,1);
		}
	});
	ef.start('opacity',1,0);
}