function GetKinds() { ContainerVisibleSet("search_kind_container", true); SetDataInContainer("/search/ajax/kind/?kind=", "search_kind_container"); } function GetClass(KindSelected) { if (KindSelected == 0) { ContainerVisibleSet("search_class_container", false); ClearDataContainer("search_class_container"); } else { ContainerVisibleSet("search_class_container", true); SetDataInContainer("/search/ajax/class/?kind="+KindSelected+"&class=", "search_class_container"); } } function SetFormParams(ParamName, FormObject) { param_value = document.getElementById(ParamName); if (!FormObject.elements[ParamName] && param_value) { new_element = document.createElement('input'); new_element.name = ParamName; FormObject.appendChild(new_element); FormObject.elements[ParamName].value = param_value.value; } } function ContainerVisibleSet(ConteinerId, Visible) { Container = document.getElementById(ConteinerId); if (Container) { if (Visible) { Container.innerHTML = 'Загрузка данных ... '; Container.style.visibility = ''; Container.style.position = ''; } else { Container.style.visibility = 'hidden'; Container.style.position = 'absolute'; } } }