function calculateTotal() {
	var total;
	switch ($('edtGiftMo').value) {
		case 'Evo':
			total = 150;
			break;
		case 'Dec40':
			total = 115;
			break;
		case 'Dec30':
			total = 100;
			break;
		case 'Dec20':
			total = 80;
			break;
		case 'Dec10':
			total = 50;
			break;
		case 'Photo':
			total = 75;
			break;
	}
	total += parseInt($('edtGiftDVD').value, 10) * 10;
	total += parseInt($('edtGiftPics').value, 10) * 1;
	$('edtPriceMo').value = ' ' + total + ' EUR';
}

window.addEvent('domready', function() {
	//Adding events to the fields
	$$('input', 'select', 'textarea').each(function(input) {
		input.onfocus = function(e) {
			var target = new Event(e).target;
			$(target).addClass('focus');
			$(target.parentNode).addClass('focus');
		};
		input.onblur = function(e) {
			var target = new Event(e).target;
			$(target).removeClass('focus');
			$(target.parentNode).removeClass('focus');
		};
	});
	//Adding event to the select used to calculte the gift total price
	$('edtGiftMo').onchange = calculateTotal;
	$('edtGiftDVD').onchange = calculateTotal;
	$('edtGiftPics').onchange = calculateTotal;
	calculateTotal();
});