\n');
}
function doPassRegion(args){
var sendText = args;
if(window.document["BTmap"]) window.document["BTmap"].SetVariable("_root.region", sendText);
else if(window.document.BTmap) window.document.BTmap.SetVariable("_root.region", sendText);
else if(window.BTmap) window.BTmap.SetVariable("_root.region", sendText);
else if(document.BTmap) document.BTmap.SetVariable("_root.region", sendText);
else if(document.layers["BTmap"]) document.layers["BTmap"].SetVariable("_root.region", sendText);
else if(document.embeds["BTmap"]) document.embeds["BTmap"].SetVariable("_root.region", sendText);
}
function changeHandler() {
var selbox=document.links.towns;
var i = selbox.selectedIndex;
if(selbox.options[i].value.indexOf("_")>-1) {
// this is a town not a region
document.location.href='wm_results.php?region='+selbox.options[i].value+'&i='+i;
} else {
// this is a region
doPassRegion(selbox.options[i].value);
}
}
function setOptions(townlist) {
//alert("Called setOptions");
var selbox = document.links.towns;
selbox.options.length = 0;
var towns=townlist.split(";");
//alert(towns.length);
selbox.options[selbox.options.length]=new Option('Select Location...','');
for(var i=0;i