Your code is missing a closing parenthesis, not sure if that's the problem, line numbers in error messages aren't always decipherable. I would have used the location.search property and the switch construct:
var sSearch = location.search;
var iIndex = sSearch.indexOf("country=");
if (iIndex > -1)
var sCountry = sSearch.substr(9); //Test this!!!
sLink = "iframe1.aspx";
parent.location.href = sLink;
Joe (Microsoft MVP - XML