0){locId=cityId;locName=cityName;} else if (regionId>0){locId=regionId;locName=regionName;} else if (countryId>0){locId=countryId;locName=countryName;} if (locId>0){ var l=document.getElementById('fLocation'); if(!l) l=document.getElementById('uf-location'); var o=l.options[l.length-1]; l.options[l.length-1]=new Option(unescape(locName),locId,false,true); l.options[l.length]=o; l.selectedIndex=l.length-2; _uWnd.close('Loc'); try{ if(l.id == 'uf-location') uShowErr(l.name,uValidator[l.name](l)); else checkLocation(); }catch(e){}; } } ]]> ]]>