function redirect () {

/* give user the opportunity to redirect to frames if they opened a child page directly */

  if ((parent.location != this.location) && (parent.location.hostname == this.location.hostname)) return;

  if (confirm ("This page is part of a better frames-based version of this site.\rWould you like to redirect to that version?")) 
     self.location.href = "index.html?content="+self.location.href;
}