function select_region(form,name,num) { return true; } function select_region1(form,name,num) { cmd = eval("document." + form + "." + name); if(cmd.selectedIndex == 0+num) { for (i = 1+num; i < 84+num; i++) cmd.options[i].selected=true; cmd.options[0+num].selected=false; } if(cmd.selectedIndex == 84+num) { for (i = 85+num; i < 111+num; i++) cmd.options[i].selected=true; cmd.options[84+num].selected=false; } if(cmd.selectedIndex == 111+num) { for (i = 112+num; i < 161+num; i++) cmd.options[i].selected=true; cmd.options[111+num].selected=false; } } function select_all1(form,name,num) { cmd = eval("document." + form + "." + name); for (i = 1+num; i < 77+num; i++) cmd.options[i].selected=true; for (i = 78+num; i < 104+num; i++) cmd.options[i].selected=true; for (i = 105+num; i < 154+num; i++) cmd.options[i].selected=true; } function clear_all1(form,name,num) { cmd = eval("document." + form + "." + name); for (i = 1+num; i < 154+num; i++) cmd.options[i].selected=false; } function select_region1(form,name,num) { cmd = eval("document." + form + "." + name); if(cmd.selectedIndex == 0+num) { for (i = 1+num; i < 77+num; i++) cmd.options[i].selected=true; cmd.options[0+num].selected=false; } if(cmd.selectedIndex == 77+num) { for (i = 78+num; i < 104+num; i++) cmd.options[i].selected=true; cmd.options[77+num].selected=false; } if(cmd.selectedIndex == 104+num) { for (i = 105+num; i < 154+num; i++) cmd.options[i].selected=true; cmd.options[104+num].selected=false; } } function Clear_Form(form,region,city,num) { cmd = eval("document." + form + "." + region); cmd1 = eval("document." + form + "." + city); if( cmd.options[cmd.selectedIndex].value.substring(0,2) != 'RU') { toggleBox('Help' + num); } else { toggleBox1('Help' + num); } var city=""; if(cmd.options[cmd.selectedIndex].value == 'RU,77') { var city="Москва"; } if(cmd.options[cmd.selectedIndex].value == 'RU,78') { var city="Санкт-Петербург"; } if(cmd.options[cmd.selectedIndex].value == 'RU,99') { var city="Байконур"; } eval('cmd1.value = city'); } function toggleBox(szDivID) { if (document.layers) { // NN4+ if (document.layers[szDivID].visibility == 'visible') { document.layers[szDivID].visibility = "hide"; document.layers[szDivID].display = "none"; document.layers[szDivID+"SD"].fontWeight = "normal"; } } else if (document.getElementById) { // gecko(NN6) + IE 5+ var obj = document.getElementById(szDivID); var objSD = document.getElementById(szDivID+"SD"); if (obj.style.visibility == 'visible') { obj.style.visibility = "hidden"; obj.style.display = "none"; objSD.style.fontWeight = "normal"; } } else if (document.all) { // IE 4 if (document.all[szDivID].style.visibility == 'visible') { document.all[szDivID].style.visibility = "hidden"; document.all[szDivID].style.display = "none"; document.all[szDivID+"SD"].style.fontWeight = "normal"; } } } function toggleBox1(szDivID) { if (document.layers) { // NN4+ if (document.layers[szDivID].visibility != 'visible') { document.layers[szDivID].visibility = "show"; document.layers[szDivID].display = "inline"; document.layers[szDivID+"SD"].fontWeight = "bold"; } } else if (document.getElementById) { // gecko(NN6) + IE 5+ var obj = document.getElementById(szDivID); var objSD = document.getElementById(szDivID+"SD"); if (obj.style.visibility != 'visible') { obj.style.visibility = "visible"; obj.style.display = "inline"; objSD.style.fontWeight = "bold"; } } else if (document.all) { // IE 4 if (document.all[szDivID].style.visibility != 'visible') { document.all[szDivID].style.visibility = "visible"; document.all[szDivID].style.display = "inline"; document.all[szDivID+"SD"].style.fontWeight = "bold"; } } } function ListCities(sFormName, sCityField, sStateField, sURL, sDMA) { if (sFormName == '') { sFormName = 'forms[0]'; } sCityField = sFormName + '.' + sCityField sStateField = sFormName + '.' + sStateField if (sURL.indexOf("?") > 0) { var url= sURL + '&c=' + sCityField + '&s=' + sStateField + '>yp=' + sDMA } else { var url= sURL + '?c=' + sCityField + '&s=' + sStateField + '>yp=' + sDMA } var sStateField = eval('document.' + sStateField) var state = sStateField.options[sStateField.selectedIndex].value if (sDMA == "") { if ((state == "ALL, US") || (state == "") || (state == "0") || (state == "---")) { alert("Пожалуйста выберите регион.") sStateField.options.focus() } else { w1=self.open(url,'searchcity','width=500,height=330,scrollbars=yes,resizable=yes,toolbar=0,menubar=0,status=0,location=0'); w1.focus(); } } else { w1=self.open(url,'searchcity','width=500,height=330,scrollbars=yes,resizable=yes,toolbar=0,menubar=0,status=0,location=0') ; w1.focus(); } } function SelectAll(the_form, basename, mark) { for (i = 0; i < document.forms[the_form].elements.length; i++) { var item = document.forms[the_form].elements[i]; if (item.name == basename && !item.disabled) { item.checked = mark; }; } }