function launchPlayer(){
  if(screen){
    leftPos=screen.width-786;
    leftPos=(leftPos/2)-5;
    topPos=screen.height-539;
    topPos=(topPos/2)-30;
  }
  url = "http://media.d1tv.net/gateway/open.html?account=silverlake";
  mMpiWin=window.open(url, "mMpiWin", "width=786,height=539,left="+leftPos+",top="+topPos);
}

function submenu(page)
  {
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        document.getElementById('golf').innerHTML=xmlHttp.responseText;
        }
      }
    xmlHttp.open("GET","golfdb.html",true);
    xmlHttp.send(null);
  }
  
function getMore(id, page)
  {
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        document.getElementById('' + id + '').innerHTML=xmlHttp.responseText;
        }
      }
    xmlHttp.open("GET","" + page + ".html",true);
    xmlHttp.send(null);
  }
  
function getStaff(staff)
  {
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        document.getElementById('bio').innerHTML=xmlHttp.responseText;
        }
      }
    xmlHttp.open("GET","getStaff.php?id=" + staff,true);
    xmlHttp.send(null);
  }
  
  function getCourse(course)
  {
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        document.getElementById('course').innerHTML=xmlHttp.responseText;
        }
      }
    xmlHttp.open("GET","getCourse.php?id=" + course,true);
    xmlHttp.send(null);
  }
  
  function getNews(news)
  {
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        document.getElementById('newspost').innerHTML=xmlHttp.responseText;
        }
      }
    xmlHttp.open("GET","getNews.php?id=" + news,true);
    xmlHttp.send(null);
  }
  
  function checkEmail(){
  var myForm = document.myForm;
  
  if(!myForm.address.value){
    alert("Please enter your email address.");
    myForm.address.focus();
    return false;
  }
  else 
  return true;
}