<!--
/* SVN FILE: $Id: captcha.js 28 2008-08-06 23:08:34Z Chris $ */
/**
 * Javascript for the add action of the join controller
 *
 * @copyright    Copyright 2008 PBM Web Development - All Rights Reserved
 * @package      app
 * @subpackage   app.webroot.js
 * @since        V1.0.0
 * @version      $Revision: 28 $
 * @modifiedby   $LastChangedBy: Chris $
 * @lastmodified $Date: 2008-08-07 00:08:34 +0100 (Thu, 07 Aug 2008) $
 */

/**
 * Determines which elements on the join form are active according
 * to the sex of the applicant
 */
  function setSex() {
    if ($('JoinSexFemale').checked == true) {
      $('JoinDress').enable();
      $('JoinBust').enable();
      $('JoinCup').enable();
      $('JoinHips').enable();
    }
    else {
      $('JoinDress').disable();
      $('JoinBust').disable();
      $('JoinCup').disable();
      $('JoinHips').disable();
    }
  }

  Event.observe('JoinSexFemale', 'click', setSex);
  Event.observe('JoinSexMale',   'click', setSex);
// -->