function makeFrontPage()
{
  if (!isError)
  {
    globalCookie = new cookieObject("n247global", 365, "/");
    globalCookie.fields[1] = sectionName;
    globalCookie.write();
    window.location.href = homePage;
  }
}

function onLoadHandler() {
 window.focus();
 doTicker();
}

function loadWizard()
{
  var newwin = window.open("http://www.moreover.com/cgi-local/wizard_step_one.pl?cluster_name=index_topstories","clone","resizable,scrollbars,width=500");
  return true;
}

function gotoCluster(s)
{
  if (s.selectedIndex != 0)
  {
    var d = s.options[s.selectedIndex].value;
    s.selectedIndex=0;
    window.location.href = "index.html?" + d;
  }
}

function searchSubmit()
{
  illegalChars = '';
  returnVal = true;
  allowedCharacters = ' 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  searchStr = document.searchForm.query.value;
  document.searchForm.query.value = searchStr.toLowerCase();

  for (searchCount = 0; searchCount < searchStr.length; searchCount++)
  {
    if (allowedCharacters.indexOf(searchStr.charAt(searchCount)) < 0)
    {
      returnVal = false;
      illegalChars += searchStr.charAt(searchCount);
    }
  }

  if (returnVal)
  {
    location.href = homePage + '?query=' + searchStr.toLowerCase();
    return false;
  }
  else
  {
    alert('Please only use letters, numbers and spaces in your search.');
    return false;
  }
}
