$(function(){

	$("#registerform input").bind("click", function(event){
		
		$(('#'+this.id) + '_error').html('&nbsp;');
		$(this).removeClass('error');
		
	});
	
	$("#registerform").bind("submit", function(event){

		$("span.error").html('&nbsp;');
		$("input.error").removeClass('error');

		xajax.call('registerUser', {
			parameters:[xajax.getFormValues("registerform")],
			onComplete: (function(){
				
			})
		});
		
		return false;
		
	});

	
});
