$(document).ready(function(){
		$("#registerForm").submit(function() {
                                
                var sentData="";
                $(':input').each(function() {
                                sentData = sentData + $(this).attr('name')+"="+$(this).attr('value')+"&";
                                
                }); 
                $.ajax({
			type: "POST",
			url: "register.php",
			data: sentData,
                        dataType: 'html',
                        success: function(response){
			$('#log').toggle('slow',function(){
                                $('#log').html(response);
                                $('#log').toggle('slow',function(){
                                        if(response.search(/class="okey"/) > 0 ){
                                        
                                        } 
                                });
                        });
                        }
                });
                return false;
		});
	});