function setAction(action) {
	var el = document.getElementById('submit_type');
	el.value = action;
}

function setBorder(element, border) {
	if(border == true) {
		element.className = 'border_active';
	} else {
		element.className = 'border_inactive';
	}
}

function setWhiteBorder(element) {
	element.className = 'border_white';
}

function product(id) {
	window.location = '/product/' + id;
}

function go(url) {
	window.location = url;
}

function displayBedrijf(type) {
	
	if(type == 'show') {
		document.getElementById('bedrijf').style.display = '';
	} else {
		document.getElementById('bedrijf').style.display = 'none';
	}
}

function extra_option() {
	if(!$('#option_value_id').attr('value')) return true;
	if($('#option_value_id').attr('value') > 0) return true;
	
	$('#option_required').css({display: "block"});
	
	return false;	
}

function set_session() {
	
	var j = 0;
	var cookievalue = '';

	$('.checkbox').each(function() {
		if($(this).attr('checked') == true) {
			cookievalue += (j > 0 ? ';' : '') + $(this).attr('value');
			j++;
		}
	});
		
	$.get("/session.php", { vehicle: ""+cookievalue+""}, function(data){

	});
}