function ClearTextBox(x)
{
document.getElementById(x).value="";
}

function RefreshImage(valImageId) {
	var objImage = document.images[valImageId];
	if (objImage == undefined) {
		return;
	}
	var now = new Date();
	objImage.src = objImage.src.split('?')[0] + '?x=' + now.toUTCString();
}

function goBack()
  {
  window.history.back()
  }
  
  function goback()
  {
  window.history.back()
  }

function MenuMouseOver(x)
{
//x.style.background="#FFE6FF"
x.style.background="purple"
//x.style.color="white"


}

function MenuMouseOut(x)
{
//x.style.background="none"
x.style.backgroundImage="url(/images/TableBackgrounds/PinkGradient.gif)"


}

function openClose(theID) {
 if (document.getElementById(theID).style.display == "block") { document.getElementById(theID).style.display = "none" }
 else { document.getElementById(theID).style.display = "block" } }
 
 
function GetRegions(str)
{
if (str=="")
  {
  document.getElementById("txtregions").innerHTML="";
  return;
  }  
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("txtregions").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","/includes/RegionsSelector.asp?q="+str,true);
xmlhttp.send();
}

function GoToRegion(id)
{
var url = window.location.pathname;
var myPageName = url.substring(url.lastIndexOf('/') + 1);
window.location.href="/Categories/"+myPageName+"?LocalAreaFilter="+id;

}




