function loadView(viewPath)
{
	window.location = '/index.php/' + viewPath;
}

function loadRegistrationForm(courseId)
{
	var form = $('#CourseForm');
	
	form.attr('action', '/index.php/schedule/registration/' + courseId);
	form.submit();
}

function validateRegistrationForm(form)
{
	var form = $(form);
	
	if(form.find('.creditStatusRadio:checked').length)
		return true;
		
	return false;
}