	// alter the list of classifications to choose from based upon the other classifications chosen
	function update_classification_fields (formObject, marketSegmentFieldname, classificationFieldname, subClassificationFieldname, specialisationFieldname, skillsFieldname, functionzFieldName, areaFieldName, addNullEntry) {

// classifications
var c = new Array ();
c[265] = ".NET";
c[248] = "ABAP";
c[439] = "Acceptance";
c[490] = "Account Management";
c[578] = "Account Management";
c[2] = "Accountant";
c[1] = "Accounting";
c[12] = "Accounts Clerk/Admin";
c[13] = "Accounts Payable";
c[14] = "Accounts Receivable";
c[318] = "Active Directory";
c[249] = "ActiveX";
c[24] = "Actors/Dancers/Singers/Musicians";
c[39] = "Actuaries";
c[109] = "Admin./Student Services";
c[507] = "Administration";
c[555] = "Administration";
c[228] = "Administration";
c[225] = "Administration";
c[156] = "Administration/Admissions";
c[23] = "Advert./Media/Entertain.";
c[123] = "Aeronautical/Aerospace";
c[175] = "Aged Care";
c[157] = "Aged/Disabled Care";
c[25] = "Agency: Account Mgmt.";
c[26] = "Agency: Creative Services";
c[250] = "Agile";
c[386] = "Agile";
c[543] = "Agriculture";
c[600] = "Air Con./Refrigeration";
c[145] = "Air Force";
c[202] = "Airlines";
c[319] = "AIX";
c[158] = "Allied Health";
c[167] = "Ambulance/Paramedic";
c[88] = "Analyst";
c[571] = "Analyst";
c[15] = "Analyst";
c[552] = "Analyst";
c[40] = "Analyst";
c[247] = "Analyst/Programmer";
c[416] = "Anti-Spam";
c[417] = "Anti-Virus Software";
c[251] = "Apache";
c[440] = "Application";
c[252] = "Application Development";
c[320] = "Application Servers";
c[387] = "Applications";
c[306] = "Architect";
c[72] = "Architecture";
c[146] = "Army";
c[321] = "AS/400";
c[253] = "ASP";
c[515] = "Assembly Line Worker";
c[237] = "Assessor";
c[176] = "Assistant-In-Nursing";
c[572] = "Assistant/Co-ordinator";
c[3] = "Assistant/Graduate";
c[65] = "Associations/Non-Profits";
c[4] = "Audit/Bus. Services";
c[441] = "Automated";
c[124] = "Automotive";
c[622] = "Automotive";
c[601] = "Automotive Trades";
c[623] = "Aviation/Airline";
c[602] = "Baker/Butcher/Grocer";
c[38] = "Banking & Fin. Services";
c[41] = "Banking/Branch Staff";
c[203] = "Bar/Beverage Staff";
c[254] = "BEA WebLogic";
c[322] = "BEA WebLogic";
c[603] = "Beauty Therapy";
c[604] = "Boilermaking/Welding";
c[16] = "Bookkeeping";
c[573] = "Brand/Product Management";
c[605] = "Bricklaying";
c[323] = "Broadband";
c[238] = "Broking";
c[125] = "Building Services";
c[307] = "Business Analyst";
c[418] = "Business Cont. Planning";
c[491] = "Business Development";
c[579] = "Business Development";
c[89] = "Business Development";
c[467] = "Business Intelligence";
c[593] = "Businesses for Sale";
c[561] = "Buying";
c[255] = "C";
c[261] = "C#";
c[259] = "C++";
c[73] = "CAD/Drafting";
c[121] = "CAD/Drafting";
c[57] = "Call Centre Operator";
c[56] = "Call Centre/Cust. Service";
c[606] = "Carpentry/Cabinet Making";
c[408] = "Change Management";
c[219] = "Change Management";
c[5] = "Chartered/CPA (General)";
c[204] = "Chef";
c[126] = "Chemical";
c[584] = "Chemist";
c[96] = "Child Care";
c[168] = "Chiropractor";
c[324] = "Cisco";
c[325] = "Cisco Certified";
c[419] = "CISSP";
c[326] = "Citrix Metaframe";
c[127] = "Civil/Structural";
c[239] = "Claims";
c[607] = "Cleaning";
c[442] = "Clear Case";
c[443] = "ClearQuest";
c[256] = "Client Server";
c[42] = "Client Services";
c[169] = "Clinical/Medical Research";
c[388] = "CMM";
c[468] = "Cold Calling";
c[257] = "ColdFusion";
c[258] = "COM";
c[594] = "Commission Only";
c[327] = "Communications";
c[469] = "Communications";
c[177] = "Community";
c[64] = "Community & Sport";
c[66] = "Community Services";
c[17] = "Company Secretary";
c[43] = "Compliance";
c[308] = "Computer Operators";
c[205] = "Concierge";
c[71] = "Construction";
c[309] = "Consultant/Funct. Consultant";
c[90] = "Consulting";
c[87] = "Consulting & Corp. Strategy";
c[328] = "Content Management";
c[226] = "Contracts Administration";
c[74] = "Contracts Administration";
c[206] = "Cook";
c[27] = "Copywriters";
c[44] = "Corp. Finance/Inv. Banking";
c[6] = "Cost";
c[624] = "Courier/Driver";
c[45] = "Credit Management";
c[178] = "Critical Care/ICU";
c[389] = "CRM";
c[470] = "CRM";
c[329] = "CRM";
c[260] = "Crystal Reports";
c[58] = "Customer Service";
c[390] = "Data";
c[227] = "Data Entry/WPO";
c[262] = "Data Warehousing";
c[310] = "Database Dev. & Admin";
c[263] = "Delphi";
c[75] = "Demolishing/Excavating";
c[170] = "Dental";
c[264] = "Deployment";
c[28] = "Design/Graphics";
c[391] = "Development";
c[159] = "Dietician";
c[420] = "Digital Certificates";
c[330] = "Digital Communications";
c[331] = "Dir. Enabled Network";
c[574] = "Direct Marketing";
c[421] = "Disaster Recovery Plan.";
c[332] = "Distributed Network";
c[333] = "DNS";
c[334] = "Domino Server";
c[530] = "Drilling";
c[392] = "EAI";
c[95] = "Early Childhood";
c[94] = "Education & Training";
c[179] = "Educator";
c[128] = "Electrical";
c[608] = "Electrician";
c[180] = "Emergency";
c[147] = "Emergency Services";
c[422] = "Encryption";
c[122] = "Engineer";
c[311] = "Engineer: Hardware";
c[312] = "Engineer: Network";
c[313] = "Engineer: Software";
c[120] = "Engineering";
c[471] = "Enterprise Software";
c[544] = "Env. & Natural Resource";
c[531] = "Environ./Health & Safety";
c[129] = "Environmental";
c[585] = "Environmental Science";
c[171] = "Environmental Services";
c[393] = "ERP";
c[472] = "ERP";
c[335] = "ERP";
c[76] = "Estimating";
c[29] = "Event Management";
c[444] = "Execution";
c[266] = "Extreme Programming (XP)";
c[516] = "Fashion";
c[130] = "Field Engineer";
c[30] = "Film/Radio/TV";
c[7] = "Financial";
c[18] = "Financial Controller";
c[46] = "Financial Planning";
c[423] = "Firewalls";
c[545] = "Fishing/Aquaculture";
c[67] = "Fitness";
c[517] = "Fitters/Machinists";
c[625] = "Fleet Management";
c[609] = "Florist";
c[77] = "Foreperson/Supervisor";
c[546] = "Forestry";
c[473] = "Frame Relay";
c[595] = "Franchise";
c[596] = "Freelance";
c[626] = "Freight Forwarding";
c[207] = "Front Office";
c[336] = "FTP";
c[445] = "Functional";
c[68] = "Fundraising";
c[47] = "Funds Management";
c[208] = "Gaming";
c[610] = "Gardening/Landscaping";
c[217] = "General HR";
c[532] = "Geoscience";
c[144] = "Government/Defence";
c[148] = "Government: Federal";
c[149] = "Government: Local";
c[150] = "Government: State";
c[337] = "GPRS";
c[611] = "Hairdressing";
c[474] = "Hardware";
c[155] = "Healthcare & Medical";
c[314] = "Help Desk/Support";
c[338] = "Hewlett Packard";
c[547] = "Horticulture";
c[201] = "Hospitality & Tourism";
c[209] = "Housekeeping";
c[216] = "HR & Recruitment";
c[267] = "HTML";
c[246] = "I.T. & T";
c[339] = "IBM";
c[268] = "IBM/DB2";
c[340] = "IIS";
c[627] = "Importer/Exporter";
c[131] = "Industrial";
c[518] = "Industrial Design";
c[218] = "Industrial Relations";
c[269] = "Informatica";
c[270] = "Informix Dynamic Server";
c[394] = "Infrastructure";
c[271] = "Ingres";
c[8] = "Insolvency";
c[78] = "Inspectors";
c[475] = "Installation";
c[341] = "Instant Messaging";
c[236] = "Insurance & Superannuation";
c[446] = "Integration";
c[447] = "Interfacing";
c[79] = "Interior Design";
c[48] = "Internal Audit";
c[342] = "Internet";
c[315] = "Internet/Multimedia Design";
c[316] = "Internet/Multimedia Dev.";
c[424] = "Intrusion Detection Sys.";
c[448] = "ISO 9000";
c[395] = "ITIL";
c[272] = "J2EE";
c[273] = "Java";
c[275] = "Java Server Pages";
c[274] = "Javascript";
c[31] = "Journalism/Writers";
c[97] = "Kindergarten";
c[210] = "Kitchen/Sandwich Hand";
c[586] = "Laboratory";
c[612] = "Labourer";
c[476] = "LAN";
c[343] = "LAN/WAN";
c[80] = "Landscape Architecture";
c[505] = "Law Clerks/Paralegals";
c[553] = "Leasing";
c[110] = "Lecturer/Senior Lecturer";
c[504] = "Legal";
c[506] = "Legal Secretaries";
c[99] = "Library Services";
c[344] = "Linux";
c[276] = "Linux";
c[562] = "Loss Prevention";
c[277] = "Lotus Notes";
c[519] = "Machine Operators";
c[554] = "Maintenance";
c[138] = "Maintenance";
c[613] = "Maintenance/Handyperson";
c[211] = "Management";
c[112] = "Management";
c[240] = "Management";
c[229] = "Management";
c[59] = "Management";
c[50] = "Management";
c[564] = "Management";
c[191] = "Management";
c[19] = "Management";
c[628] = "Management";
c[139] = "Management";
c[435] = "Management";
c[9] = "Management";
c[220] = "Management";
c[536] = "Management";
c[102] = "Management & Administration";
c[181] = "Manager/Administrator";
c[514] = "Manufacturing/Operations";
c[577] = "Market Research";
c[575] = "Marketing Communications";
c[576] = "Marketing Manager";
c[182] = "Maternal & Child Health";
c[345] = "MCP";
c[346] = "MCSE";
c[132] = "Mechanical";
c[32] = "Media Booking & Traffic";
c[183] = "Medical";
c[172] = "Medical Practitioner";
c[173] = "Medical Specialist";
c[184] = "Mental Health";
c[563] = "Merchandising";
c[449] = "Mercury Tools";
c[347] = "Messaging";
c[278] = "Middleware";
c[185] = "Midwifery";
c[529] = "Mining, Oil & Gas";
c[533] = "Mining: Eng. & Maintenance";
c[534] = "Mining: Mineral Processing";
c[535] = "Mining: Production";
c[477] = "Mobiles";
c[348] = "Mobiles";
c[49] = "Mortgage";
c[279] = "MS Access";
c[349] = "MS Exchange Server";
c[396] = "MS Project";
c[350] = "MS Windows 2000";
c[351] = "MS Windows 2003";
c[352] = "MS Windows CE";
c[353] = "MS Windows NT";
c[354] = "MS Windows XP";
c[478] = "Multimedia";
c[355] = "MVS";
c[280] = "MYSQL";
c[614] = "Nanny/Babysitting";
c[356] = "NAS/SAN";
c[160] = "Natural Therapy";
c[151] = "Navy";
c[357] = "Netware";
c[479] = "Network";
c[358] = "Network";
c[597] = "Network Marketing";
c[425] = "Network Security";
c[397] = "Networking";
c[317] = "Networks & Systems";
c[281] = "NUnit/JUnit";
c[174] = "Nursing/Midwives";
c[282] = "Object Oriented";
c[231] = "Office Assistant/Junior";
c[232] = "Office Manager";
c[222] = "OH & S";
c[83] = "OH & S";
c[538] = "Oil & Gas: Eng. & Maintenance";
c[539] = "Oil & Gas: Exploration";
c[540] = "Oil & Gas: Maintenance";
c[541] = "Oil & Gas: Production";
c[359] = "Open Source";
c[630] = "Operations";
c[161] = "Optical";
c[360] = "Optical";
c[398] = "Oracle";
c[283] = "Oracle";
c[361] = "OS390";
c[162] = "OT/Rehab";
c[140] = "Other";
c[556] = "Other";
c[212] = "Other";
c[117] = "Other";
c[221] = "Other";
c[587] = "Other";
c[565] = "Other";
c[113] = "Other";
c[580] = "Other";
c[431] = "Other";
c[98] = "Other";
c[292] = "Other";
c[100] = "Other";
c[436] = "Other";
c[106] = "Other";
c[409] = "Other";
c[230] = "Other";
c[91] = "Other";
c[456] = "Other";
c[548] = "Other";
c[192] = "Other";
c[508] = "Other";
c[33] = "Other";
c[152] = "Other";
c[20] = "Other";
c[10] = "Other";
c[370] = "Other";
c[629] = "Other";
c[166] = "Other";
c[520] = "Other";
c[241] = "Other";
c[537] = "Other";
c[69] = "Other";
c[60] = "Other";
c[81] = "Other";
c[137] = "Other";
c[51] = "Other";
c[615] = "Other";
c[492] = "Other";
c[186] = "Other: EN/Div 2";
c[187] = "Other: RN/Div 1";
c[480] = "Outsourcing";
c[233] = "PA/Executive Assistant";
c[481] = "PABX";
c[362] = "PABX";
c[521] = "Packer/Filler";
c[188] = "Paediatric";
c[617] = "Painting";
c[193] = "Pathology";
c[21] = "Payroll";
c[482] = "PC";
c[363] = "PeopleCode";
c[364] = "PeopleSoft";
c[284] = "Perl";
c[194] = "Pharmaceuticals";
c[195] = "Pharmacy";
c[34] = "Photography";
c[285] = "PHP";
c[163] = "Physiotherapy";
c[426] = "PKI";
c[84] = "Planning";
c[522] = "Plant Management";
c[618] = "Plumbing";
c[399] = "PMBOK";
c[400] = "PMI/PMP";
c[483] = "Point of Sale Systems";
c[153] = "Police/Prison Workers";
c[93] = "Policy & Planning";
c[154] = "Policy Analyst/Advisor";
c[484] = "Post Sales";
c[286] = "PowerBuilder";
c[485] = "Pre-Sales";
c[542] = "Primary Industry";
c[103] = "Primary Teacher";
c[401] = "Prince";
c[104] = "Principal/Deputy";
c[619] = "Printing";
c[133] = "Process";
c[523] = "Process Workers";
c[22] = "Procurement & Inventory";
c[566] = "Product Dev./Planning";
c[437] = "Product Management";
c[111] = "Professor/Dean/Chair";
c[287] = "Progress";
c[134] = "Project";
c[82] = "Project Management";
c[385] = "Project Management";
c[141] = "Project Manager";
c[402] = "Project Office";
c[35] = "Promotions";
c[557] = "Property Management";
c[486] = "Prospecting";
c[450] = "Prototyping";
c[196] = "Psychology/Counselling";
c[36] = "Public Relations";
c[37] = "Publishing";
c[524] = "Purchasing";
c[588] = "QA";
c[410] = "QA";
c[438] = "QA/Testers";
c[525] = "Quality Assurance";
c[427] = "RACF";
c[197] = "Radiology/Sonography";
c[451] = "Rational Tools";
c[288] = "RDBMS";
c[551] = "Real Estate & Property";
c[234] = "Reception";
c[189] = "Recovery/Theatre";
c[223] = "Recruitment Consultant";
c[452] = "Regression";
c[365] = "Remote Access Network";
c[453] = "Replication";
c[403] = "Reporting";
c[589] = "Research";
c[114] = "Research";
c[560] = "Retail & Consumer Prods.";
c[567] = "Retail: Assistant Manager";
c[568] = "Retail: Sales Assistant";
c[428] = "RFID";
c[366] = "RFID";
c[487] = "RFP";
c[404] = "Risk";
c[242] = "Risk Consulting";
c[52] = "Risk Management";
c[367] = "Routers";
c[142] = "Safety Coordinator/Officer";
c[198] = "Safety Inspector";
c[558] = "Sales";
c[570] = "Sales & Marketing";
c[199] = "Sales Execs/Reps";
c[581] = "Sales Manager";
c[582] = "Sales Rep./Consultant";
c[466] = "Sales: Pre & Post";
c[289] = "SAP";
c[405] = "SAP";
c[290] = "SAS";
c[101] = "Schools";
c[583] = "Science & Technology";
c[590] = "Scientist";
c[291] = "Scripting";
c[454] = "Scripts";
c[406] = "SDLC";
c[105] = "Secondary Teacher";
c[235] = "Secretarial";
c[457] = "Security";
c[616] = "Security";
c[415] = "Security";
c[411] = "Security";
c[493] = "Security";
c[429] = "Security Clearance";
c[592] = "Self-Employment";
c[368] = "Server";
c[549] = "Services/Consultancy";
c[53] = "Settlements Officers";
c[369] = "SharePoint Portal Server";
c[455] = "Simulator";
c[85] = "Site Management";
c[407] = "Six Sigma";
c[430] = "Smart Card";
c[164] = "Social Work";
c[488] = "Software Lic. Agreements";
c[509] = "Solicitor: In House";
c[510] = "Solicitor: Partners/Snr Assoc.";
c[511] = "Solicitor: Private Practice";
c[512] = "Solicitor: Public Practice";
c[489] = "Solution Selling";
c[165] = "Speech Therapy";
c[798] = "spnUnspecified";
c[784] = "spnUnspecified";
c[795] = "spnUnspecified";
c[799] = "spnUnspecified";
c[800] = "spnUnspecified";
c[801] = "spnUnspecified";
c[802] = "spnUnspecified";
c[803] = "spnUnspecified";
c[797] = "spnUnspecified";
c[785] = "spnUnspecified";
c[788] = "spnUnspecified";
c[787] = "spnUnspecified";
c[789] = "spnUnspecified";
c[790] = "spnUnspecified";
c[791] = "spnUnspecified";
c[786] = "spnUnspecified";
c[793] = "spnUnspecified";
c[794] = "spnUnspecified";
c[796] = "spnUnspecified";
c[792] = "spnUnspecified";
c[804] = "spnUnspecified";
c[818] = "spnUnspecified";
c[819] = "spnUnspecified";
c[820] = "spnUnspecified";
c[821] = "spnUnspecified";
c[822] = "spnUnspecified";
c[823] = "spnUnspecified";
c[824] = "spnUnspecified";
c[825] = "spnUnspecified";
c[826] = "spnUnspecified";
c[827] = "spnUnspecified";
c[828] = "spnUnspecified";
c[817] = "spnUnspecified";
c[816] = "spnUnspecified";
c[805] = "spnUnspecified";
c[806] = "spnUnspecified";
c[807] = "spnUnspecified";
c[808] = "spnUnspecified";
c[809] = "spnUnspecified";
c[810] = "spnUnspecified";
c[811] = "spnUnspecified";
c[812] = "spnUnspecified";
c[813] = "spnUnspecified";
c[814] = "spnUnspecified";
c[815] = "spnUnspecified";
c[829] = "spnUnspecified";
c[734] = "spnUnspecified";
c[748] = "spnUnspecified";
c[749] = "spnUnspecified";
c[750] = "spnUnspecified";
c[751] = "spnUnspecified";
c[752] = "spnUnspecified";
c[753] = "spnUnspecified";
c[754] = "spnUnspecified";
c[755] = "spnUnspecified";
c[756] = "spnUnspecified";
c[757] = "spnUnspecified";
c[747] = "spnUnspecified";
c[746] = "spnUnspecified";
c[745] = "spnUnspecified";
c[735] = "spnUnspecified";
c[736] = "spnUnspecified";
c[737] = "spnUnspecified";
c[738] = "spnUnspecified";
c[739] = "spnUnspecified";
c[740] = "spnUnspecified";
c[741] = "spnUnspecified";
c[742] = "spnUnspecified";
c[743] = "spnUnspecified";
c[744] = "spnUnspecified";
c[758] = "spnUnspecified";
c[759] = "spnUnspecified";
c[773] = "spnUnspecified";
c[774] = "spnUnspecified";
c[775] = "spnUnspecified";
c[776] = "spnUnspecified";
c[777] = "spnUnspecified";
c[778] = "spnUnspecified";
c[779] = "spnUnspecified";
c[780] = "spnUnspecified";
c[781] = "spnUnspecified";
c[782] = "spnUnspecified";
c[772] = "spnUnspecified";
c[771] = "spnUnspecified";
c[770] = "spnUnspecified";
c[760] = "spnUnspecified";
c[761] = "spnUnspecified";
c[762] = "spnUnspecified";
c[763] = "spnUnspecified";
c[764] = "spnUnspecified";
c[765] = "spnUnspecified";
c[766] = "spnUnspecified";
c[767] = "spnUnspecified";
c[768] = "spnUnspecified";
c[769] = "spnUnspecified";
c[783] = "spnUnspecified";
c[898] = "spnUnspecified";
c[852] = "spnUnspecified";
c[887] = "spnUnspecified";
c[886] = "spnUnspecified";
c[885] = "spnUnspecified";
c[853] = "spnUnspecified";
c[884] = "spnUnspecified";
c[883] = "spnUnspecified";
c[882] = "spnUnspecified";
c[881] = "spnUnspecified";
c[854] = "spnUnspecified";
c[888] = "spnUnspecified";
c[851] = "spnUnspecified";
c[897] = "spnUnspecified";
c[896] = "spnUnspecified";
c[895] = "spnUnspecified";
c[850] = "spnUnspecified";
c[894] = "spnUnspecified";
c[893] = "spnUnspecified";
c[892] = "spnUnspecified";
c[891] = "spnUnspecified";
c[890] = "spnUnspecified";
c[889] = "spnUnspecified";
c[880] = "spnUnspecified";
c[879] = "spnUnspecified";
c[872] = "spnUnspecified";
c[871] = "spnUnspecified";
c[869] = "spnUnspecified";
c[868] = "spnUnspecified";
c[867] = "spnUnspecified";
c[866] = "spnUnspecified";
c[861] = "spnUnspecified";
c[865] = "spnUnspecified";
c[862] = "spnUnspecified";
c[863] = "spnUnspecified";
c[873] = "spnUnspecified";
c[874] = "spnUnspecified";
c[878] = "spnUnspecified";
c[855] = "spnUnspecified";
c[877] = "spnUnspecified";
c[856] = "spnUnspecified";
c[857] = "spnUnspecified";
c[858] = "spnUnspecified";
c[876] = "spnUnspecified";
c[875] = "spnUnspecified";
c[859] = "spnUnspecified";
c[860] = "spnUnspecified";
c[864] = "spnUnspecified";
c[830] = "spnUnspecified";
c[920] = "spnUnspecified";
c[837] = "spnUnspecified";
c[838] = "spnUnspecified";
c[919] = "spnUnspecified";
c[918] = "spnUnspecified";
c[917] = "spnUnspecified";
c[916] = "spnUnspecified";
c[915] = "spnUnspecified";
c[914] = "spnUnspecified";
c[913] = "spnUnspecified";
c[921] = "spnUnspecified";
c[922] = "spnUnspecified";
c[831] = "spnUnspecified";
c[832] = "spnUnspecified";
c[833] = "spnUnspecified";
c[834] = "spnUnspecified";
c[835] = "spnUnspecified";
c[843] = "spnUnspecified";
c[925] = "spnUnspecified";
c[836] = "spnUnspecified";
c[924] = "spnUnspecified";
c[923] = "spnUnspecified";
c[912] = "spnUnspecified";
c[911] = "spnUnspecified";
c[905] = "spnUnspecified";
c[904] = "spnUnspecified";
c[847] = "spnUnspecified";
c[870] = "spnUnspecified";
c[848] = "spnUnspecified";
c[903] = "spnUnspecified";
c[902] = "spnUnspecified";
c[901] = "spnUnspecified";
c[900] = "spnUnspecified";
c[849] = "spnUnspecified";
c[906] = "spnUnspecified";
c[846] = "spnUnspecified";
c[910] = "spnUnspecified";
c[839] = "spnUnspecified";
c[840] = "spnUnspecified";
c[909] = "spnUnspecified";
c[841] = "spnUnspecified";
c[842] = "spnUnspecified";
c[908] = "spnUnspecified";
c[844] = "spnUnspecified";
c[907] = "spnUnspecified";
c[845] = "spnUnspecified";
c[899] = "spnUnspecified";
c[733] = "spnUnspecified";
c[682] = "spnUnspecified";
c[669] = "spnUnspecified";
c[668] = "spnUnspecified";
c[667] = "spnUnspecified";
c[666] = "spnUnspecified";
c[665] = "spnUnspecified";
c[664] = "spnUnspecified";
c[663] = "spnUnspecified";
c[662] = "spnUnspecified";
c[661] = "spnUnspecified";
c[660] = "spnUnspecified";
c[670] = "spnUnspecified";
c[671] = "spnUnspecified";
c[681] = "spnUnspecified";
c[680] = "spnUnspecified";
c[679] = "spnUnspecified";
c[678] = "spnUnspecified";
c[677] = "spnUnspecified";
c[676] = "spnUnspecified";
c[675] = "spnUnspecified";
c[674] = "spnUnspecified";
c[673] = "spnUnspecified";
c[672] = "spnUnspecified";
c[659] = "spnUnspecified";
c[658] = "spnUnspecified";
c[657] = "spnUnspecified";
c[644] = "spnUnspecified";
c[643] = "spnUnspecified";
c[642] = "spnUnspecified";
c[641] = "spnUnspecified";
c[640] = "spnUnspecified";
c[639] = "spnUnspecified";
c[638] = "spnUnspecified";
c[637] = "spnUnspecified";
c[636] = "spnUnspecified";
c[635] = "spnUnspecified";
c[645] = "spnUnspecified";
c[646] = "spnUnspecified";
c[656] = "spnUnspecified";
c[655] = "spnUnspecified";
c[654] = "spnUnspecified";
c[653] = "spnUnspecified";
c[652] = "spnUnspecified";
c[651] = "spnUnspecified";
c[650] = "spnUnspecified";
c[649] = "spnUnspecified";
c[648] = "spnUnspecified";
c[647] = "spnUnspecified";
c[634] = "spnUnspecified";
c[683] = "spnUnspecified";
c[732] = "spnUnspecified";
c[719] = "spnUnspecified";
c[718] = "spnUnspecified";
c[717] = "spnUnspecified";
c[716] = "spnUnspecified";
c[715] = "spnUnspecified";
c[714] = "spnUnspecified";
c[713] = "spnUnspecified";
c[712] = "spnUnspecified";
c[711] = "spnUnspecified";
c[710] = "spnUnspecified";
c[720] = "spnUnspecified";
c[721] = "spnUnspecified";
c[731] = "spnUnspecified";
c[730] = "spnUnspecified";
c[729] = "spnUnspecified";
c[728] = "spnUnspecified";
c[727] = "spnUnspecified";
c[726] = "spnUnspecified";
c[725] = "spnUnspecified";
c[724] = "spnUnspecified";
c[723] = "spnUnspecified";
c[722] = "spnUnspecified";
c[709] = "spnUnspecified";
c[708] = "spnUnspecified";
c[707] = "spnUnspecified";
c[693] = "spnUnspecified";
c[692] = "spnUnspecified";
c[691] = "spnUnspecified";
c[690] = "spnUnspecified";
c[689] = "spnUnspecified";
c[688] = "spnUnspecified";
c[687] = "spnUnspecified";
c[686] = "spnUnspecified";
c[685] = "spnUnspecified";
c[684] = "spnUnspecified";
c[694] = "spnUnspecified";
c[695] = "spnUnspecified";
c[696] = "spnUnspecified";
c[706] = "spnUnspecified";
c[705] = "spnUnspecified";
c[704] = "spnUnspecified";
c[703] = "spnUnspecified";
c[702] = "spnUnspecified";
c[701] = "spnUnspecified";
c[700] = "spnUnspecified";
c[699] = "spnUnspecified";
c[698] = "spnUnspecified";
c[697] = "spnUnspecified";
c[70] = "Sport & Recreation";
c[293] = "SQL";
c[371] = "SQL Server";
c[412] = "Stakeholder Management";
c[54] = "Stockbroking";
c[494] = "Storage";
c[569] = "Store Manager";
c[526] = "Storeperson/Warehousing";
c[458] = "Strategy";
c[432] = "Strategy";
c[92] = "Strategy";
c[459] = "Stress & Volume";
c[372] = "Sun";
c[243] = "Superannuation";
c[527] = "Supervisor";
c[143] = "Supervisor";
c[61] = "Supervisor/Team Leader";
c[631] = "Supply Chain";
c[294] = "Support";
c[190] = "Surgery";
c[86] = "Surveying";
c[373] = "Switches";
c[295] = "Sybase";
c[460] = "System";
c[433] = "System Recovery";
c[135] = "Systems";
c[296] = "Systems Development";
c[11] = "Tax";
c[374] = "TCP/IP";
c[107] = "Teacher\'s Aide";
c[118] = "Teacher/Instructor";
c[500] = "Team Leaders";
c[591] = "Technical";
c[501] = "Technical Writers";
c[620] = "Technician";
c[502] = "Telecommunications";
c[62] = "Telemarketing";
c[63] = "Telesales";
c[495] = "Tenders";
c[461] = "Test Cases";
c[462] = "Test Director";
c[463] = "Test Plans";
c[528] = "Toolmaker";
c[213] = "Tour Guides";
c[513] = "Trademark/Patent Attorney";
c[599] = "Trades & Services";
c[503] = "Trainers";
c[297] = "Training";
c[224] = "Training & Development";
c[298] = "Transact SQL";
c[632] = "Transport";
c[621] = "Transport & Logistics";
c[214] = "Travel Agents/Consultants";
c[55] = "Treasury";
c[299] = "Trouble Shooting";
c[115] = "Tutor";
c[375] = "Tuxedo";
c[464] = "UAT";
c[300] = "UML";
c[244] = "Underwriting";
c[465] = "Unit";
c[108] = "University";
c[376] = "Unix";
c[377] = "Unix Scripts";
c[559] = "Valuation";
c[301] = "VB.NET";
c[302] = "VBScript";
c[413] = "Vendor";
c[496] = "Vertical Markets";
c[200] = "Veterinarian/Animal Welfare";
c[303] = "Visual Basic";
c[116] = "Vocational Edu. & Training";
c[414] = "Voice";
c[378] = "Voice";
c[497] = "Voice Data";
c[498] = "VPN";
c[379] = "VPN";
c[434] = "Vulnerability";
c[215] = "Waiting Staff";
c[380] = "WAP";
c[633] = "Warehouse & Distribution";
c[136] = "Water & Waste";
c[304] = "Web Services/SOAP";
c[381] = "Web Services/SOAP";
c[382] = "WebSphere";
c[550] = "Winery/Viticulture";
c[383] = "Wireless";
c[499] = "Wireless";
c[384] = "WLAN";
c[598] = "Work from Home";
c[119] = "Work. Trainer/Assessor";
c[245] = "Workers Compensation";
c[305] = "XML";

// a list of links between classifications,  sub-classifications and specialisations/skills
var ln = new Array ();
ln[2] = [3,4,5,6,7,8,9,10,11];
ln[12] = [634];
ln[13] = [635];
ln[14] = [636];
ln[15] = [637];
ln[16] = [638];
ln[17] = [639];
ln[18] = [640];
ln[19] = [641];
ln[20] = [644];
ln[21] = [642];
ln[22] = [643];
ln[1] = [2,12,13,14,15,16,17,18,19,20,21,22];
ln[228] = [645];
ln[226] = [646];
ln[227] = [647];
ln[229] = [648];
ln[231] = [649];
ln[232] = [650];
ln[230] = [654];
ln[233] = [651];
ln[234] = [652];
ln[235] = [653];
ln[225] = [228,226,227,229,231,232,230,233,234,235];
ln[24] = [655];
ln[25] = [656];
ln[26] = [657];
ln[27] = [658];
ln[28] = [659];
ln[29] = [660];
ln[30] = [661];
ln[31] = [662];
ln[32] = [663];
ln[33] = [668];
ln[34] = [664];
ln[35] = [665];
ln[36] = [666];
ln[37] = [667];
ln[23] = [24,25,26,27,28,29,30,31,32,33,34,35,36,37];
ln[39] = [669];
ln[40] = [670];
ln[41] = [671];
ln[42] = [672];
ln[43] = [673];
ln[44] = [674];
ln[45] = [675];
ln[46] = [676];
ln[47] = [677];
ln[48] = [678];
ln[50] = [679];
ln[49] = [680];
ln[51] = [685];
ln[52] = [681];
ln[53] = [682];
ln[54] = [683];
ln[55] = [684];
ln[38] = [39,40,41,42,43,44,45,46,47,48,50,49,51,52,53,54,55];
ln[57] = [686];
ln[58] = [687];
ln[59] = [688];
ln[60] = [692];
ln[61] = [689];
ln[62] = [690];
ln[63] = [691];
ln[56] = [57,58,59,60,61,62,63];
ln[65] = [693];
ln[66] = [694];
ln[67] = [695];
ln[68] = [696];
ln[69] = [698];
ln[70] = [697];
ln[64] = [65,66,67,68,69,70];
ln[72] = [699];
ln[73] = [700];
ln[74] = [701];
ln[75] = [702];
ln[76] = [703];
ln[77] = [704];
ln[78] = [705];
ln[79] = [706];
ln[80] = [707];
ln[83] = [708];
ln[81] = [713];
ln[84] = [709];
ln[82] = [710];
ln[85] = [711];
ln[86] = [712];
ln[71] = [72,73,74,75,76,77,78,79,80,83,81,84,82,85,86];
ln[88] = [714];
ln[89] = [715];
ln[90] = [716];
ln[91] = [719];
ln[93] = [717];
ln[92] = [718];
ln[87] = [88,89,90,91,93,92];
ln[95] = [96,97,98];
ln[99] = [720];
ln[100] = [721];
ln[101] = [102,106,103,104,105,107];
ln[108] = [109,110,112,113,111,114,115];
ln[116] = [117,118,119];
ln[94] = [95,99,100,101,108,116];
ln[121] = [722];
ln[122] = [123,124,125,126,127,128,129,130,131,132,137,133,134,135,136];
ln[138] = [723];
ln[139] = [724];
ln[140] = [728];
ln[141] = [725];
ln[142] = [726];
ln[143] = [727];
ln[120] = [121,122,138,139,140,141,142,143];
ln[145] = [729];
ln[146] = [730];
ln[147] = [731];
ln[148] = [732];
ln[149] = [733];
ln[150] = [734];
ln[151] = [735];
ln[152] = [738];
ln[153] = [736];
ln[154] = [737];
ln[144] = [145,146,147,148,149,150,151,152,153,154];
ln[156] = [739];
ln[157] = [740];
ln[158] = [159,160,161,162,166,163,164,165];
ln[167] = [741];
ln[168] = [742];
ln[169] = [743];
ln[170] = [744];
ln[171] = [745];
ln[191] = [746];
ln[172] = [747];
ln[173] = [748];
ln[174] = [175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190];
ln[192] = [757];
ln[193] = [749];
ln[194] = [750];
ln[195] = [751];
ln[196] = [752];
ln[197] = [753];
ln[198] = [754];
ln[199] = [755];
ln[200] = [756];
ln[155] = [156,157,158,167,168,169,170,171,191,172,173,174,192,193,194,195,196,197,198,199,200];
ln[202] = [758];
ln[203] = [759];
ln[204] = [760];
ln[205] = [761];
ln[206] = [762];
ln[207] = [763];
ln[208] = [764];
ln[209] = [765];
ln[210] = [766];
ln[211] = [767];
ln[212] = [771];
ln[213] = [768];
ln[214] = [769];
ln[215] = [770];
ln[201] = [202,203,204,205,206,207,208,209,210,211,212,213,214,215];
ln[219] = [772];
ln[217] = [773];
ln[218] = [774];
ln[220] = [775];
ln[222] = [776];
ln[221] = [779];
ln[223] = [777];
ln[224] = [778];
ln[216] = [219,217,218,220,222,221,223,224];
ln[247] = [265,248,249,250,251,252,253,254,255,261,259,256,257,258,260,262,263,264,266,267,268,269,270,271,272,273,275,274,276,277,278,279,280,281,282,283,292,284,285,286,287,288,289,290,291,293,294,295,296,297,298,299,300,301,302,303,304,305];
ln[306] = [789];
ln[307] = [790];
ln[308] = [791];
ln[309] = [792];
ln[310] = [793];
ln[311] = [794];
ln[312] = [795];
ln[313] = [796];
ln[314] = [797];
ln[315] = [798];
ln[316] = [799];
ln[435] = [800];
ln[317] = [318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,370,362,363,364,365,366,367,368,369,371,372,373,374,375,376,377,378,379,380,381,382,383,384];
ln[436] = [806];
ln[437] = [801];
ln[385] = [386,387,408,388,389,390,391,392,393,394,395,396,397,398,409,399,400,401,402,410,403,404,405,406,411,407,412,413,414];
ln[438] = [439,440,441,442,443,444,445,446,447,448,449,456,450,451,452,453,454,457,455,458,459,460,461,462,463,464,465];
ln[466] = [490,491,467,468,469,470,471,472,473,474,475,476,477,478,479,492,480,481,482,483,484,485,486,487,493,488,489,494,495,496,497,498,499];
ln[415] = [416,417,418,419,420,421,422,423,424,425,431,426,427,428,429,430,432,433,434];
ln[500] = [802];
ln[501] = [803];
ln[502] = [804];
ln[503] = [805];
ln[246] = [247,306,307,308,309,310,311,312,313,314,315,316,435,317,436,437,385,438,466,415,500,501,502,503];
ln[237] = [780];
ln[238] = [781];
ln[239] = [782];
ln[240] = [783];
ln[241] = [788];
ln[242] = [784];
ln[243] = [785];
ln[244] = [786];
ln[245] = [787];
ln[236] = [237,238,239,240,241,242,243,244,245];
ln[507] = [807];
ln[505] = [808];
ln[506] = [809];
ln[508] = [815];
ln[509] = [811];
ln[510] = [810];
ln[511] = [812];
ln[512] = [813];
ln[513] = [814];
ln[504] = [507,505,506,508,509,510,511,512,513];
ln[515] = [816];
ln[516] = [817];
ln[517] = [818];
ln[518] = [819];
ln[519] = [820];
ln[520] = [829];
ln[521] = [821];
ln[522] = [822];
ln[523] = [823];
ln[524] = [824];
ln[525] = [825];
ln[526] = [826];
ln[527] = [827];
ln[528] = [828];
ln[514] = [515,516,517,518,519,520,521,522,523,524,525,526,527,528];
ln[530] = [830];
ln[531] = [831];
ln[532] = [832];
ln[536] = [833];
ln[533] = [834];
ln[534] = [835];
ln[535] = [836];
ln[538] = [837];
ln[539] = [838];
ln[540] = [839];
ln[541] = [840];
ln[537] = [841];
ln[529] = [530,531,532,536,533,534,535,538,539,540,541,537];
ln[543] = [842];
ln[544] = [843];
ln[545] = [844];
ln[546] = [845];
ln[547] = [846];
ln[548] = [849];
ln[549] = [847];
ln[550] = [848];
ln[542] = [543,544,545,546,547,548,549,550];
ln[555] = [850];
ln[552] = [851];
ln[553] = [852];
ln[554] = [853];
ln[556] = [857];
ln[557] = [854];
ln[558] = [855];
ln[559] = [856];
ln[551] = [555,552,553,554,556,557,558,559];
ln[561] = [858];
ln[562] = [859];
ln[564] = [860];
ln[563] = [861];
ln[565] = [866];
ln[566] = [862];
ln[567] = [863];
ln[568] = [864];
ln[569] = [865];
ln[560] = [561,562,564,563,565,566,567,568,569];
ln[578] = [867];
ln[571] = [868];
ln[572] = [869];
ln[573] = [870];
ln[579] = [871];
ln[574] = [872];
ln[577] = [873];
ln[575] = [874];
ln[576] = [875];
ln[580] = [878];
ln[581] = [876];
ln[582] = [877];
ln[570] = [578,571,572,573,579,574,577,575,576,580,581,582];
ln[584] = [879];
ln[585] = [880];
ln[586] = [881];
ln[587] = [886];
ln[588] = [882];
ln[589] = [883];
ln[590] = [884];
ln[591] = [885];
ln[583] = [584,585,586,587,588,589,590,591];
ln[593] = [887];
ln[594] = [888];
ln[595] = [889];
ln[596] = [890];
ln[597] = [891];
ln[598] = [892];
ln[592] = [593,594,595,596,597,598];
ln[600] = [893];
ln[601] = [894];
ln[602] = [895];
ln[603] = [896];
ln[604] = [897];
ln[605] = [898];
ln[606] = [899];
ln[607] = [900];
ln[608] = [901];
ln[609] = [902];
ln[610] = [903];
ln[611] = [904];
ln[612] = [905];
ln[613] = [906];
ln[614] = [907];
ln[615] = [913];
ln[617] = [908];
ln[618] = [909];
ln[619] = [910];
ln[616] = [911];
ln[620] = [912];
ln[599] = [600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,617,618,619,616,620];
ln[622] = [914];
ln[623] = [915];
ln[624] = [916];
ln[625] = [917];
ln[626] = [918];
ln[627] = [919];
ln[628] = [920];
ln[630] = [921];
ln[629] = [925];
ln[631] = [922];
ln[632] = [923];
ln[633] = [924];
ln[621] = [622,623,624,625,626,627,628,630,629,631,632,633];

// the list of classifications that are allowed based upon the market segment field name
var ln2 = new Array ();
ln2[5] = [1,225,23,38,56,64,71,87,94,120,144,155,201,216,246,236,504,514,529,542,551,560,570,583,592,599,621];
ln2[7] = [1,225,23,38,56,64,71,87,94,120,144,155,201,216,246,236,504,514,529,542,551,560,570,583,592,599,621];
ln2[9] = [1,225,23,38,56,64,71,87,94,120,144,155,201,216,246,236,504,514,529,542,551,560,570,583,592,599,621];
ln2[1] = [1,225,23,38,56,64,71,87,94,120,144,155,201,216,236,504,514,529,542,551,560,570,583,592,599,621];
ln2[8] = [155];
ln2[11] = [155];
ln2[12] = [155];
ln2[3] = [246];
ln2[6] = [246];
ln2[10] = [246];
ln2[13] = [246];
ln2[14] = [246];

// market segments
var marketSegments = new Array ();
marketSegments[1] = "Main";
marketSegments[2] = "Exec";
marketSegments[3] = "IT";
marketSegments[6] = "IT2";
marketSegments[7] = "Main Exec";
marketSegments[8] = "Main Healthcare";
marketSegments[9] = "Main Campus";
marketSegments[10] = "IT Campus";
marketSegments[11] = "Main Healthcare Exec";
marketSegments[12] = "Main Healthcare Campus";
marketSegments[13] = "IT Exec";
marketSegments[14] = "IT IT2";

// market segment - classification links
var thirdClassificationType = new Array ();
thirdClassificationType[1] = "specialisation";
thirdClassificationType[2] = "specialisation";
thirdClassificationType[3] = "skill";
thirdClassificationType[6] = "skill";
thirdClassificationType[7] = "specialisation";
thirdClassificationType[8] = "specialisation";
thirdClassificationType[9] = "specialisation";
thirdClassificationType[10] = "skill";
thirdClassificationType[11] = "specialisation";
thirdClassificationType[12] = "specialisation";
thirdClassificationType[13] = "skill";
thirdClassificationType[14] = "skill";

		// find the marketSegment object
		eval ("marketSegmentObject = formObject." + marketSegmentFieldname + ";");
		// find the classification object
		eval ("classificationObject = formObject." + classificationFieldname + ";");
		// find the sub-classification object
		eval ("subClassificationObject = formObject." + subClassificationFieldname + ";");
		// find the specialisation object
		eval ("specialisationObject = formObject." + specialisationFieldname + ";");
		// find the skills object
		eval ("skillsObject = formObject." + skillsFieldname + ";");
		// find the function object
		eval ("functionObject = formObject." + functionzFieldName + ";");
		// find the area object
		eval ("areaObject = formObject." + areaFieldName + ";");

		// find out the currently selected marketSegmentId
		marketSegmentId = marketSegmentObject.options[marketSegmentObject.selectedIndex].value;
		// find out the currently selected classificationId
		classificationId = classificationObject.options[classificationObject.selectedIndex].value;
		// find out the currently selected subClassificationId
		subClassificationId = subClassificationObject.options[subClassificationObject.selectedIndex].value;
		// find out the currently selected specialisationId
		specialisationId = specialisationObject.options[specialisationObject.selectedIndex].value;

		// check to see if the classificationId is allowed based on the marketSegmentId
		classificationValid = false;
		if (typeof(ln2[marketSegmentId]) != 'undefined') {
			for (count = 0; count < ln2[marketSegmentId].length; count++) {
				if (ln2[marketSegmentId][count] == classificationId)
					classificationValid = true;
			}
		}
		// if the category doesn't belong to this market segment then
		if (!classificationValid)
			classificationId = "";

		// check to see if the subClassificationId is allowed based on the classifiationId
		subClassificationValid = false;
		if (typeof(ln[classificationId]) != 'undefined') {
			for (count = 0; count < ln[classificationId].length; count++) {
				if (ln[classificationId][count] == subClassificationId)
					subClassificationValid = true;
			}
		}
		// if the sub-category doesn't belong to this category then
		if (!subClassificationValid)
			subClassificationId = "";

		// check to see if the specialisation is allowed based on the subClassificationId
		specialisationValid = false;
		if (typeof(ln[subClassificationId]) != 'undefined') {
			for (count = 0; count < ln[subClassificationId].length; count++) {
				if (ln[subClassificationId][count] == specialisationId)
					specialisationValid = true;
			}
		}
		// if the specialisation doesn't belong to this subclassification
		if (!specialisationValid)
			specialisationId = "";

		// empty the list of classifications
		classificationObject.length = 0;
		// add the "select -" entry to the list
		if (addNullEntry) {
			var value = "Select -";
			var index = "";
			var newOption = new Option (value, index, false, false);
			var currentLength = classificationObject.length;
			classificationObject.options[currentLength] = newOption;
		}
		classificationObject.selectedIndex = 0;
		// re-populate the classification list if necessary
		if (typeof(ln2[marketSegmentId]) != 'undefined') {
			for (count = 0; count < ln2[marketSegmentId].length; count++) {
				var value = c[ln2[marketSegmentId][count]];
				var index = ln2[marketSegmentId][count];
				var newOption = new Option (value, index, false, false);
				var currentLength = classificationObject.length;
				classificationObject.options[currentLength] = newOption;
				if (classificationId == index) {
					classificationObject.selectedIndex = count;
					if (addNullEntry)
						classificationObject.selectedIndex += 1;
				}
			}
		}
		if (classificationObject.length == 1)
			disable_input (classificationFieldname);
		else
			enable_input (classificationFieldname);

		// empty the list of sub-classifications
		subClassificationObject.length = 0;
		// add the "select -" entry to the list
		if (addNullEntry) {
			var value = "Select -";
			var index = "";
			var newOption = new Option (value, index, false, false);
			var currentLength = subClassificationObject.length;
			subClassificationObject.options[currentLength] = newOption;
		}
		subClassificationObject.selectedIndex = 0;
		// re-populate the sub-classification list if necessary
		if (typeof(ln[classificationId]) != 'undefined') {
			for (count = 0; count < ln[classificationId].length; count++) {
				var value = c[ln[classificationId][count]];
				var index = ln[classificationId][count];
				var newOption = new Option (value, index, false, false);
				var currentLength = subClassificationObject.length;
				subClassificationObject.options[currentLength] = newOption;
				if (subClassificationId == index) {
					subClassificationObject.selectedIndex = count;
					if (addNullEntry)
						subClassificationObject.selectedIndex += 1;
				}
			}
		}
		if (subClassificationObject.length == 1)
			disable_input (subClassificationFieldname);
		else
			enable_input (subClassificationFieldname);

		// empty the list of specialisations
		specialisationObject.length = 0;
		// add the "select -" entry to the list
		if (addNullEntry) {
			var value = "Select -";
			var index = "";
			var newOption = new Option (value, index, false, false);
			var currentLength = specialisationObject.length;
			specialisationObject.options[currentLength] = newOption;
		}
		specialisationObject.selectedIndex = 0;
		// re-populate the specialisation list if necessary
		if (typeof(ln[subClassificationId]) != 'undefined') {
			for (count = 0; count < ln[subClassificationId].length; count++) {
				var value = c[ln[subClassificationId][count]];
				var index = ln[subClassificationId][count];
				var newOption = new Option (value, index, false, false);
				var currentLength = specialisationObject.length;
				specialisationObject.options[currentLength] = newOption;
				if (specialisationId == index) {
					specialisationObject.selectedIndex = count;
					if (addNullEntry)
						specialisationObject.selectedIndex += 1;
				}
			}
		}
		if (specialisationObject.length == 1)
			disable_input (specialisationFieldname);
		else
			enable_input (specialisationFieldname);

		// empty the list of skills
		skillsObject.length = 0;
		skillsObject.selectedIndex = 0;
		// re-populate the skills list if necessary
		if (typeof(ln[subClassificationId]) != 'undefined') {
			for (count = 0; count < ln[subClassificationId].length; count++) {
				var value = c[ln[subClassificationId][count]];
				var index = ln[subClassificationId][count];
				var newOption = new Option (value, index, false, false);
				var currentLength = skillsObject.length;
				skillsObject.options[currentLength] = newOption;
			}
		}
		if (skillsObject.length == 0)
			disable_input (skillsFieldname);
		else
			enable_input (skillsFieldname);

		if ((thirdClassificationType[marketSegmentId] == "skill") && (skillsObject.length > 0)) {	// IT market segments
			hide_div ("seekSpecialisationDiv");
			display_div ("seekSkillsDiv");
		}
		else {
			hide_div ("seekSkillsDiv");
			display_div ("seekSpecialisationDiv");
		}

		if ((marketSegmentId == "2") || (marketSegmentId == "7") || (marketSegmentId == "11") || (marketSegmentId == "13"))
			enable_input ("seekFunctionId");
		else {
			disable_input ("seekFunctionId");
			functionObject.selectedIndex = 0;
		}

		if ((marketSegmentId == "1") || (marketSegmentId == "3") || (marketSegmentId == "6") || (marketSegmentId == "8") || (marketSegmentId == "9") || (marketSegmentId == "10") || (marketSegmentId == "11") || (marketSegmentId == "12") || (marketSegmentId == "13") || (marketSegmentId == "14"))
			enable_input ("seekAreaId");
		else {
			disable_input ("seekAreaId");
			areaObject.selectedIndex = 0;
		}
	}




	// alter the list of areas to choose from based upon the location chosen
	function update_location_fields (formObject, marketSegmentFieldname, locationFieldname, areaFieldname, addNullEntry) {

// locations
var locations = new Array ();
locations[1] = "Sydney";
locations[2] = "NSW - Other";
locations[3] = "Melbourne";
locations[4] = "VIC - Other";
locations[5] = "Brisbane";
locations[6] = "Gold Coast";
locations[7] = "QLD - Other";
locations[8] = "Perth";
locations[9] = "WA - Other";
locations[10] = "Adelaide";
locations[11] = "SA - Other";
locations[12] = "Hobart";
locations[13] = "TAS - Other";
locations[14] = "ACT";
locations[15] = "Darwin";
locations[16] = "Northern Territory";
locations[17] = "Auckland";
locations[18] = "Wellington";
locations[19] = "Nth Island - Other";
locations[20] = "Christchurch";
locations[21] = "Sth Island - Other";
locations[22] = "UK - London";
locations[23] = "UK - Other";
locations[24] = "Ireland";
locations[25] = "Overseas - Other";
locations[26] = "Albany";
locations[27] = "Albury - Wodonga";
locations[28] = "Alice Springs";
locations[29] = "Auckland - Inner";
locations[30] = "Auckland - North";
locations[31] = "Auckland - South";
locations[32] = "Auckland - West";
locations[33] = "Ballarat";
locations[34] = "Bathurst";
locations[35] = "Bendigo";
locations[36] = "Blenheim";
locations[37] = "Bunbury";
locations[38] = "Bundaberg";
locations[39] = "Burnie";
locations[40] = "Cairns";
locations[41] = "Coffs Harbour";
locations[42] = "Devonport";
locations[43] = "Dubbo";
locations[44] = "Dunedin";
locations[45] = "Geelong";
locations[46] = "Geraldton";
locations[47] = "Gisborne";
locations[48] = "Gladstone";
locations[49] = "Gosford - Central Coast";
locations[50] = "Hamilton";
locations[51] = "Invercargill";
locations[52] = "Kalgoorlie - Boulder";
locations[53] = "Launceston";
locations[54] = "Lismore";
locations[55] = "Mackay";
locations[56] = "Maitland";
locations[57] = "Mandurah";
locations[58] = "Maryborough - Hervey Bay";
locations[59] = "Melbourne - East";
locations[60] = "Melbourne - Inner";
locations[61] = "Melbourne - North";
locations[62] = "Melbourne - South";
locations[63] = "Melbourne - West";
locations[64] = "Mildura";
locations[65] = "Mt Gambier";
locations[66] = "Mt Isa";
locations[67] = "Napier - Hastings";
locations[68] = "Nelson";
locations[69] = "New Plymouth";
locations[70] = "Newcastle";
locations[71] = "Orange";
locations[72] = "Palmerston";
locations[73] = "Palmerston North";
locations[74] = "Perth - Inner";
locations[75] = "Perth - North";
locations[76] = "Perth - South";
locations[77] = "Porirua - Hutt Valley";
locations[78] = "Port Macquarie";
locations[79] = "Richmond";
locations[80] = "Rockhampton";
locations[81] = "Rockingham";
locations[82] = "Rotorua";
locations[83] = "Shepparton";
locations[84] = "Sunshine Coast";
locations[85] = "Sydney - Inner";
locations[86] = "Sydney - North";
locations[87] = "Sydney - South";
locations[88] = "Sydney - West";
locations[89] = "Tamworth";
locations[90] = "Tauranga";
locations[91] = "Timaru";
locations[92] = "Toowoomba";
locations[93] = "Townsville";
locations[94] = "Wagga Wagga";
locations[95] = "Wanganui";
locations[96] = "Warrnambool";
locations[97] = "Wellington Central";
locations[98] = "Whangarei";
locations[99] = "Whyalla";
locations[100] = "Wollongong";
locations[101] = "Rest of NSW";
locations[102] = "Rest of NT";
locations[103] = "Rest of Nth Island";
locations[104] = "Rest of QLD";
locations[105] = "Rest of SA";
locations[106] = "Rest of Sth Island";
locations[107] = "Rest of TAS";
locations[108] = "Rest of VIC";
locations[109] = "Rest of WA";

// a list of links between locations
var ln = new Array ();
ln[1] = [85,86,87,88];
ln[2] = [27,34,41,43,49,54,56,70,71,78,79,89,94,100,101];
ln[3] = [59,60,61,62,63];
ln[4] = [33,35,45,64,83,96,108];
ln[7] = [38,40,48,55,58,66,80,84,92,93,104];
ln[8] = [74,75,76];
ln[9] = [26,37,46,52,57,81,109];
ln[11] = [65,99,105];
ln[13] = [39,42,53,107];
ln[16] = [28,72,102];
ln[17] = [29,30,31,32];
ln[18] = [77,97];
ln[19] = [47,50,67,69,73,82,90,95,98,103];
ln[21] = [36,44,51,68,91,106];

		// find the marketSegment object
		eval ("marketSegmentObject = formObject." + marketSegmentFieldname + ";");
		// find the location object
		eval ("locationObject = formObject." + locationFieldname + ";");
		// find the area object
		eval ("areaObject = formObject." + areaFieldname + ";");

		// find out the currently selected marketSegmentId
		marketSegmentId = marketSegmentObject.options[marketSegmentObject.selectedIndex].value;
		// find out the currently selected locationId
		locationId = locationObject.options[locationObject.selectedIndex].value;
		// find out the currently selected areaId
		areaId = areaObject.options[areaObject.selectedIndex].value;

		// check to see if the areaId is allowed based on the locationId
		areaValid = false;
		if (typeof(ln[locationId]) != 'undefined') {
			for (count = 0; count < ln[locationId].length; count++) {
				if (ln[locationId][count] == areaId)
					areaValid = true;
			}
		}
		// if the area doesn't belong to this location then
		if (!areaValid)
			areaId = "";

		// empty the list of areas
		areaObject.length = 0;
		// add the "select -" entry to the list
		if (addNullEntry) {
			var value = "Select -";
			var index = "";
			var newOption = new Option (value, index, false, false);
			var currentLength = areaObject.length;
			areaObject.options[currentLength] = newOption;
		}
		areaObject.selectedIndex = 0;
		// re-populate the area list if necessary
		if (typeof(ln[locationId]) != 'undefined') {
			for (count = 0; count < ln[locationId].length; count++) {
				var value = locations[ln[locationId][count]];
				var index = ln[locationId][count];
				var newOption = new Option (value, index, false, false);
				var currentLength = areaObject.length;
				areaObject.options[currentLength] = newOption;
				if (areaId == index) {
					areaObject.selectedIndex = count;
					if (addNullEntry)
						areaObject.selectedIndex += 1;
				}
			}
		}
		if ((marketSegmentId == "1") || (marketSegmentId == "3") || (marketSegmentId == "6") || (marketSegmentId == "8") || (marketSegmentId == "9") || (marketSegmentId == "10") || (marketSegmentId == "11") || (marketSegmentId == "12") || (marketSegmentId == "13") || (marketSegmentId == "14")) {
			if (areaObject.length == 1)
				disable_input ("seekAreaId");
			else
				enable_input ("seekAreaId");
		}
		else {
			disable_input ("seekAreaId");
			areaObject.selectedIndex = 0;
		}

	}
