function LoadHomePage()
{
    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 = "/";// +"?&showhomepage=true";//reload my top frame
}
function GoBack(){
	if(self.history.length > 0){
	  if(document.referrer.match(/signinlois.aspx/i)){
		  history.go(-2);
	  }else{
		  history.go(-1);
	  }
  }else{
	  parent.window.close();
	}
}
function Sync( timeout )
{ 
	SetResize();
  SetDefStatus();
  //MasterSync('','blank',window);
  if( top.topp && top.topp.ToppSync )
    top.topp.ToppSync('', window);  
  if( top.bottom && top.bottom.BottomSync ) //CR 4926 
    top.bottom.BottomSync('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:GoBack();' 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 );
}

