jQuery(function ($) {
    //alert("The DOM is now loaded and can be manipulated.");
	
	$(".jajax")
        .submit( function( event ){
        	var jajax = $('<input />').attr({
    			'type': 'hidden',
    			'name': 'ajax',
    			'value': '1'
				});
				
        var str = $(this).serialize() + '&ajax=1';
        
        if($('#' + this.id + '_dlog').length)
		{	
			//alert("Coucou jajax : " + $(this).id);
			var log = $('#' + this.id + '_dlog').empty().addClass('ajax-loading');
		}
		else
		{
			var log = $('<div>').attr({
    		'id': this.id + '_dlog'
			});
		
			$(this).append(log);

		}
			
		$.ajax({
		type: "POST",
		url: $(this).attr("action"),
		data: str,
		success: function(html){
	   		log.append(html).removeClass('ajax-loading');
			//alert(html);
   			}
 		});
 		
			//$(this).append()        
        
        return false;
    });
	
		//if($('#frmContact_dlog').length) alert('#frmContact_dlog exist');
//$(".dragbox").click( function () {return false;} );
                
});

