/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jerome Caron |  */
team = new Array(
null,
null,
null,
null,
null,
new Array(
new Array("Select sub topic..."),
new Array("child and family development"),
new Array("Common Assessment Framework (CAF)")
),
new Array(
new Array("Select sub topic..."),
new Array("attachment theory"),
new Array("autistic spectrum disorders"),
new Array("bereavement and loss"),
new Array("play"),
new Array("resilience")
),
new Array(
new Array("Select sub topic..."),
new Array("contact"),
new Array("family re-unification"),
new Array("foster care"),
new Array("kinship care"),
new Array("leaving care"),
new Array("placement stability / disruption"),
new Array("residential care"),
new Array("special guardianship")
),
new Array(
new Array("Select sub topic..."),
new Array("child and adolescent mental health services (CAMHS)"),
new Array("children's centres and Sure Start"),
new Array("childrens' trusts"),
new Array("economic costs of services"),
new Array("extended schools"),
new Array("lead professional"),
new Array("information sharing"),
new Array("Integrated Children's System"),
new Array("management of services"),
new Array("matching needs with services"),
new Array("multi-agency working")
),
null,
new Array(
new Array("Select sub topic..."),
new Array("parent support"),
new Array("participation"),
new Array("short breaks"),
new Array("safeguarding")
),
null,
null,
null,
new Array(
new Array("Select sub topic..."),
new Array("bullying"),
new Array("educational welfare"),
new Array("engagement"),
new Array("looked after children"),
new Array("school exclusion"),
new Array("SEN"),
new Array("truancy"),
new Array("young people not in education, employment or training (NEET)")
),
null,
null,
null,
new Array(
new Array("Select sub topic..."),
new Array("child care"),
new Array("family centres"),
new Array("family group conferences"),
new Array("family intervention projects")
),
new Array(
new Array("Select sub topic..."),
new Array("divorce / separation"),
new Array("extended family"),
new Array("one parent families"),
new Array("reconstituted families")
),
null,
new Array(
new Array("Select sub topic..."),
new Array("children and young people"),
new Array("parents"),
new Array("self harm"),
new Array("suicide")
),
null,
null,
new Array(
new Array("Select sub topic..."),
new Array("children's rights and responsibilities"),
new Array("family courts"),
new Array("family mediation"),
new Array("parental rights and responsibilities"),
new Array("Public Law Outline")
),
new Array(
new Array("Select sub topic..."),
new Array("fathers"),
new Array("parenting capacity"),
new Array("parenting programmes"),
new Array("parenting support"),
new Array("teenage parenthood")
),
null,
new Array(
new Array("Select sub topic..."),
new Array("methodologies and methods"),
new Array("outcomes"),
new Array("research design"),
new Array("research ethics"),
new Array("research governance"),
new Array("service user participation")
),
null,
new Array(
new Array("Select sub topic..."),
new Array("accidents"),
new Array("children at risk"),
new Array("LSCBs")
),
new Array(
new Array("Select sub topic..."),
new Array("emotional abuse"),
new Array("neglect"),
new Array("physical abuse"),
new Array("sexual abuse")
),
null,
new Array(
new Array("Select sub topic..."),
new Array("child poverty"),
new Array("effective targeting"),
new Array("financial support for children")
),
null,
new Array(
new Array("Select sub topic..."),
new Array("alcohol"),
new Array("children and young people"),
new Array("drugs"),
new Array("parents")
),
null,
null,
null,
null,
null,
new Array(
new Array("Select sub topic..."),
new Array("anti-social behaviour"),
new Array("young offenders")
)
);
function fillSelectFromArray(selectCtrl, itemArray, goodPrompt, badPrompt, defaultItem) {
var i, j;
var prompt;
// empty existing items
for (i = selectCtrl.options.length; i >= 0; i--) {
selectCtrl.options[i] = null;
}
prompt = (itemArray != null) ? goodPrompt : badPrompt;
if (prompt == null) {
j = 0;
}
else {
selectCtrl.options[0] = new Option(prompt);
j = 1;
}
if (itemArray != null) {
// add new items
for (i = 0; i < itemArray.length; i++) {
selectCtrl.options[j] = new Option(itemArray[i][0]);
if (itemArray[i][1] != null) {
selectCtrl.options[j].value = itemArray[i][1];
}
j++;
}
// select first item (prompt) for sub list
selectCtrl.options[0].selected = true;
   }
}
