/*
if (self.location!=top.location) top.location=self.location;

    this routine doesn't work yet
if (self.innerWidth) frameHeight = self.innerHeight;
else if (document.documentElement && document.documentElement.clientWidth) frameHeight = document.documentElement.clientHeight;
else if (document.body) frameHeight = document.body.clientHeight;
self.window.resizeTo(800,frameHeight);
*/

function getdiary(link, name)
  {if (! window.focus)return true;
    var href;
    if (typeof(link) == 'string') href=link;
    else href=link.href;
    window.open(href, name, 'resizable=yes,top=40,screenY=40,left=40,screenX=40,width=750,toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,copyhistory=no');
    return false;
  }

function getdirections(link, name)
  {if (! window.focus)return true;
    var href;
    if (typeof(link) == 'string') href=link;
    else href=link.href;
    window.open(href, name, 'resizable=yes,top=40,screenY=40,left=40,screenX=40,width=600,height=600,toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,copyhistory=no');
    return false;
  }