function getBICName(codelist) { //fromlist and tolist need to be arrays strBICNames = "The Arts; Biography and True Stories; Language Literature And Biography; Literature and literary studies; English Language Teaching (Elt); Fiction; Reference information and interdisciplinary subjects; Humanities; Social sciences; Economics finance business and industry; Law; Medicine; Mathematics and science; Earth sciences geography environment planning; Technology engineering agriculture veterinary science; Computing and information technology; Family home and practical interests; Sport travel and leisure interests; Children`s and educational; The arts - general issues; History of art / art & design styles; Art forms treatments & subjects; Photography & photographs; Industrial / commercial art & design; Architecture; Antiques & collectables; Performing arts; Music; Biography general; Diaries letters and journals; Memoirs; True stories; Language & linguistics; Literary & linguistic reference works; Language teaching & learning (other than ELT); Literature - history & criticism; Literature - texts; Biography & autobiography; Literature - special interest; Poetry; Prose non-fiction; Anthologies (non-poetry); Literature history and criticism; ELT background & reference material; ELT - learning material & coursework; ELT - English for specific purposes; General & literary fiction; Genre fiction; Fiction - special features; True stories; Encyclopaedias & reference works; Library & information sciences; Museums & museology; Communication studies; Interdisciplinary studies; Controversial knowledge & mysteries; History; Archaeology; Philosophy; Religion & beliefs; Sociology social studies; Psychology; Education; Politics & government; Warfare & defence; Economics; Finance & accounting; Business & management; Industry & industrial studies; Jurisprudence & general issues; International law; English law; Scots law; European Union (EU) law; Laws of other jurisdictions & general law; Other areas of law; Medicine - general issues; Pre-clinical medicine - basic sciences; Clinical & internal medicine; Other branches of medicine; Surgery; Nursing & ancillary services; Complementary medicine; Mathematics; Science - general issues; Astronomy space & time; Physics; Chemistry; Biology life sciences; Earth sciences; Geography; The environment; Regional & area planning; Technology - general issues; Biochemical engineering; Industrial chemistry & manufacturing technologies; Mechanical engineering & materials; Energy technology & engineering; Electronics & communications engineering; Civil engineering surveying & building; Environmental engineering & technology; Transport technology; Other technologies; Agriculture & farming; Veterinary science; General theory of computing; Computer hardware & operating systems; Computer programming; Computer software packages; Computer communications & networking; Internet; Applications of computing; Social & legal aspects of computing; Food & drink cookery; Family & health; Gardening; Handicrafts; Home & house maintenance; Self-help & practical interests; Mind body spirit; Hobbies quizzes & games; Transport - general interest; Humour; Natural history country life & pets; Sports & outdoor recreation; Travel & holiday; Miscellaneous items; The arts; Language & literature; Fiction; Reference; Humanities; Social studies; Economics; Geography & environment; Mathematics; Science; Technology & applied sciences; Vocational subjects & skills; Leisure interests hobbies & sport; Life skills & personal awareness general studies; Young children`s early learning & special book types"; strBICCodes = "A; B; C; D; E; F; G; H; J; K; L; M; P; R; T; U; V; W; Y; AB; AC; AF; AJ; AK; AM; AQ; AT; AV; BG; BJ; BM; BT; CF; CG; CJ; CS; CT; CV; CX; DC; DN; DQ; DS; EB; EL; ES; FB; FG; FN; FS; GB; GL; GM; GR; GT; GZ; HB; HD; HP; HR; JB; JC; JD; JP; JW; KC; KF; KM; KN; LA; LB; LC; LD; LF; LJ; LX; MB; MF; MJ; MM; MN; MQ; MX; PB; PD; PG; PH; PN; PS; RB; RG; RN; RP; TB; TC; TD; TG; TH; TJ; TN; TQ; TR; TT; TV; TW; UA; UH; UP; US; UT; UV; UX; UZ; VB; VF; VG; VH; VM; VS; VX; WD; WG; WH; WN; WS; WT; WZ; YA; YC; YF; YG; YH; YJ; YK; YL; YM; YS; YT; YV; YW; YX; YY"; var fromlist = strBICCodes.split('; '); var tolist = strBICNames.split('; '); for (var i = 0; i < fromlist.length; i++ ) { if (0 < codelist.length < 3) { if (fromlist[i] == codelist) { return tolist[i]; } } } return codelist // end funtcion }