function LoadHomePage()
{
  var home = GetHomeDirURL();
  if( home && home != '' )
  {
    if( top.opener && top.opener != top.self )
    { //reload the top frame of the window that loaded my top frame
      top.opener.top.location.href = home;
      top.close();
    }
    else
      top.location.href = home;//reload my top frame
  }
}
function Sync( timeout )
{ 
  SetResize();
  SetDefStatus();
  MasterSync('','blank',window);
  //timeout true? load home page after timeout
  //if( timeout && timeout == 'timeout' )
  //  window.setTimeout("LoadHomePage()",20000);
}
function WriteMessagePageHTML( header, messageText, messageCode )
{ //messageCode null? this is info, not error message
  var str =  
  "<center>"
  +"<br><br>"
  +"<table width='500' cellspacing='0' cellpadding='7' style='border: solid 1px #027fc2;background-color:#ffffff' class='content'>"
  +"<tr bgcolor='#027fc2'>"
  +"	 <td align='center' class='headingb' style='color:#ffffff'><b>"+ header +"</b></td>"
  +"</tr>"
  +"<TR>"
  +"  <TD align=center>"

  + messageText

  +"   <p><a href='javascript:if(self.history.length > 0){self.history.back();}else{parent.window.close();}' onmouseover=\"return SetStatus('Go Back');\" onmouseout=\"return ResetStatus();\">Go Back</a> or <a href='javascript:LoadHomePage();' onmouseover=\"return SetStatus('Click here for the home page');\" onmouseout=\"return ResetStatus();\">Click here for the home page</a>, where you will be able to explore the power and convenience of electronic legal research."
  if( messageCode && messageCode != '' )
  {
    str +="   <p>If you believe you have received this page in error, please feel free to report this problem through the <a href='/info/content/contactus.htm' onmouseover=\"return SetStatus('Contact Us');\" onmouseout=\"return ResetStatus();\">Contact Us</a> page.  Again we apologize for the inconvenience.   <p>Code: "+ messageCode;
  }
  str +=
   "  </td>"
  +"</TR>"
  +"</table>"
  +"</center>"
  ;
  document.write( str );
}


