document.observe("dom:loaded", function() {

	$('sendRegistrationForm').disabled = true;
	Event.observe( $('registrationRules'), 'change', sendAble);

});

function sendAble()
{
	if ($('sendOkeyText'))
	{
		$('sendOkeyText').remove();
	}
	if ($('registrationRules').checked == true)
	{
		$('sendRegistrationForm').disabled = false;
	}
	else
	{
		$('sendRegistrationFormParagraf').insert({top: Builder.node('span', { 'id': 'sendOkeyText', 'class': 'required' }, "Du måste fylla i alla fält som måste fyllas i!")});
		$('sendRegistrationForm').disabled = true;
		
	}
}
