var ipcheck_countryCode = "RU"; var ipcheck_countryName = "Russian Federation"; if(n_country == null){ //they haven't made a selection for their country, so we'll detect their IP //console.log("setting the country"); //console.log("RU"); setCountry("RU",escape("Russian Federation")); }