// JavaScript Document
function carga(file,parameters,method,endonde,cargando,titulo){
$('#' + endonde).hide();
$('#' + cargando).show();


			$.ajax(
		{
	        type: method,
			method: method,
	        url: file,
	        data: parameters,
	        success: function(t){
				//$('#' + endonde).replaceWith('<div id="' + endonde + '">' + t + '</div>');
				$('#' + endonde).html( t );
				$('#' + cargando).hide();
				$('#' + endonde).show();
				$('#titulo').html( titulo );
				
				
				
				},
			error: function(t){
				alert('Error: ' + t.status + ' -- ' + t.statusText + titulo);
				}


			
		}
					);
		
}

