
function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function SetMenu(menu)
{
	var flashMovie=getFlashMovieObject("flmenu");
	flashMovie.SetVariable("current",menu);
}
//-->
function chkDomain(str, e) {		//	onKeyPress="return(chkDomain(this,event))"
var key = '';
var strCheck = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-.";
var aux = aux2 = '';
var whichCode = (window.Event) ? e.which : e.keyCode;
if (whichCode == 13) return true; 
key = String.fromCharCode(whichCode);
if (strCheck.indexOf(key) == -1) return false; 
}