	function obtenerListaDeLocalidades()
	{
		jQuery.post("/ajax.php",
				{
					accion_requerida:'obtener-localidades',
					provincia:jQuery("#provincia").val()
				},
				function(data)
				{
					jQuery("#localidad").html(data) ;
				}) ;
	}
	
	function obtenerListaDeLocalidadesDeOferta()
	{
		jQuery.post("/ajax.php",
				{
					accion_requerida:'obtener-localidades-de-oferta',
					nOferta:oferta,
					provincia:jQuery("#provincia").val()
				},
				function(data)
				{
					jQuery("#localidad").html(data) ;
				}) ;
	}
	
	function obtenerLasOficinas(valor)
	{
		jQuery.post("/ajax.php",
				{
					accion_requerida:'obtener-clinicas',
					localidad:jQuery("#localidad").val(),
					tipo:valor
				},
				function(data)
				{
					jQuery("#datos").html(data) ;
					jQuery('#caja_med').gWaveScrollPane() ;
				}) ;
	}
	
	function obtenerLasOfertas(valor)
	{
		jQuery.post("/ajax.php",
				{
					accion_requerida:'obtener-ofertas',
					localidad:jQuery("#localidad").val(),
					tipo:valor
				},
				function(data)
				{
					jQuery("#datos").html(data) ;
				}) ;
	}
	
	function mostrarOfertasDe(nombreCategoria)
	{
		jQuery.post("/ajax.php",
				{
					accion_requerida:'mostrar-ofertas',
					categoria:nombreCategoria
				},
				function(data)
				{
					jQuery("#rellename").html(data) ;
				}) ;
	}
	
	function irAOferta(nombre)
	{
		window.location.href = '/Ver-Oferta/'+nombre+'/' ;
	}
	
	function obtenerLasOficinasConOferta(nombreOferta)
	{
		jQuery.post("/ajax.php",
				{
					accion_requerida:'obtener-clinicas-oferta',
					localidad:jQuery("#localidad").val(),
					oferta:nombreOferta
				},
				function(data)
				{
					jQuery("#datos").html(data) ;
				}) ;
	}
	
	function irAPacientes(nombre)
	{
		window.location.href = '/Ver-Paciente/'+nombre+'/' ;
	}
	
	function mostrarOfertasDeClinica(clinic,nombreCategoria)
	{
		jQuery.post("/ajax.php",
				{
					accion_requerida:'mostrar-ofertas-de-clinica',
					clinica:clinic,
					categoria:nombreCategoria
				},
				function(data)
				{
					jQuery("#rellename").html(data) ;
				}) ;
	}
	

