function SetAllCheckBoxes(FormName, FieldName, CheckValue)
	{
	if(!document.forms[FormName])
	return;
	
	var objCheckBoxes = document.forms[FormName].elements[FieldName];
	if(!objCheckBoxes)
	return;
	var countCheckBoxes = objCheckBoxes.length;
	if(!countCheckBoxes)
		objCheckBoxes.checked = CheckValue;
	else
	// set the check value for all check boxes
	for(var i = 0; i < countCheckBoxes; i++)
		objCheckBoxes[i].checked = CheckValue;
	}

// JavaScript Document
$(document).ready(function(){
						   
// Corners
/*
$('.content').corners("15px");
$('.pagina').corners("11px right");
$('.imgline').corners("5px top");
$('.bereken').corners("11px bottom");
$('.winkelmand').corners("15px bottom");
*/

// Elastic
$('.textarea').elastic();

// Easyslider
$("#homeaktie").easySlider({
	auto: true, 
	continuous: true,
	numeric: false,
	speed: 4000,
	pauze: 3000
});

// Qtip
$('.shop_winkelmand a[title]').qtip();

// Prettyphoto
$("a[rel^='product']").prettyPhoto({ 
	theme:'light_rounded',
	showTitle: true
});

// Validation
$('#contactform').validation();
$('.bestelform').validation();
$('.berekenform').validation();

});

