function jumptip()
{
  if (location.search.length > 0)
  {
    var tipurl = location.search.substr(1);
    var num = location.search.indexOf("tip");
    var thisnum = location.search.substr(num + 3,2);
    pagenum = parseInt(thisnum);
    parent.tipframe.location.href = tipurl;
    document.menu.choosetip.selectedIndex = pagenum - 1;
  }
}
function navigate(choice)
{
  var url = choice.options[choice.selectedIndex].value;
  if (url) parent.tipframe.location.href = url;
}
function forward()
{
  var num = parent.tipframe.location.href.indexOf("tips/tip");
  var thisnum = parent.tipframe.location.href.substr(num + 8,2);
  pagenum = parseInt(thisnum);
  nextnum = pagenum + 1;
  if (nextnum > 26) nextnum = 1;
  var nextpage = "tip" + nextnum + ".html";
  parent.tipframe.location.href = nextpage;
  document.menu.choosetip.selectedIndex = nextnum - 1;
}
function back()
{
  var num = parent.tipframe.location.href.indexOf("tips/tip");
  var thisnum = parent.tipframe.location.href.substr(num + 8,2);
  pagenum = parseInt(thisnum);
  nextnum = pagenum - 1;
  if (nextnum < 1) nextnum = 26;
  var nextpage = "tip" + nextnum + ".html";
  parent.tipframe.location.href = nextpage;
  document.menu.choosetip.selectedIndex = nextnum - 1;

}
