function change_poblacio(lang) {
	var provincia=$('#gm-1').val();
	$.get(
		'/'+lang+'/ajax-params/?jorudii=1001&provinciaid='+provincia,
		function(data) {
			$('#gm-2').html(data);
			$('#gm-2').removeAttr('disabled');
		}
	);
}

function change_poblacio_talleres(lang) {
	var provincia=$('#gm-1t').val();
	$.get(
		'/'+lang+'/ajax-params/?jorudii=1001&taller=1&provinciaid='+provincia,
		function(data) {
			$('#gm-2t').html(data);
			$('#gm-2t').removeAttr('disabled');
		}
	);
}

function change_home_box(active) {
	$("#box_guia_medica").hide();
	$("#box_club_salud").hide();
	$("#box_guia_tallers").hide();
	$("#a_box_guia_medica").removeClass('selected');
	$("#a_box_club_salud").removeClass('selected');
	$("#a_box_guia_tallers").removeClass('selected');

	$("#"+active).show();
	$("#a_"+active).addClass('selected');
}

function clear_input(id,text) {
	if (document.getElementById(id).value==text) $('#'+id).val('');
}

function reset_input(id,text) {
	if (document.getElementById(id).value=='') $('#'+id).val(text);
}

function open_url(url) {
	location.href=url;
}
