// *******************************
// VALIDERING TILMELDING START
// *******************************
function tilmeld(f)
{

  
if(f.navn.value == ''){
alert('Feltet "Forældres navn" skal udfyldes!');
f.navn.focus();
return false;
}

var mailreg = /^[\w\.\-_]+@[\w\-_]+\.[\w\.\-_]+$/i;
tekst1=f.email.value.toLowerCase();
if (!mailreg.test(tekst1)){
alert ('Feltet "Forældres e-mail" skal udfyldes med en gyldigt mailadresse');
f.email.focus();
return false;
}

if(f.barnnavn.value == ''){
alert('Feltet "Barnets fulde navn" skal udfyldes!');
f.barnnavn.focus();
return false;
}

if(f.stue.value == ''){
alert('Feltet "Barnets stue" skal udfyldes!');
f.stue.focus();
return false;
}

return true;
}


// *******************************
// VALIDERING TILMELDING SLUT
// *******************************


// *******************************
// GALLERIPOPUP SLUT
// *******************************

	hs.graphicsDir = '/cm-fotoarkiv/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.wrapperClassName = 'controls-in-heading';
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.85;
 
	// define the restraining box
	hs.useBox = false;
	hs.width = 640;
	hs.height = 480;
	// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 6000,
		repeat: true,
		useControls: true,
		fixedControls: false,
		overlayOptions: {
			opacity: 1,
			position: 'top right',
			hideOnMouseOut: false
		}
	});

// *******************************
// GALLERIPOPUP SLUT
// *******************************



// *******************************
// TOPROTATION START
// *******************************
$(document).ready(function() {
    $('.toprotation').cycle({
		fx: 'fade',
		timeout: 8000,
		speed: 4000
	});
});
// *******************************
// TOPROTATION SLUT
// *******************************

// **********************************************
// DEBAT GEM GRP ABB START
// **********************************************
$(document).ready(function() { 
 $('#abbgem').ajaxForm({ 
    }); 
});
// **********************************************
// DEBAT GEM GRP ABB SLUT
// **********************************************

// **********************************************
// DEBAT GEM EMNE ABB START
// **********************************************
$(document).ready(function() { 
 $('#abbemnegem').ajaxForm({ 
    }); 
});
// **********************************************
// DEBAT GEM EMNE ABB SLUT
// **********************************************


