function CheckMenuStatus(menuID)
{
  ids = document.getElementById(menuID);
  if(ids.style.display == "")
     ids.style.display = "none";
  else
     ids.style.display = "";
}

var timecount = 500;
var timerID = null;
var timerOn = false;


function startTime()
{
        if(timerOn == false)
        {
                timerID=setTimeout("Hide('changeCountry')",timecount);
                timerOn=true;
        }
}

function stopTime()
{
        //alert("We should stop timer now... ");
        if(timerOn)
        {
                //alert("Timer is on and we are now stopping it... " + timerID);
                clearTimeout(timerID);
                timerID = null;
                timerOn = false;
                ids = document.getElementById('changeCountry');
                ids.style.display="";
        }
}

function Hide(menuID)
{
        ids = document.getElementById(menuID);
        ids.style.display="none";
}