var which='', which_label='invalid';
var validReg=true;
switch (xGetCookie('rf')) {
  case 'b' : { which='Broker Direct'; which_label='broker_direct'; break; }
  case 'h' : { which='Holman&rsquo;s'; which_label='holmans'; break; }
  default  : {
    with (document) {
      if (location.replace) location.replace('/')
        else writeln('<meta http-equiv="refresh" content="0; URL=/">');
    }
  }
}

function validateReg() {
  for (i=1; i<4; i++) if (!xGetElementById('condition_'+i).checked) validReg=false;
  if (validReg) xDisplay('regDetails','block')
    else xDisplay('regDetails','none');
  validReg=true;
}
