function Writeframes(strUrl1, strUrl2, strUrl3) {
  // Writeframes
  // JavaScript Code Copyright (c) e-Brand Management Limited 2001
  // This code may be copied and modified without permission or charge, provided
  // this notice remains intact.
  // Original source is at http://www.searchmechanics.com/learn/srf/writefs.js
  // See http://www.searchmechanics.com/learn/srf/ for more details.
  
  // We work out whether we are in the frameset or frame context by looking
  // for a 'nowritefs' parameter
  var str = location.search;
  var writeFrames = (str.indexOf("nowritefs")) && (top.window.length == 0);
  
  if (writeFrames)
  {
    // We are in the frameset context - write the framset out
    if (str == "")
    {
      var bodyFrame = window.location + "?nowritefs";
    }
    else
    {
      var bodyFrame = window.location + "&nowritefs";
    }
  
    // Time to write the framset.
    // The format of the frameset will of course vary from site to site, so you
    // will need to modify this piece of the code for your site.
    document.write(
      '<frameset rows="177,*,18" framespacing="0" frameborder="0">',
      '<frame name="topframe" src="'+ strUrl1 +'" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>',
      '<frameset cols="170,*" framespacing="0" frameborder="0">',
          '<frame name="leftframe" src="'+ strUrl2 +'" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>',
          '<frame name="bodyframe" src="'+ bodyFrame +'" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0" noresize>',
      '</frameset>',
      '<frame name="bottomframe" src="'+ strUrl3 +'" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>',
  '</frameset>');
  }
}