SIV.addHandlers({	


	register : function(success, data) {
		
		$('.sivform-loading').hide();
		if(success){
		
			$('#content_text').html('<div style="padding:30px;margin:auto;text-align:center;"><b>Thank you for your registration. You should receive a confirmation email shortly.</b></div>');
			
		}else{
			$('.sivform-error').html(data.error);
			$('.sivform-error').show();
		}
	}
});


$(function(){
	
	
	$('#siv-form-submit').click(function(ev){
		ev.preventDefault();
		$('.sivform-error').hide();
		$('.sivform-loading').show();
		SIV.ajaxCall({
			url: '/register/ajax/register/',
			handler: 'register',
			form: 'register-form'
		});
		
		
	});
	
	
});

