var Common = new Class({
	initialize: function() {
		// Handle submits	
		var submit = function(e) {
			var accept_tos = $('user_accept_tos').getValue();
			if ($('user_accept_tos').getValue()) {
				$$('form')[0].submit();
			} else
				alert("You must accept the Terms of Service and Privacy Policy.");
		};
		
		// submit link
		$('submitBtn').addEvent('click', function(e) {
			submit();
			e.stop();
		}.bindWithEvent());
	}
});