		$(function () {

			$("#tabs > #tab-menu").tabs();
			
			$('#accordionFaq').accordion({ 
				autoHeight: false 
			});
			
		});


function Focus(control) {

  control.focus();

  control.select();

}



function IsEmailCorrect(email) {

  return email.match(/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-Z]{2,3})$/)!=null;

}



function IsEmpty(pole) {

  if (pole=='') 

  	return true

	else

	return false

}







function check_form()

{

if (IsEmpty(document.getElementById('name').value)) {
    alert('Graag uw naam opgeven.');
    Focus(document.getElementById('name'));
    return false;
  }

if (!IsEmailCorrect(document.getElementById('email').value)) {
	alert('Graag uw e-mail opgeven.');
	Focus(document.getElementById('email'));
	return false;
}


if (IsEmpty(document.getElementById('text').value)) {
    alert('Shrijf uw bericht.');
    Focus(document.getElementById('text'));
    return false;
  }


return true;

}
