<!-- Hide from old browsers
userconn="";
expireDate = new Date;
expireDate.setMonth(expireDate.getMonth()+6);

function setcookie() {
  userconn=(document.forms["contype"].ct[0].checked)?"56k":"bb";
  document.cookie="userconn="+userconn+";expires="+expireDate.toGMTString();
}
function getcookie() {
  if(document.cookie!="") {
    cookiedata=document.cookie.split(";");
    for (i=0; i<cookiedata.length; i++) {
      if(cookiedata[i].split("=")[0].indexOf("userconn")>=0){
        userconn=cookiedata[i].split("=")[1];
      }
    }
  }
  i=(userconn=="bb")?1:0;
  if(document.forms["contype"] != null) {
    document.forms["contype"].ct[i].checked=true;
  }
}
function showHome() {
  getcookie();
  top.location.replace("http://www.rsaf-aa.co.uk/rsaf/"+userconn+"/homepage.html");
}
function showBuild() {
  if(document.forms["contype"].ct[0].checked ||
    document.forms["contype"].ct[1].checked) {
  setcookie();
  showHome();
 }
 else alert('You need to select the type of Internet connection in use');
}
function writeHeading() {
 document.writeln('<table height="80" width="100%" cellspacing="0" cellpadding="0"');
 document.writeln('background="images/main_bg.gif"');
 document.write('><tr><td align="center" style="font-size:24pt;');
 document.write((document.all)? ' color:white; filter: shadow("direction=0")' : ' color:white;');
 document.write('">');
 document.writeln('<strong><em>Royal Small Arms Factory Enfield<br \/>Apprentices Association<\/em><\/strong>');
 document.writeln('<\/tr><\/td><\/table>');
}
// End of hidden section -->