			function recalc() {

				 var html = $.ajax({
				  url: "/includes/qm/totaalprijs.php?land="+$('#land').val()+"&kcode="+$('#kcode').val()+"&verzend_id="+$('input[name=verzend]:checked').val() +"&betaal_id="+$('input[name=betaal]:checked').val() ,
				  async: false,
				  cache: false
				 }).responseText;


				jQuery("#totaalprijs").html(html);

			}

			function recalc2() {

				 var html = $.ajax({
				  url: "/includes/qm/totaalprijs.php?actiecode="+$('#actiecode').val()+"&land="+$('#land').val()+"&kcode="+$('#kcode').val()+"&verzend_id="+$('input[name=verzend]:checked').val() +"&betaal_id="+$('input[name=betaal]:checked').val() ,
				  async: false,
				  cache: false
				 }).responseText;


				jQuery("#totaalprijs").html(html);

			}

			function checkcode(kcode) {

				var html = $.ajax({
				  url: "/includes/qm/kcode.php?kcode="+$('#kcode').val() ,
				  async: false,
				  cache: false
				 }).responseText;


				jQuery("#kcodes").html(html);

			}

			function checkcode2(kcode) {

				var html = $.ajax({
				  url: "/includes/qm/kcode2.php?kcode="+$('#actiecode').val() ,
				  async: false,
				  cache: false
				 }).responseText;


				jQuery("#kcodes2").html(html);

			}
			

function addtofav() 
{

parseurl="";

jQuery.each($("input[type=checkbox]:checked"), function(i,v) {
    var theTag = v.tagName;
    var theElement = $(v);
    var theValue = theElement.val();
	parseurl=parseurl+theValue+","
});

if ( parseurl != "" ) {
	document.location.href='/favorieten.php?soort=1&addmulti='+parseurl;
}

}



function addcheckedtocart(soort) 
{

parseurl="";

jQuery.each($("input[type=checkbox]:checked"), function(i,v) {
    var theTag = v.tagName;
    var theElement = $(v);
    var theValue = theElement.val();
	parseurl=parseurl+theValue+","
});

if ( parseurl != "" ) {
	document.location.href='/mandje.php?soort='+soort+'&addmulti='+parseurl;
}

}



function checkAllCheckboxes() {

$("INPUT[type='checkbox']").attr('checked', true);

}
		
