window.onload = init;

function init(){

    var Rules = {};

    // popups
    Object.extend(Rules, popup);

    // auto-focus errors
    Object.extend(Rules, auto_focus_errors);

    // auto-submit selects
    Object.extend(Rules, auto_submit);
    
    // auto-focus
    Object.extend(Rules, auto_focus);

    EventSelectors.start(Rules);
}

function breakout_of_frame()
{
  // see http://www.thesitewizard.com/archive/framebreak.shtml
  // for an explanation of this script and how to use it on your
  // own website
  if (top.location != location) {
    top.location.href = document.location.href;
  }
}