var timerID;

function ShowLayer(id) {
  document.getElementById().style.display = "block"; 
}

function HideTimedLayer(id) {
    clearTimeout(timerID);
    document.getElementById(id).style.display = "none";
}

function timedLayer(id,timeout) {
	atimeout = timeout * 1000;
 	setTimeout("HideTimedLayer(\"" + id + "\")",atimeout); //5000= 5 seconds
}