 
function setLoc()
{
 var $location = setLoc.arguments[0];

 document.getElementById("loc").innerHTML = $location;
}

function reSetLoc()
{
 document.getElementById("loc").innerHTML = 'United Kingdom';
}


function ChangeRegion()
{
 var $searchPhrase = document.getElementById("qkw").value;
 var $newRegion = document.getElementById("r1").value;
 var $newLocation = "/s.php?qcat=regional&qkw=";
 $newLocation += $searchPhrase;
 $newLocation += "&r1=";
 $newLocation += $newRegion;
 document.location.href  = $newLocation;
}

function ChangeRegion2()
{
 var $searchPhrase = document.getElementById("qkw").value;
 var $r1 = document.getElementById("r1").value;
 var $newRegion = document.getElementById("r2").value;
 var $newLocation = "/s.php?qcat=regional&qkw=";
 $newLocation += $searchPhrase;
 $newLocation += "&r1=";
 $newLocation += $r1;
 $newLocation += "&r2=";
 $newLocation += $newRegion;

 document.location.href  = $newLocation;
}

function ChangeRegion3()
{
 var $searchPhrase = document.getElementById("qkw").value;
 var $r1 = document.getElementById("r1").value;
 var $r2 = document.getElementById("r2").value;
 var $newRegion = document.getElementById("r3").value;
 var $newLocation = "/s.php?qcat=regional&qkw=";
 $newLocation += $searchPhrase;
 $newLocation += "&r1=";
 $newLocation += $r1;
 $newLocation += "&r2=";
 $newLocation += $r2;
 $newLocation += "&r3=";
 $newLocation += $newRegion;
 document.location.href = $newLocation;
}


function ChangeRegion4()
{
 var $searchPhrase = document.getElementById("qkw").value;
 var $r1 = document.getElementById("r1").value;
 var $r2 = document.getElementById("r2").value;
 var $r3 = document.getElementById("r3").value;

 var $newRegion = document.getElementById("r4").value;
 var $newLocation = "/s.php?qcat=regional&qkw=";
 $newLocation += $searchPhrase;
 $newLocation += "&r1=";
 $newLocation += $r1;
 $newLocation += "&r2=";
 $newLocation += $r2;
 $newLocation += "&r3=";
 $newLocation += $r3;
 $newLocation += "&r4=";
 $newLocation += $newRegion;
 document.location.href = $newLocation;
}