var secmod=window;

while((secmod!=null)&&((!secmod.WINID)||(secmod.WINID!="PHSEC")))
 {
 if (secmod==secmod.top)
   {
   secmod=secmod.opener;
   }
 else
   {
   secmod=secmod.parent;
   }
 }

if(secmod==null)
  {
  window.location.replace("/mail/main");
  }

function Nav(target)
  {
  if (target.length == 0)
   {
   alert("The entry cannot be selected.");
   return;
   }
  else
   secmod.phsession.Nav(window,""+target);
  }
function NavWin(w,target)
  {
  if (target.length == 0)
   {
   alert("The entry cannot be selected.");
   return;
   }
  else
   secmod.phsession.Nav(w,""+target);
  }

function NavL(t) {NavWin(parent.frames["Frame_NAV"],t);}
function NavA(t) {NavWin(parent.frames["Frame_A"],t);}
function NavB(t) {NavWin(parent.frames["Frame_B"],t);}
function NavURL(t) {return(secmod.phsession.NavURL(window,t));}


function SPost(w,form)
  {
  secmod.phsession.Submit(w,form);
  }
function LPost(w,form)
  {
  secmod.phsession.LongSubmit(w,form);
  }
function SessionEnc(str,text)
  {
  return(secmod.phsession.Enc(str,text));
  }

function AuthURL(w,uri)
  {
  return(secmod.phsession.NavURL(w,uri));
  }



