function hideOverlay()
{
  var x = document.getElementById('overlay');
	x.style.display='none';
	//x.background='none';
}

function hideLayer(id)
{
  var x = document.getElementById(id);
  x.style.display='none';
}

function showLayer(id)
{
  var x = document.getElementById(id);
  x.innerHTML = '';
  x.style.display='';
}

function findSWF(movieName) {
  if (navigator.appName.indexOf("Microsoft")!= -1) {
    return window["ie_" + movieName];
  } else {
    return document[movieName];
  }
}


function reload()
{
  tmp = findSWF("chart");

  //
  // reload the data:
  //
  x = tmp.reload();

  //
  // to load from a specific URL:
  // you may need to 'escape' (URL escape, i.e. percent escape) your URL if it has & in it
  //
  //x = tmp.reload("chartData1.php");

  //
  // do NOT show the 'loading...' message:
  //
  x = tmp.reload("chartData1.php", false);
}

function checkEnter(e)
{
var characterCode

if(e && e.which){ //if which property of event object is supported (NN4)
e = e
characterCode = e.which //character code is contained in NN4's which property
}
else{
e = event
characterCode = e.keyCode //character code is contained in IE's keyCode property
}

if(characterCode == 13){ //if generated character code is equal to ascii 13 (if enter key)
//changeAction2() //submit the form
xajax_loginForm(xajax.getFormValues('loginform')); 
return false
}
else{
return true
}

}

