// This bit of JScript builds the drop down
//
// Alan Millicheap 26/01/2009
//
var s1 = "<option value=";
var s2 = "</option>\n";

switch (sReport)
{
    case '?A1':
        sHTML=s1 + "'1'>All Consortium; Courses Attempted; Boys & Girls; Final Year" + s2
        + s1 + "'2'>All Consortium; Results Achieved; Boys & Girls; Final Year" + s2
        + s1 + "'3'>Consortium Groups; Courses Attempted; Boys & Girls; Final Year" + s2
        + s1 + "'4'>Consortium Groups; Results Achieved; Boys & Girls; Final Year" + s2
;
        break;
    case '?A2':
        sHTML=s1 + "'5'>All Consortium; Boys & Girls; Final Year; Percent" + s2
        + s1 + "'6'>All Consortium; Boys & Girls; Final Year; Value" + s2
        + s1 + "'7'>All Consortium; Boys; Final Year; Percent" + s2
        + s1 + "'8'>All Consortium; Boys; Final Year; Value" + s2
        + s1 + "'9'>All Consortium; Girls; Final Year; Percent" + s2
        + s1 + "'10'>All Consortium; Girls; Final Year; Value" + s2
        + s1 + "'11'>Consortium Groups; Boys & Girls; Final Year; Percent" + s2
        + s1 + "'12'>Consortium Groups; Boys & Girls; Final Year; Value" + s2
        + s1 + "'13'>Consortium Groups; Boys; Final Year; Percent" + s2
        + s1 + "'14'>Consortium Groups; Boys; Final Year; Value" + s2
        + s1 + "'15'>Consortium Groups; Girls; Final Year; Percent" + s2
        + s1 + "'16'>Consortium Groups; Girls; Final Year; Value" + s2
;
        break;
    case '?AA1':
        sHTML=s1 + "'17'>All Consortium; Boys & Girls; Final Year" + s2
        + s1 + "'18'>All Consortium; Boys; Final Year" + s2
        + s1 + "'19'>All Consortium; Girls; Final Year" + s2
        + s1 + "'20'>Consortium Groups; Boys & Girls; Final Year" + s2
        + s1 + "'21'>Consortium Groups; Boys; Final Year" + s2
        + s1 + "'22'>Consortium Groups; Girls; Final Year" + s2
;
        break;
    case '?ACG4B':
        sHTML=s1 + "'23'>All Consortium; DCSF Ethnic Main Category; Boys and Girls; Final Year" + s2
        + s1 + "'24'>All Consortium; First Language; Boys and Girls; Final Year" + s2
        + s1 + "'25'>All Consortium; SEN Stage; Boys and Girls; Final Year" + s2
;
        break;
    case '?AS1':
        sHTML=s1 + "'26'>All Consortium; Boys & Girls; Final Year; Attempting <2; Section 96 Pts;" + s2
        + s1 + "'27'>All Consortium; Boys & Girls; Final Year; Attempting 2+; Section 96 Pts;" + s2
        + s1 + "'28'>All Consortium; Boys & Girls; Final Year; Attempting Any; Section 96 Pts;" + s2
        + s1 + "'29'>All Consortium; Boys & Girls;Final Year; Attempting <2; UCAS Tariff" + s2
        + s1 + "'30'>All Consortium; Boys & Girls;Final Year; Attempting 2+; UCAS Tariff" + s2
        + s1 + "'31'>All Consortium; Boys & Girls;Final Year; Attempting Any; UCAS Tariff" + s2
        + s1 + "'32'>Consortium Groups; Boys & Girls; Final Year; Attempting <2; Section 96 Pts;" + s2
        + s1 + "'33'>Consortium Groups; Boys & Girls; Final Year; Attempting 2+; Section 96 Pts;" + s2
        + s1 + "'34'>Consortium Groups; Boys & Girls; Final Year; Attempting Any; Section 96 Pts;" + s2
        + s1 + "'35'>Consortium Groups; Boys & Girls;Final Year; Attempting <2; UCAS Tariff" + s2
        + s1 + "'36'>Consortium Groups; Boys & Girls;Final Year; Attempting 2+; UCAS Tariff" + s2
        + s1 + "'37'>Consortium Groups; Boys & Girls;Final Year; Attempting Any; UCAS Tariff" + s2
;
        break;
    case '?AS2':
        sHTML=s1 + "'38'>All Consortium; Boys & Girls; Final Year; Percent" + s2
        + s1 + "'39'>All Consortium; Boys & Girls; Final Year; Value" + s2
        + s1 + "'40'>Consortium Groups; Boys & Girls; Final Year; Percent" + s2
        + s1 + "'41'>Consortium Groups; Boys & Girls; Final Year; Value" + s2
;
        break;
    case '?CAS01':
        sHTML=s1 + "'42'>Average Grade; All Consortium; Boys and Girls; End of KS4" + s2
        + s1 + "'43'>Average Grade; All Consortium; Boys; End of KS4" + s2
        + s1 + "'44'>Average Grade; All Consortium; Girls; End of KS4" + s2
        + s1 + "'45'>Average Grade; Consortium Groups; Boys and Girls; End of KS4" + s2
        + s1 + "'46'>Average Grade; Consortium Groups; Boys; End of KS4" + s2
        + s1 + "'47'>Average Grade; Consortium Groups; Girls; End of KS4" + s2
        + s1 + "'48'>Best Grade; All Consortium; Boys and Girls; End of KS4" + s2
        + s1 + "'49'>Best Grade; All Consortium; Boys; End of KS4" + s2
        + s1 + "'50'>Best Grade; All Consortium; Girls; End of KS4" + s2
        + s1 + "'51'>Best Grade; Consortium Groups; Boys and Girls; End of KS4" + s2
        + s1 + "'52'>Best Grade; Consortium Groups; Boys; End of KS4" + s2
        + s1 + "'53'>Best Grade; Consortium Groups; Girls; End of KS4" + s2
;
        break;
    case '?G1':
        sHTML=s1 + "'54'>All Consortium; Courses Attempted; End of KS4" + s2
        + s1 + "'55'>All Consortium; Courses Attempted; FSM Band; End of KS4" + s2
        + s1 + "'56'>All Consortium; Results Achieved; End of KS4" + s2
        + s1 + "'57'>All Consortium; Results Achieved; FSM Band; End of KS4" + s2
        + s1 + "'58'>Consortium Groups; Courses Attempted; End of KS4" + s2
        + s1 + "'59'>Consortium Groups; Results Achieved; End of KS4" + s2
;
        break;
    case '?G2':
        sHTML=s1 + "'60'>All Consortium; Boys and Girls; End of KS4; Percent" + s2
        + s1 + "'61'>All Consortium; Boys and Girls; End of KS4; Value" + s2
        + s1 + "'62'>All Consortium; Boys; End of KS4; Percent" + s2
        + s1 + "'63'>All Consortium; Boys; End of KS4; Value" + s2
        + s1 + "'64'>All Consortium; FSM band; Boys and Girls; End of KS4; Percent" + s2
        + s1 + "'65'>All Consortium; FSM band; Boys and Girls; End of KS4; Value" + s2
        + s1 + "'66'>All Consortium; FSM band; Boys; End of KS4; Percent" + s2
        + s1 + "'67'>All Consortium; FSM band; Boys; End of KS4; Value" + s2
        + s1 + "'68'>All Consortium; FSM band; Girls; End of KS4; Percent" + s2
        + s1 + "'69'>All Consortium; FSM band; Girls; End of KS4; Value" + s2
        + s1 + "'70'>All Consortium; Girls; End of KS4; Percent" + s2
        + s1 + "'71'>All Consortium; Girls; End of KS4; Value" + s2
        + s1 + "'72'>Consortium Groups; All; Percent; End of KS4" + s2
        + s1 + "'73'>Consortium Groups; All; Value; End of KS4" + s2
        + s1 + "'74'>Consortium Groups; Boys; Percent; End of KS4" + s2
        + s1 + "'75'>Consortium Groups; Boys; Value; End of KS4" + s2
        + s1 + "'76'>Consortium Groups; Girls; Percent; End of KS4" + s2
        + s1 + "'77'>Consortium Groups; Girls; Value; End of KS4" + s2
;
        break;
    case '?GA2':
        sHTML=s1 + "'78'>All Consortium; Final Year A Level Cands; Section 96 Pts; End of KS4" + s2
        + s1 + "'79'>Inner London; Final Year A Level Cands; Section 96 Pts; End of KS4" + s2
        + s1 + "'80'>Metropolitian Districts; Final Year A Level Cands; Section 96 Pts; End of KS4" + s2
        + s1 + "'81'>Outer London; Final Year A Level Cands; Section 96 Pts; End of KS4" + s2
        + s1 + "'82'>Two Tier County Councils; Final Year A Level Cands; Section 96 Pts; End of KS4" + s2
        + s1 + "'83'>Unitary Authorities; Final Year A Level Cands; Section 96 Pts; End of KS4" + s2
;
        break;
    case '?GCG1':
        sHTML=s1 + "'84'>All Consortium; DCSF Ethnic Main Category; Boys and Girls; End of KS4" + s2
        + s1 + "'85'>All Consortium; First Language; Boys and Girls; End of KS4" + s2
        + s1 + "'86'>All Consortium; SEN Stage; Boys and Girls; End of KS4" + s2
;
        break;
    case '?GCG3':
        sHTML=s1 + "'87'>All Consortium; DCSF Ethnic Main Category; Boys and Girls; End of KS4" + s2
        + s1 + "'88'>All Consortium; First Language; Boys and Girls; End of KS4" + s2
        + s1 + "'89'>All Consortium; SEN Stage; Boys and Girls; End of KS4" + s2
;
        break;
    case '?GEDP1':
        sHTML=s1 + "'90'>All Consortium; End of KS4" + s2
        + s1 + "'91'>Consortium Group; End of KS4" + s2
;
        break;
    case '?GG1':
        sHTML=s1 + "'92'>All Consortium; End of KS4" + s2
        + s1 + "'93'>Inner London Boroughs; End of KS4" + s2
        + s1 + "'94'>Metropolitan District Authorities; End of KS4" + s2
        + s1 + "'95'>Outer London Boroughs; End of KS4" + s2
        + s1 + "'96'>Two Tier County Councils; End of KS4" + s2
        + s1 + "'97'>Unitary Authorities; End of KS4" + s2
;
        break;
    case '?GP2':
        sHTML=s1 + "'98'>All Consortium; FSM Band; Section 96 Pts; All Pupils; End of KS4" + s2
        + s1 + "'99'>All Consortium; Section 96 Pts; All Pupils; End of KS4" + s2
        + s1 + "'100'>Consortium Groups; Section 96 Pts; All Pupils; End of KS4" + s2
;
        break;
    case '?GS1':
        sHTML=s1 + "'101'>All Consortium; End of KS4" + s2
        + s1 + "'102'>All Consortium; FSM Band; End of KS4" + s2
        + s1 + "'103'>All Consortium; School type; End of KS4" + s2
        + s1 + "'104'>Consortium Groups; End of KS4" + s2
;
        break;
    case '?GS2':
        sHTML=s1 + "'105'>All Consortium; All Pupils; End of KS4; Percent" + s2
        + s1 + "'106'>All Consortium; All Pupils; End of KS4; Value" + s2
        + s1 + "'107'>All Consortium; FSM Band; All Pupils; End of KS4; Percent" + s2
        + s1 + "'108'>All Consortium; FSM Band; All Pupils; End of KS4; Value" + s2
        + s1 + "'109'>Consortium Groups; All Pupils; End of KS4; Percent" + s2
        + s1 + "'110'>Consortium Groups; All Pupils; End of KS4; Value" + s2
;
        break;
    case '?SFR502':
        sHTML=s1 + "'111'>All Consortium; All Pupils; Final Year" + s2
        + s1 + "'112'>Consortium Groups; All Pupils; Final Year" + s2
;
        break;
    default:
        sHTML = "error";
}
    if (sHTML=="error")
    {
        alert(sReport + " is not known to the system");
        location.href = "http://".$_SERVER['SERVER_NAME']."/national_reports_2008.php";

    }
    else
    {
        sHTML = "<option selected value='0'>--- Select a report ---</option>\n" + sHTML;
        document.write(sHTML);
    }
// End

