


		function selectExpand(vs_form, vs_parent, vs_child, vu_array, vb_undo)
		{
			var li_row = 0;
			var lu_form = document.forms[vs_form];
			if (lu_form)
			{
				var lu_selectChild = lu_form.elements[vs_child];
				if (lu_selectChild)
				{
					selectDel(lu_selectChild, 1);

					var lu_selectParent = lu_form.elements[vs_parent];
					if (lu_selectParent)
					{
						if (lu_selectParent.selectedIndex == -1)
						{
							if (vb_undo) selectFull(lu_selectChild, vu_array, 1);
						}
						else if (lu_selectParent.options[lu_selectParent.selectedIndex].value == '')
						{
							if (vb_undo) selectFull(lu_selectChild, vu_array, 1);
						}
						else
						{
							for (var i = 0; i < vu_array.length; i++)
							{
								if (vu_array[i][0] == lu_selectParent.options[lu_selectParent.selectedIndex].value)
								{
									if (vu_array[i][2] != '')
									{
										li_row++;
										lu_selectChild.options[li_row] = new Option(vu_array[i][2], vu_array[i][1], false, false);
									}
								}
							}
						}
					}
				}
			}
		}



		function selectFull(vu_select, vu_array, vi_first)
		{
			var li_row = vi_first;
			for (var i = 0; i < vu_array.length - 1; i++)
			{
				vu_select.options[li_row] = new Option(vu_array[i][2], vu_array[i][1], false, false);
				li_row++;
			}
			vu_select.selectedIndex = 0;
		}



		function selectDel(vu_select, vi_first)
		{
			for (var i = vi_first; i <= vu_select.options.length - 1; i++)
			{
				vu_select.options[i].text = '';
				vu_select.options[i].value = '';
				vu_select.options[i] = null;
			}
			vu_select.options.length = 1;
			vu_select.selectedIndex = 0;
		}



		function selectDelByName(vs_form, vs_select)
		{
			var lu_form = document.forms[vs_form];
			if (lu_form)
			{
				var lu_select = lu_form.elements[vs_select];
				if (lu_select) selectDel(lu_select, 1);
			}
		}



		function cambiarPaginaFiltro(vu_select, vs_url, vs_argumentos)
		{
			window.location.href= vs_url + '?' + vs_argumentos + '&' + vu_select.name + '=' + escape(vu_select.options[vu_select.selectedIndex].value);
		}
