//	[nds]
var full_cart = false;
var cartbox_height;
var textarea_wysiwyg = {};

function fn_cart_form_submit(use_ajax)
{
	if (use_ajax == 'Y') {
		$("form[name='checkout_form']").addClass('cm-ajax');
	}

	$("form[name='checkout_form']").append($("<input type=\"submit\" name=\"dispatch[wishlist.add]\" class=\"cm-process-items hidden\" id=\"cart_submit\"/>"));
	$('#cart_submit').click();

	if (use_ajax == 'Y') {
		$("form[name='checkout_form']").removeClass('cm-ajax');
	}
}

function fn_view_full_cart()
{
	if (!full_cart) {
		cartbox_height = $('.mainbox-cart-body').height();
		$('.mainbox-cart-body').css('height', 'auto');
		full_cart = true;
	} else {
		$('.mainbox-cart-body').css('height', cartbox_height);
		full_cart = false;
	}
}

function fn_form_post_new_cartlist_form()
{
	$('#but_cartlist_popup_close').click();
}

function fn_form_post_update_cartlist_form()
{
	$('#but_cartlist_popup_close').click();
}
function fn_process_order(e)
{
	if (confirm(lang.text_are_you_sure_to_place_order) == false) {
		e.returnValue = false;
		return false;
	} else {
		e.returnValue = true;
		return true;
	}
}
