﻿


// JScript File

var regiondb = new Object()
                
regiondb["1"] =[{value:"1", text:"Fresher"},
                {value:"2", text:"Trainee / Management Trainee "},
                {value:"3", text:"Media Buying - Manager / Executive"},
                {value:"4", text:"Media Planning - Manager / Executive"},
                {value:"5", text:"Market Research - Field Executive"},
                {value:"6", text:"Market Research - Field Supervisor / Field"},
                {value:"7", text:"Market Research Executive - Qualitative"},
                {value:"8", text:"Market Research Executive - Quantitative"},
                {value:"9", text:"Market Research Manager"},
                {value:"10", text:"Account Manager / Manager - Client Servicing (Advertising)"},
                {value:"11", text:"Account Manager / Manager - Client Servicing (PR)"},
                {value:"12", text:"Account Manager / Manager - Client Servicing (MR)"},
                {value:"13", text:"Group Account Manager / Account Director (Advertising)"},
                {value:"14", text:"Group Account Manager / Account Director (PR)"},
                {value:"15", text:"Group Account Manager / Account Director (MR)"},
                {value:"16", text:"Visualiser / Art Director"},
                {value:"17", text:"AV Executive"},
                {value:"18", text:"Graphic Designer / Animator"},
                {value:"19", text:"Events / Promotions Manager "},
                {value:"20", text:"Content Writer"},
                {value:"21", text:"Copywriter / Copy Group Head"},
                {value:"22", text:"Photographer"},
                {value:"23", text:"Print and Production Manager "},
                {value:"24", text:"Studio Operations Manager "},
                {value:"25", text:"Account Planning Manager "},
                {value:"26", text:"Head - Account Planning"},
                {value:"27", text:"Account Manager - Direct Marketing"},
                {value:"28", text:"Group Account Manager / Account Director - Direct Marketing"},
                {value:"29", text:"VP - Client Servicing (Direct Marketing)"},
                {value:"30", text:"Group Head - Creative"},
                {value:"31", text:"Director / Practice Head (PR)"},
                {value:"32", text:"VP - Media Buying"},
                {value:"33", text:"VP - Media Planning and Strategy"},
                {value:"34", text:"VP - Client Servicing (Advertising)"},
                {value:"35", text:"VP - Client / Servicing (MR)"},
                {value:"36", text:"VP - Creative / Creative Director"},
                {value:"37", text:"VP - Operations Manager / COO"},
                {value:"38", text:"SBU Head / Profit Center Head"},
                {value:"39", text:"CEO / MD / Country Manager "},
                {value:"40", text:"Director on Board"},
                {value:"41", text:"External Consultant"},
                {value:"42", text:"Other Advertising / PR / MR / DR"}];
regiondb["2"]=  [{value:"43", text:"Fresher"},
                {value:"44", text:"Graduate Trainee / Management Trainee"},
                {value:"45", text:"Phone Banking Officer"},
                {value:"46", text:"Relationship Manager"},
                {value:"47", text:"Cash Officer / Manager"},
                {value:"48", text:"Clearing Officer / Head"},
                {value:"49", text:"Consumer Branch Banking Operations"},
                {value:"50", text:"Consumer Banking Credit Analyst"},
                {value:"51", text:"Consumer Banking Asset Operations"},
                {value:"52", text:"Consumer Banking Branch Head"},
                {value:"53", text:"Consuemr Banking Region Head"},
                {value:"54", text:"Collections"},
                {value:"55", text:"Private Banker"},
                {value:"56", text:"Investment Banking"},
                {value:"57", text:"Credit Head - Consumer Banking"},
                {value:"58", text:"Credit Research Analyst"},
                {value:"59", text:"Product Manager - Auto / Home / Personal Loan"},
                {value:"60", text:"Product Manager - Cards"},
                {value:"61", text:"Product Manager - Mutual Funds"},
                {value:"62", text:"Corporate Banking Customer Support Manager"},
                {value:"63", text:"Trade Finance / Cash Mgmt Services - Head / Manager "},
                {value:"64", text:"Corporate Banking Credit Control Manager "},
                {value:"65", text:"Corporate Banking Credit Analyst"},
                {value:"66", text:"Corporate Banking Credit Head "},
                {value:"67", text:"Corporate Banking Branch Head "},
                {value:"68", text:"Corporate Banking Region Head "},
                {value:"69", text:"Cash Management Operations "},
                {value:"70", text:"Business Analyst"},
                {value:"71", text:"Market - Head / Manager "},
                {value:"72", text:"GM - Risks"},
                {value:"73", text:"Project Finance - Head / Manager "},
                {value:"74", text:"Treasury Marketing Fixed Income "},
                {value:"75", text:"Treasury Marketing FOREX "},
                {value:"76", text:"Money Market Dealer"},
                {value:"77", text:"FOREX Dealer"},
                {value:"78", text:"Fixed Income - Head / Manager (Treasury)"},
                {value:"79", text:"FOREX - Head / Manager (Treasury)"},
                {value:"80", text:"GM - Treasury"},
                {value:"81", text:"Compliance and Control "},
                {value:"82", text:"Audit"},
                {value:"83", text:"Consumer Banking Head "},
                {value:"84", text:"Corporate Banking Head"},
                {value:"85", text:"VP Operations / COO"},
                {value:"86", text:"SBU Head / Profit Centre Head"},
                {value:"87", text:"CEO / MD / Country Manager "},
                {value:"88", text:"Director on Board"},
                {value:"89", text:"External Consultant"},
                {value:"90", text:"Other Banking"}];
regiondb["3"] = [{value:"91", text:"Fresher"},
                {value:"92", text:"Trainee / Management Trainee"},
                {value:"93", text:"Technical Support Executive (Voice)"},
                {value:"94", text:"Customer Service Executive (Non-voice)"},
                {value:"95", text:"Customer Service Executive (voice)"},
                {value:"96", text:"Medical Transcriptionist"},
                {value:"97", text:"Transactions Processing Executive"},
                {value:"98", text:"Account Services Executive"},
                {value:"99", text:"Technical Support Representative (Non - Voice)"},
                {value:"100", text:"Data Processing Executive"},
                {value:"101", text:"Telesales Executive"},
                {value:"102", text:"Telemarketing Executive"},
                {value:"103", text:"Team Leader"},
                {value:"104", text:"Shift Supervisor"},
                {value:"105", text:"Training Manager "},
                {value:"106", text:"Manager - Migrations / Transitions"},
                {value:"107", text:"Process / Workflow Analyst"},
                {value:"108", text:"Operations Manager "},
                {value:"109", text:"Quality Assurance Executive"},
                {value:"110", text:"Quality Assurance - Manager "},
                {value:"111", text:"Manager - Service Delivery"},
                {value:"112", text:"Voice and Accent Trainer"},
                {value:"113", text:"Process Trainer"},
                {value:"114", text:"Technical Trainer"},
                {value:"115", text:"Soft Skills Trainer"},
                {value:"116", text:"Manager - Data Processing"},
                {value:"117", text:"VP/GM - Quality"},
                {value:"118", text:"VP - Operations / COO"},
                {value:"119", text:"SBU Head / Profit Center Head"},
                {value:"120", text:"CEO / MD / Country Manager "},
                {value:"121", text:"Director on Board"},
                {value:"122", text:"VP / Head - Customer Service"},
                {value:"123", text:"External Consultant"},
                {value:"124", text:"Other Customer Service or Call Center"}];
regiondb["4"] = [{value:"125", text:"Fresher"},
                {value:"126", text:"Architect"},
                {value:"127", text:"Draughtsman"},
                {value:"128", text:"Detailer"},
                {value:"129", text:"Civil Foreman"},
                {value:"130", text:"Surveyor"},
                {value:"131", text:"Quantity Surveyor"},
                {value:"132", text:"Contracting"},
                {value:"133", text:"Proposals and Estimation"},
                {value:"134", text:"Civil Engineer"},
                {value:"135", text:"Electrical Engineer"},
                {value:"136", text:"Design Engineer"},
                {value:"137", text:"Document Controller"},
                {value:"138", text:"Desalinational Engineering"},
                {value:"139", text:"Duct Engineers"},
                {value:"140", text:"HVAC Engineering"},
                {value:"141", text:"Marine Engineering"},
                {value:"142", text:"MEP - Buyers"},
                {value:"143", text:"MEP - Surveyors"},
                {value:"144", text:"Maintenance Engineers"},
                {value:"145", text:"Plumbing Engineers"},
                {value:"146", text:"Power and Telecom Engineering"},
                {value:"147", text:"Process Reporting Manager"},
                {value:"148", text:"Project Manager"},
                {value:"149", text:"Safety Officer"},
                {value:"150", text:"Site Engineer"},
                {value:"151", text:"Scaffolding Sales Professionals"},
                {value:"152", text:"Structural Designing"},
                {value:"153", text:"Water Treatment"},
                {value:"154", text:"SBU Head / Profit Center Head"},
                {value:"155", text:"Director - Constructions"},
                {value:"156", text:"Director - Architecture"},
                {value:"157", text:"Director - Projects"},
                {value:"158", text:"VP / GM - Constructions"},
                {value:"159", text:"VP / GM - Architecture"},
                {value:"160", text:"VP / GM - Projects"},
                {value:"161", text:"VP - Operations / COO"},
                {value:"162", text:"CEO / MD / Country Manager"},
                {value:"163", text:"Director on Board"},
                {value:"164", text:"External Consultant"},
                {value:"165", text:"Other Construction"}];
regiondb["5"] = [{value:"166", text:"Fresher"},
                {value:"167", text:"Graduate Trainee / Management Trainee"},
                {value:"168", text:"Transit Center (Rail) - Executive "},
                {value:"169", text:"Transit Center (Rail) - Head / Manager "},
                {value:"170", text:"Transit Center (Air) - Executive "},
                {value:"171", text:"Transit Center (Air) - Head / Manager"},
                {value:"172", text:"Transit Center (Road) - Executive"},
                {value:"173", text:"Transit Center (Road) - Head / Manager"},
                {value:"174", text:"Express Center - Executive "},
                {value:"175", text:"Express Center - Head / Manager"},
                {value:"176", text:"Country Network Coordinator"},
                {value:"177", text:"Logistics Coordinator"},
                {value:"178", text:"Logistics Head / Manager "},
                {value:"179", text:"POD Assistant"},
                {value:"180", text:"Franchisee Coordinator"},
                {value:"181", text:"Traffic Clerk"},
                {value:"182", text:"Fleet Supervisor"},
                {value:"183", text:"Transportation / Shipping Supervisor"},
                {value:"184", text:"Computer Operator / Data Entry"},
                {value:"185", text:"Store Keeper / Warehouse Assistant"},
                {value:"186", text:"Inventory Control Manager / Materials Manager "},
                {value:"187", text:"Materials - Head / GM"},
                {value:"188", text:"Distribution Head"},
                {value:"189", text:"Commercial - Manager "},
                {value:"190", text:"VP / GM - Commercial"},
                {value:"191", text:"VP Operations / COO"},
                {value:"192", text:"SBU Head / Profit Center Head"},
                {value:"193", text:"CEO / MD / Country Manager "},
                {value:"194", text:"Director on Board"},
                {value:"195", text:"External Consultant"},
                {value:"196", text:"Other Distribution / Delivery"}];
regiondb["6"] = [{value:"197", text:"Fresher"},
                {value:"198", text:"Graduate Trainee / Management Trainee"},
                {value:"199", text:"Correspondent / Reporter"},
                {value:"200", text:"Political Writer"},
                {value:"201", text:"Features Writer"},
                {value:"202", text:"Business Writer"},
                {value:"203", text:"Technical Writer"},
                {value:"204", text:"Script Writer"},
                {value:"205", text:"Political Editor"},
                {value:"206", text:"Features Editor"},
                {value:"207", text:"News Editor"},
                {value:"208", text:"Business Editor"},
                {value:"209", text:"Content Writer"},
                {value:"210", text:"Instructional Designer"},
                {value:"211", text:"Copy / Sub Editor"},
                {value:"212", text:"Translator"},
                {value:"213", text:"Principal / Senior Correspondent"},
                {value:"214", text:"Chief / Deputy Chief of Bureau"},
                {value:"215", text:"Resident Editor"},
                {value:"216", text:"Editor / Managing Editor"},
                {value:"217", text:"TV Anchor"},
                {value:"218", text:"Photographer"},
                {value:"219", text:"Cameraman"},
                {value:"220", text:"AV Executive / Editor"},
                {value:"221", text:"Graphic Designer / Animator"},
                {value:"222", text:"Printing Technologist / Manager "},
                {value:"223", text:"Freelancer"},
                {value:"224", text:"Producer / Production Manager "},
                {value:"225", text:"Art Director"},
                {value:"226", text:"Artist"},
                {value:"227", text:"Choreographer"},
                {value:"228", text:"Head - Lighting"},
                {value:"229", text:"Head - Special Effects"},
                {value:"230", text:"Lighting Technician"},
                {value:"231", text:"Musician / Music Director"},
                {value:"232", text:"Sound Mixer / Engineer "},
                {value:"233", text:"VJ / RJ / DJ"},
                {value:"234", text:"Wardrobe / Makeup / Hair Artist"},
                {value:"235", text:"Proof Reader"},
                {value:"236", text:"Stringer"},
                {value:"237", text:"Creative Director"},
                {value:"238", text:"SBU Head / Profit Center Head"},
                {value:"239", text:"CEO / MD / Country Manager "},
                {value:"240", text:"Director on Board"},
                {value:"241", text:"Other Media / Journalism"}];
regiondb["7"] = [{value:"242", text:"Trading"},
                {value:"243", text:"Documentation / Shipment Management"},
                {value:"244", text:"Liaison"},
                {value:"245", text:"International Business Dev. Manager "},
                {value:"246", text:"Merchandiser"},
                {value:"247", text:"VP - Operations / COO"},
                {value:"248", text:"SBU Head / Profit Center Head"},
                {value:"249", text:"CEO / MD / Country Manager "},
                {value:"250", text:"Director on Board"},
                {value:"251", text:"External Consultant"},
                {value:"252", text:"Other Export / Import"}];
regiondb["8"] = [{value:"253", text:"Fresher"},
                {value:"254", text:"Graduate Trainee / Management Trainee"},
                {value:"255", text:"Book Keeper / Accounts Assistant"},
                {value:"256", text:"Accountant"},
                {value:"257", text:"Cost Accountant / ICWA"},
                {value:"258", text:"Accounts Head / GM - Accounts"},
                {value:"259", text:"Finance Assistant"},
                {value:"260", text:"Manager - Financial Planning / Budgeting"},
                {value:"261", text:"Treasury Manager"},
                {value:"262", text:"Taxation - Manager"},
                {value:"263", text:"Finance Manager"},
                {value:"264", text:"Commercial Executive / Manager"},
                {value:"265", text:"Chartered Accountant (CPA)"},
                {value:"266", text:"Company Secretary"},
                {value:"267", text:"Business / Strategic Planning - Manager"},
                {value:"268", text:"Credit Control and Collections"},
                {value:"269", text:"Internal Auditor"},
                {value:"270", text:"External Auditor"},
                {value:"271", text:"Foreign Exchange Officer"},
                {value:"272", text:"Shares Services Executive"},
                {value:"273", text:"Financial Controller"},
                {value:"274", text:"Financial / Business Analyst"},
                {value:"275", text:"Payroll / compensation Executive"},
                {value:"276", text:"Payroll / compensation - Manager / Head"},
                {value:"277", text:"GM / Head / VP Corporate Planning / Strategy"},
                {value:"278", text:"Head / GM - Finance"},
                {value:"279", text:"VP Finance / CFO"},
                {value:"280", text:"External Consultant"},
                {value:"281", text:"Other Finance and Accounts"}];
regiondb["9"] =[{value:"282", text:"Fresher"},
                {value:"283", text:"Graduate Trainee / Management Trainee"},
                {value:"284", text:"Relationship Manager"},
                {value:"285", text:"Risk Manager / Analyst"},
                {value:"286", text:"Underwriter"},
                {value:"287", text:"M & A Advisor"},
                {value:"288", text:"Project Finance Advisor"},
                {value:"289", text:"Trading Advisor"},
                {value:"290", text:"Security / Equity Research Analyst"},
                {value:"291", text:"Stock Broker"},
                {value:"292", text:"Ratings Analyst"},
                {value:"293", text:"Derivative Analyst"},
                {value:"294", text:"Advisory"},
                {value:"295", text:"Portfolio Manager "},
                {value:"296", text:"Investment Advisor"},
                {value:"297", text:"Mutual Funda Analyst"},
                {value:"298", text:"Hedge Fund Analyst / Trader"},
                {value:"299", text:"Asset Operations"},
                {value:"300", text:"Transactions Processing Executive"},
                {value:"301", text:"Account Services Executive"},
                {value:"302", text:"Depository Participant"},
                {value:"303", text:"Chartered Account (CPA)"},
                {value:"304", text:"Economist"},
                {value:"305", text:"VP - Operations / COO"},
                {value:"306", text:"SBU Head / Profit Center Head "},
                {value:"307", text:"CEO / MD / Country Manager "},
                {value:"308", text:"Director on Board"},
                {value:"309", text:"External Consultant"},
                {value:"310", text:"Other Financial Services"}];
regiondb["10"] =[{value:"311", text:"Trainee / Intern "},
                {value:"312", text:"Doctor"},
                {value:"313", text:"Physician"},
                {value:"314", text:"Dietician"},
                {value:"315", text:"Consultant"},
                {value:"316", text:"Pathologist"},
                {value:"317", text:"Surgeon"},
                {value:"318", text:"Orthopaedist"},
                {value:"319", text:"Psychiatrist"},
                {value:"320", text:"Specialist - Medicine"},
                {value:"321", text:"Nephrologist"},
                {value:"322", text:"Physiotherapist"},
                {value:"323", text:"Psychologist"},
                {value:"324", text:"Occupational Therapist"},
                {value:"325", text:"Microbiologist"},
                {value:"326", text:"Chemist"},
                {value:"327", text:"Optometrist"},
                {value:"328", text:"Radiologist"},
                {value:"329", text:"Pharmacist"},
                {value:"330", text:"Perfusionist"},
                {value:"331", text:"Anaesthetist"},
                {value:"332", text:"Ayurvedic Doctor"},
                {value:"333", text:"Ophthalmologist"},
                {value:"334", text:"Nurse"},
                {value:"335", text:"Hearing Aid Technician"},
                {value:"336", text:"Lab Technician"},
                {value:"337", text:"Bio - Chemist"},
                {value:"338", text:"Radiographer"},
                {value:"339", text:"ECG / CGA Technician"},
                {value:"340", text:"Operation Theatre Technician"},
                {value:"341", text:"Medical Officer"},
                {value:"342", text:"Front Office"},
                {value:"343", text:"House Keeping"},
                {value:"344", text:"Cardiologist"},
                {value:"345", text:"Dentist"},
                {value:"346", text:"Dermatologist"},
                {value:"347", text:"ENT Specialist"},
                {value:"348", text:"Gastronomist / Gastrologist"},
                {value:"349", text:"Gynaecologist"},
                {value:"350", text:"Medical Lab Supervisor"},
                {value:"351", text:"Medical Superintendant / Dean / Director"},
                {value:"352", text:"Neurologist"},
                {value:"353", text:"Hepatologist"},
                {value:"354", text:"Oncologist"},
                {value:"355", text:"Paediatrician"},
                {value:"356", text:"Pulmonologist "},
                {value:"357", text:"Speech Language Pathologist / Therapist"},
                {value:"358", text:"VP - Operations / CEO"},
                {value:"359", text:"SBU Head / Profit Center Head"},
                {value:"360", text:"CEO / MD / Country Manager "},
                {value:"361", text:"Director on Board"},
                {value:"362", text:"Other Health Care / Hospitals"}];
regiondb["11"]= [{value:"363", text:"Fresher"},
                {value:"364", text:"Trainee / Management Trainee "},
                {value:"365", text:"Hostess / Host"},
                {value:"366", text:"Restaurant Manager "},
                {value:"367", text:"F & B Manager "},
                {value:"368", text:"Lobby / Duty Manager "},
                {value:"369", text:"Front Office Executive"},
                {value:"370", text:"Front Office Manager "},
                {value:"371", text:"Banquet Sales"},
                {value:"372", text:"Banquet Manager "},
                {value:"373", text:"Guest Relations Executive"},
                {value:"374", text:"Guest Relations Manager "},
                {value:"375", text:"Reservation Manager "},
                {value:"376", text:"Club Floor Manager "},
                {value:"377", text:"Business Center Manager "},
                {value:"378", text:"House Keeping Executive"},
                {value:"379", text:"House Keeping - Head / Manager"},
                {value:"380", text:"Healthclub Manager "},
                {value:"381", text:"Room Service Manager "},
                {value:"382", text:"Security Manager / Officer"},
                {value:"383", text:"Laundry Manager "},
                {value:"384", text:"Chef / Kitchen Manager "},
                {value:"385", text:"Sous Chef"},
                {value:"386", text:"Chief Chef"},
                {value:"387", text:"Steward / Waiter"},
                {value:"388", text:"Bartender"},
                {value:"389", text:"Training Manager "},
                {value:"390", text:"Travel Agent / Tour Operator"},
                {value:"391", text:"Cashier"},
                {value:"392", text:"Concierge"},
                {value:"393", text:"Chief Engineer "},
                {value:"394", text:"Shift Engineer / Supervisor"},
                {value:"395", text:"Maintenance Technician"},
                {value:"396", text:"Masseur"},
                {value:"397", text:"Attender"},
                {value:"398", text:"Quality Assurance / Control"},
                {value:"399", text:"VP / GM - Quality"},
                {value:"400", text:"VP - Operations / COO"},
                {value:"401", text:"SBU Head / Profit Center Head"},
                {value:"402", text:"CEO / MD / Country Manager "},
                {value:"403", text:"Director on Board"},
                {value:"404", text:"GM / DGM"},
                {value:"405", text:"External Consultant"},
                {value:"406", text:"Other Hotels and Restaurants"}];
regiondb["12"]= [{value:"407", text:"Fresher"},
                {value:"408", text:"Graduate Trainee / Management Trainee"},
                {value:"409", text:"Payroll / Compensation Executive"},
                {value:"410", text:"Payroll / Compensation - Head / Manager"},
                {value:"411", text:"Training and Development Executive"},
                {value:"412", text:"Training and Development - Head / Manager"},
                {value:"413", text:"HR Executive / Recruiter"},
                {value:"414", text:"Recruitment - Head / Manager"},
                {value:"415", text:"HR Manager"},
                {value:"416", text:"Appraisals - Head / Manager"},
                {value:"417", text:"Travel / Immigration Coordinator"},
                {value:"418", text:"Admin - Executive"},
                {value:"419", text:"Computer Operator / Data Entry"},
                {value:"420", text:"Typist"},
                {value:"421", text:"Despatch Incharge"},
                {value:"422", text:"Receptionist / Front Office Executive"},
                {value:"423", text:"Office Secretary"},
                {value:"424", text:"Executive Secretary"},
                {value:"425", text:"Facilities Manager"},
                {value:"426", text:"Admin - Head / Manager"},
                {value:"427", text:"Industrial Relations / Personal Manager"},
                {value:"428", text:"VP / GM - Administration"},
                {value:"429", text:"VP / GM - HR"},
                {value:"430", text:"External Consultant"},
                {value:"431", text:"Other Human Resource"}];
regiondb["13"]= [{value:"432", text:"Fresher"},
                {value:"433", text:"Relationship Manager "},
                {value:"434", text:"Sales Manager "},
                {value:"435", text:"Advisor"},
                {value:"436", text:"Actuary"},
                {value:"437", text:"Agent / Broker"},
                {value:"438", text:"Claims Management"},
                {value:"439", text:"Insurance, General"},
                {value:"440", text:"Underwriting"},
                {value:"441", text:"Bancassurance Executive / Manager "},
                {value:"442", text:"Product Manager - Insurance"},
                {value:"443", text:"Branck Manager / Head"},
                {value:"444", text:"Head Bancassurance"},
                {value:"445", text:"Head General Insurance"},
                {value:"446", text:"Head Life Insurance"},
                {value:"447", text:"Operations Executive "},
                {value:"448", text:"Operations Manager "},
                {value:"449", text:"Agency Manager "},
                {value:"450", text:"Trainee / Management Trainee"},
                {value:"451", text:"VP Operations / COO"},
                {value:"452", text:"SBU Head / Profit Center Head"},
                {value:"453", text:"CEO / MD / Country Manager "},
                {value:"454", text:"Director on Board"},
                {value:"455", text:"External Consultant"},
                {value:"456", text:"Other Insurance"}];
regiondb["14"]= [{value:"457", text:"Fresher"},
                {value:"458", text:"Legal Assitant / Apprentice"},
                {value:"459", text:"Private Practitioner / Lawyer / Attorney"},
                {value:"460", text:"Legal Advisor"},
                {value:"461", text:"Legal Consultant / Solicitor"},
                {value:"462", text:"Law Officer"},
                {value:"463", text:"Patent"},
                {value:"464", text:"Company Secretary"},
                {value:"465", text:"Proof Reader (Law)"},
                {value:"466", text:"Legal Editor"},
                {value:"467", text:"Legal Services - Manager "},
                {value:"468", text:"Legal Head "},
                {value:"469", text:"Other Legal / Law"}];
regiondb["15"]= [{value:"470", text:"Fresher"},
                {value:"471", text:"Trainee / Management Trainee"},
                {value:"472", text:"Telesales / Telemarketing Executive"},
                {value:"473", text:"Advertising - Executive"},
                {value:"474", text:"Advertising - Manager"},
                {value:"475", text:"Public Relations - Executive"},
                {value:"476", text:"Public Relations - Manager"},
                {value:"477", text:"Direct Marketing - Executive"},
                {value:"478", text:"Direct Marketing - Manager"},
                {value:"479", text:"Brand Manager"},
                {value:"480", text:"Market Research - Executive"},
                {value:"481", text:"Market Research - Manager"},
                {value:"482", text:"Events / Promotions Manager"},
                {value:"483", text:"Alliances Manager"},
                {value:"484", text:"Business Analyst / Consultant"},
                {value:"485", text:"Marketing Executive"},
                {value:"486", text:"Marketing Manager"},
                {value:"487", text:"Corp Communications - Manager / Executive"},
                {value:"488", text:"Head - Corp Communications"},
                {value:"489", text:"Product Manager / Product Head"},
                {value:"490", text:"Marcom Executive"},
                {value:"491", text:"Marcom - Manager / Head"},
                {value:"492", text:"Executive - Internet Marketing"},
                {value:"493", text:"Manager / Head - Internet Marketing"},
                {value:"494", text:"Head - Direct Marketing"},
                {value:"495", text:"Head - Public Relations"},
                {value:"496", text:"Head - Advertising"},
                {value:"497", text:"VP / GM / Head - Marketing"},
                {value:"498", text:"External Consultant"},
                {value:"499", text:"Other Marketing"}];
regiondb["16"]= [{value:"500", text:"Fresher"},
                {value:"501", text:"Foreman"},
                {value:"502", text:"Draughtsman"},
                {value:"503", text:"Rigger"},
                {value:"504", text:"Fire & gas technician"},
                {value:"505", text:"HVAC expert"},
                {value:"506", text:"Desalination Plant"},
                {value:"507", text:"Drilling expert"},
                {value:"508", text:"Gas turbine expert"},
                {value:"509", text:"Seismic Expert"},
                {value:"510", text:"Thermal Inspector"},
                {value:"511", text:"Safety Engineer"},
                {value:"512", text:"Geosciences"},
                {value:"513", text:"Geophysicist"},
                {value:"514", text:"Reservoir Geologist"},
                {value:"515", text:"Petro physicist"},
                {value:"516", text:"Engineering – Civil "},
                {value:"517", text:"Engineering – Structural"},
                {value:"518", text:"Engineering – Electrical"},
                {value:"519", text:"Engineering – Oil/Gas"},
                {value:"520", text:"Engineering – Mechanical static"},
                {value:"521", text:"Engineering – Instrument and Control Automation "},
                {value:"522", text:"Engineering – Materials & Corrosion"},
                {value:"523", text:"Engineering – Facilities / Surface"},
                {value:"524", text:"Engineering – Field"},
                {value:"525", text:"Engineering – Heating and Thermal Equipment"},
                {value:"526", text:"Engineering – Inspection"},
                {value:"527", text:"Engineering – Offshore Structures"},
                {value:"528", text:"Engineering – Pipelines"},
                {value:"529", text:"Engineering – Rotating Equipment"},
                {value:"530", text:"Engineering – Subsea"},
                {value:"531", text:"Engineering – Pressure Equipment"},
                {value:"532", text:"Engineering - Quality Assurance"},
                {value:"533", text:"Engineering - Reactor and Solids Processing"},
                {value:"534", text:"Engineering - Support"},
                {value:"535", text:"Petroleum Engineering - Petrophysics"},
                {value:"536", text:"Petroleum Engineering - Reservoir"},
                {value:"537", text:"Process Engineering "},
                {value:"538", text:"Project Engineering"},
                {value:"539", text:"Well Engineering"},
                {value:"540", text:"Production and Manufacturing Downstream"},
                {value:"541", text:"Production and Manufacturing Upstream"},
                {value:"542", text:"Research and Technology Development"},
                {value:"543", text:"HC Management Specialist"},
                {value:"544", text:"Head - Drilling and Completions"},
                {value:"545", text:"Head - Development and Projects"},
                {value:"546", text:"Head - EPC"},
                {value:"547", text:"SBU Head / Profit Center Head"},
                {value:"548", text:"VP / GM - Projects"},
                {value:"549", text:"VP - Operations / COO"},
                {value:"550", text:"CEO / MD / Country Manager"},
                {value:"551", text:"Director on Board"},
                {value:"552", text:"External Consultant"},
                {value:"553", text:"Other Oil and Gas"}];
regiondb["18"]= [{value:"554", text:"Fresher"},
                {value:"555", text:"Practical Training / Internship"},
                {value:"556", text:"Post Doc Position / Fellowship"},
                {value:"557", text:"Medical Representative"},
                {value:"558", text:"Product Manager "},
                {value:"559", text:"Pharmacist"},
                {value:"560", text:"Microbiologist"},
                {value:"561", text:"Nutritionist"},
                {value:"562", text:"Chemist"},
                {value:"563", text:"Lab Staff"},
                {value:"564", text:"Basic Research Scientist"},
                {value:"565", text:"Biotechnology Research Scientist"},
                {value:"566", text:"Clinical Research Scientist"},
                {value:"567", text:"Chemical Research Scientist"},
                {value:"568", text:"Drug Regulatory Doctor"},
                {value:"569", text:"Pharmaceutical Research Scientist"},
                {value:"570", text:"Analytical Chemistry Scientist "},
                {value:"571", text:"Goods Manufacturing Practices (GMP)"},
                {value:"572", text:"Data Management / Statistics"},
                {value:"573", text:"Documentation / Medical Writing"},
                {value:"574", text:"Technology Transfer Engineer "},
                {value:"575", text:"Quality Assurance / Control"},
                {value:"576", text:"Quality Assurance - Manager"},
                {value:"577", text:"Molecular Biologist"},
                {value:"578", text:"Nuclear Medicine"},
                {value:"579", text:"Toxicologist"},
                {value:"580", text:"Formulation Scientist"},
                {value:"581", text:"VP / GM - Quality"},
                {value:"582", text:"VP / GM R & D (Pharma)"},
                {value:"583", text:"VP Operations / COO"},
                {value:"584", text:"SBU Head / Profit Center Head"},
                {value:"585", text:"CEO / MD / Country Manager "},
                {value:"586", text:"Director on Board"},
                {value:"587", text:"External Consultant"},
                {value:"588", text:"Other Pharma"}];
regiondb["19"]= [{value:"589", text:"Fresher "},
                {value:"590", text:"Graduate Trainee / Management Trainee"},
                {value:"591", text:"Tool Room"},
                {value:"592", text:"Paint Shop"},
                {value:"593", text:"Press Shop"},
                {value:"594", text:"Weld Shop"},
                {value:"595", text:"Service Manager / Engineer"},
                {value:"596", text:"Spares Manager / Engineer"},
                {value:"597", text:"Floor Supervisor"},
                {value:"598", text:"Work Shop Manager"},
                {value:"599", text:"Maintenance"},
                {value:"600", text:"Technician"},
                {value:"601", text:"Foreman"},
                {value:"602", text:"Draughtsman"},
                {value:"603", text:"Assembler"},
                {value:"604", text:"Safety Officer / Engineer"},
                {value:"605", text:"Chief Engineer"},
                {value:"606", text:"Tech / Engineering Manager"},
                {value:"607", text:"Production Manager / Engineer"},
                {value:"608", text:"Process Manager / Enginner"},
                {value:"609", text:"Design Manager / Engineer"},
                {value:"610", text:"Plant Head / Factory Manager"},
                {value:"611", text:"Automotive Engineer"},
                {value:"612", text:"Aviation Engineer"},
                {value:"613", text:"Chemical Engineer"},
                {value:"614", text:"Civil Engineer"},
                {value:"615", text:"Electrical Engineer"},
                {value:"616", text:"Electronic / Instrumentation Engineer"},
                {value:"617", text:"Environmental Engineer"},
                {value:"618", text:"Industrial Engineering"},
                {value:"619", text:"Marine Engineer"},
                {value:"620", text:"Mechanical Engineer"},
                {value:"621", text:"Mines Engineer"},
                {value:"622", text:"Projects "},
                {value:"623", text:"Product Manager"},
                {value:"624", text:"Packaging"},
                {value:"625", text:"Customer Service / Tech Support"},
                {value:"626", text:"Lab Staff"},
                {value:"627", text:"Research Assistant"},
                {value:"628", text:"Data Management / Statistics"},
                {value:"629", text:"Research Scientist"},
                {value:"630", text:"R & D Manager"},
                {value:"631", text:"Technical Writer"},
                {value:"632", text:"Quality Assurance / Control"},
                {value:"633", text:"Quality Assurance / Manager"},
                {value:"634", text:"Store Keeper / Wearhouse Assistant"},
                {value:"635", text:"Inventory Control Manager / Materials Manager"},
                {value:"636", text:"Materials - Head / GM"},
                {value:"637", text:"Vendor Development Manager"},
                {value:"638", text:"Commercial - Manager "},
                {value:"639", text:"VP / GM - Commercial"},
                {value:"640", text:"VP / GM - R & D (Production and Engg.)"},
                {value:"641", text:"VP / GM - Quality"},
                {value:"642", text:"VP / GM - Design (Production and Engg.)"},
                {value:"643", text:"VP / GM - Engg. / Production"},
                {value:"644", text:"External Consultant"},
                {value:"645", text:"Other Production / Engineering / R & D"}];
regiondb["20"]= [{value:"646", text:"Fresher"},
                {value:"647", text:"Graduate Trainee / Management Trainee"},
                {value:"648", text:"Logistics - Coordinator"},
                {value:"649", text:"Logistics - Head / Manager"},
                {value:"650", text:"Purchase Officer / Coordinator / Executive"},
                {value:"651", text:"Vendor Development Manager"},
                {value:"652", text:"Purchase Manager"},
                {value:"653", text:"Purchase - Head"},
                {value:"654", text:"Store Keeper / Wearhouse Assistant"},
                {value:"655", text:"Inventory Control Manager / Materials Manager"},
                {value:"656", text:"Materials - Head / GM"},
                {value:"657", text:"Computer Operator / Data Entry"},
                {value:"658", text:"Fleet Supervisor"},
                {value:"659", text:"Transportation / Shipping Supervisor"},
                {value:"660", text:"Traffic Clerk Commercial - Manager"},
                {value:"661", text:"Distribution - Head"},
                {value:"662", text:"Supply Chain - Head"},
                {value:"663", text:"VP / GM - Commercial"},
                {value:"664", text:"External Consultant"},
                {value:"665", text:"Other Purchase / Supply Chain"}];
regiondb["21"]= [{value:"666", text:"Fresher"},
                {value:"667", text:"Trainee / Management Trainee "},
                {value:"668", text:"Floor Manager "},
                {value:"669", text:"Retail Store Manager "},
                {value:"670", text:"Area Manager "},
                {value:"671", text:"Regional Manager "},
                {value:"672", text:"Shift Manager "},
                {value:"673", text:"Front Desk"},
                {value:"674", text:"Merchandiser"},
                {value:"675", text:"Visual Merchandiser"},
                {value:"676", text:"Cashier"},
                {value:"677", text:"Loyalty Programme"},
                {value:"678", text:"Sales Executive / Sales Representative"},
                {value:"679", text:"Buyer / Sourcing Manager "},
                {value:"680", text:"Inventory Control Manager "},
                {value:"681", text:"Loss Prevention Manager "},
                {value:"682", text:"Operations Officer"},
                {value:"683", text:"Technical - Manager"},
                {value:"684", text:"Quality Assurance / Control"},
                {value:"685", text:"VP / GM - Quality"},
                {value:"686", text:"VP Operations / COO"},
                {value:"687", text:"SBU Head / Profit Center Head"},
                {value:"688", text:"CEO / MD / Country Manager "},
                {value:"689", text:"Director on Board"},
                {value:"690", text:"GM"},
                {value:"691", text:"External Consultant"},
                {value:"692", text:"Other Retail Chains / Shops"}];
regiondb["22"]= [{value:"693", text:"Fresher"},
                {value:"694", text:"Sales Trainee / Management Trainee"},
                {value:"695", text:"Medical Representative"},
                {value:"696", text:"Tele Sales / Tele Marketing Executive"},
                {value:"697", text:"Direct Sales Agent / Commission Agent"},
                {value:"698", text:"Sales Exec. / Sales Representative"},
                {value:"699", text:"Business Development Executive"},
                {value:"700", text:"Business Development Manager"},
                {value:"701", text:"Sales Promotion Manager"},
                {value:"702", text:"Channel Sales Manager"},
                {value:"703", text:"International Business Development Manager"},
                {value:"704", text:"Relationship Manager / Account Servicing"},
                {value:"705", text:"Merchandiser"},
                {value:"706", text:"Sales Trainer"},
                {value:"707", text:"Pre Sales Consultant"},
                {value:"708", text:"Key Accounts Manager"},
                {value:"709", text:"Area / Territory Sales Manager"},
                {value:"710", text:"Branch Manager"},
                {value:"711", text:"Regional Sales Manager"},
                {value:"712", text:"National Sales Manager"},
                {value:"713", text:"VP / GM / Head Sales"},
                {value:"714", text:"External Consultant"},
                {value:"715", text:"Other Sales"}];
regiondb["23"]= [{value:"716", text:"Chief Technology Officer"},
                {value:"717", text:"VP / Head - Technology (IT)"},
                {value:"718", text:"VP / Head - Technology (Telecom / ISP)"},
                {value:"719", text:"Chief Information Officer"},
                {value:"720", text:"VP / GM / Head - Sales "},
                {value:"721", text:"VP / GM / Head - Marketing"},
                {value:"722", text:"Accounts Head / GM - Accounts"},
                {value:"723", text:"Finance Head / GM - Finance"},
                {value:"724", text:"VP - Finance / CFO"},
                {value:"725", text:"VP / GM - HR"},
                {value:"726", text:"VP / GM - Administration"},
                {value:"727", text:"VP / Head - Customer Service"},
                {value:"728", text:"VP / GM R & D (Pharma)"},
                {value:"729", text:"VP / GM - Engg / Production"},
                {value:"730", text:"Director / Practice Head (PR)"},
                {value:"731", text:"VP - Media Buying"},
                {value:"732", text:"VP - Media Planning and Strategy"},
                {value:"733", text:"VP - Creative / Creative Director"},
                {value:"734", text:"VP - Client Servicing (Advertising)"},
                {value:"735", text:"VP - Client / Servicing (MR)"},
                {value:"736", text:"VP / GM - Quality"},
                {value:"737", text:"VP / GM - Commercial"},
                {value:"738", text:"Materials - Head / GM"},
                {value:"739", text:"Purchase - Head"},
                {value:"740", text:"Supply Chain - Head"},
                {value:"741", text:"Distribution - Head"},
                {value:"742", text:"Legal - Head"},
                {value:"743", text:"VP - Client Servicing (Direct Marketing)"},
                {value:"744", text:"Head - Corporate Communications"},
                {value:"745", text:"Head / VP / GM - Design (Production and Engg.)"},
                {value:"746", text:"Head - R & D (Production and Engg.)"},
                {value:"747", text:"GM / Head / VP Corporate Planning / Strategy"},
                {value:"748", text:"Management Consultant"},
                {value:"749", text:"VP - Operations / COO"},
                {value:"750", text:"SBU Head / Profit Center Head"},
                {value:"751", text:"CEO / MD / Country Manager"},
                {value:"752", text:"Director on Board"},
                {value:"753", text:"Other Senior Management"}];
regiondb["24"]=[{value:"754", text:"Fresher"},
                {value:"755", text:"Trainee"},
                {value:"756", text:"Software Engineer / Programmer"},
                {value:"757", text:"Team Leader / Technical Leader"},
                {value:"758", text:"System Analyst / Tech. Architect"},
                {value:"759", text:"Database Architect / Designer"},
                {value:"760", text:"Project Leader / Project Manager"},
                {value:"761", text:"Delivery Manager"},
                {value:"762", text:"Database Administrator"},
                {value:"763", text:"System Administrator"},
                {value:"764", text:"Network Administrator"},
                {value:"765", text:"Network Designer"},
                {value:"766", text:"System Security - Engineer"},
                {value:"767", text:"Security Analyst"},
                {value:"768", text:"Software Test Engineer"},
                {value:"769", text:"System Integrator"},
                {value:"770", text:"Technical Support Engineer"},
                {value:"771", text:"Software Installation / Maintenance Engineer"},
                {value:"772", text:"Production Manager"},
                {value:"773", text:"Business Analyst"},
                {value:"774", text:"Data Wearhousing Consultants"},
                {value:"775", text:"ERP, CRM - Technical Consultant"},
                {value:"776", text:"ERP, CRM - Functional Consultant"},
                {value:"777", text:"ERP, CRM - Support Engineer"},
                {value:"778", text:"Graphic Designer / Animator"},
                {value:"779", text:"Configuration Manager / Release Manager"},
                {value:"780", text:"Web Master / Website Manager"},
                {value:"781", text:"Hardware Design Engineer"},
                {value:"782", text:"Hardware Design Technical Leader"},
                {value:"783", text:"Hardware Installation / Maintenance Engineer"},
                {value:"784", text:"Quality Assurance Executive"},
                {value:"785", text:"Quality Assurance - Manager"},
                {value:"786", text:"VP / GM - Quality"},
                {value:"787", text:"Computer Operator / Data Entry"},
                {value:"788", text:"Technical Writer"},
                {value:"789", text:"Instructional Designer"},
                {value:"790", text:"Trainer / Faculty"},
                {value:"791", text:"EDP Analyst"},
                {value:"792", text:"IT / Networking (EDP) - Manager"},
                {value:"793", text:"Information Systems (MIS) - Manager"},
                {value:"794", text:"Chief Technology Officer"},
                {value:"795", text:"Chief Information Officer"},
                {value:"796", text:"VP / Head - Technology (IT)"},
                {value:"797", text:"VP - Operations / COO"},
                {value:"798", text:"SBU Head / Profit Center Head"},
                {value:"799", text:"CEO / MD / Country Manager"},
                {value:"800", text:"Director on Board"},
                {value:"801", text:"External Consultant"},
                {value:"802", text:"Other Software / Hardware / EDP"}];
regiondb["25"]= [{value:"803", text:"Fresher"},
                {value:"804", text:"Graduate Trainee / Management Trainee"},
                {value:"805", text:"RF Planning Engineer"},
                {value:"806", text:"RF Installation and Administration Engineer"},
                {value:"807", text:"RF Planning - Chief Engineer"},
                {value:"808", text:"GSM Engineer"},
                {value:"809", text:"Telecom Engineer"},
                {value:"810", text:"O & M Engineer"},
                {value:"811", text:"Switching - Engineer"},
                {value:"812", text:"Switching - Chief Engineer"},
                {value:"813", text:"Network Administrator"},
                {value:"814", text:"System Administrator"},
                {value:"815", text:"System Engineer"},
                {value:"816", text:"System Security - Engineer"},
                {value:"817", text:"System Security - Chief Engineer"},
                {value:"818", text:"Network Installation and Administration"},
                {value:"819", text:"Network Planning - Engineer"},
                {value:"820", text:"Network Panning - Chief Engineer "},
                {value:"821", text:"Customer Support Engineer / Techincian"},
                {value:"822", text:"Outside Service Providers"},
                {value:"823", text:"Regional Manager / Manager (Operations)"},
                {value:"824", text:"Quality Assurance Executive"},
                {value:"825", text:"Quality Assurance - Manager "},
                {value:"826", text:"VP / GM - Quality"},
                {value:"827", text:"VP / Head - Technology (Telecom / ISP)"},
                {value:"828", text:"VP Operations / COO"},
                {value:"829", text:"SBU Head / Profit Center Head "},
                {value:"830", text:"CEO / MD / Country Manager "},
                {value:"831", text:"Director on Board"},
                {value:"832", text:"External Consultant"},
                {value:"833", text:"Other Telecom / ISP"}];
regiondb["26"]= [{value:"834", text:"Fresher"},
                {value:"835", text:"Trainee / Management Trainee"},
                {value:"836", text:"Reservation and Ticketing"},
                {value:"837", text:"Domestic Travel"},
                {value:"838", text:"International Travel"},
                {value:"839", text:"Documentation and VISA"},
                {value:"840", text:"Travel Agent / Tour Operator"},
                {value:"841", text:"Airhostess / Steward / Cabin Crew"},
                {value:"842", text:"Pilot"},
                {value:"843", text:"Ground Staff"},
                {value:"844", text:"Maintenance Engineer "},
                {value:"845", text:"Cashier"},
                {value:"846", text:"Office Assistant"},
                {value:"847", text:"Branch Head"},
                {value:"848", text:"VP - Operations / COO"},
                {value:"849", text:"SBU Head / Profit Center Head"},
                {value:"850", text:"CEO / MD / Country Manager "},
                {value:"851", text:"Director on Board"},
                {value:"852", text:"GM"},
                {value:"853", text:"External Consultant"},
                {value:"854", text:"Other Travel and Airlines"}];
regiondb["27"]= [{value:"855", text:"Teacher / Lecturer / Professor"},
                {value:"856", text:"Architect"},
                {value:"857", text:"Construction Suptd. / Inspector"},
                {value:"858", text:"Entrepreneur"},
                {value:"859", text:"Fashion Designer"},
                {value:"860", text:"Fitness Trainer"},
                {value:"861", text:"Horticulturist"},
                {value:"862", text:"Interior Designer"},
                {value:"863", text:"Librarian"},
                {value:"864", text:"Model"},
                {value:"865", text:"Painter"},
                {value:"866", text:"Property Management"},
                {value:"867", text:"Real Estate Broker"},
                {value:"868", text:"Security Officer"},
                {value:"869", text:"Statistician"},
                {value:"870", text:"Consultant"},
                {value:"871", text:"Other Roles"}];

//function getrole(chooser) 
//{
//    var newElem;
//    var where = (navigator.appName == "Microsoft Internet Explorer") ? -1 : null;
//    var cityChooser = chooser.form.elements["Ltrole"];
//    while (cityChooser.options.length) 
//    {
//        cityChooser.remove(0);
//    }
//    var choice = chooser.options[chooser.selectedIndex].value;
//    var db = regiondb[choice];
//    newElem = document.createElement("option");
//    newElem.text = "Choose a Category";
//    newElem.value = "";
//    cityChooser.add(newElem, where);
//    if (choice != "") {
//        for (var i = 0; i < db.length; i++) {
//            newElem = document.createElement("option");
//            newElem.text = db[i].text;
//            newElem.value = db[i].value;
//            cityChooser.add(newElem, where);
//        }
//    }
//}


//function SelectAllItems()
//{
//  
//}

    function getrole(chooser) 
    {
        var cityChooser = chooser.form.elements["Ltrole"];
    // empty previous settings
        cityChooser.options.length = 0;
    // get chosen value to act as index to regiondb hash table
        var choice = chooser.options[chooser.selectedIndex].value;
        var db = regiondb[choice];
    // insert default first item
       cityChooser.options[0] = new Option("Choose a Category:", "", true, false);
        if (choice != "") 
        {
        // loop through array of the hash table entry, and populate options
        for (var i = 0; i < db.length; i++) {
            cityChooser.options[i + 1] = new Option(db[i].text, db[i].value);
           
        }
    }
    }

//    function getrole(chooser) 
//    {
//        var cityChooser = chooser.form.elements["Ltrole"];
//    // empty previous settings
//        cityChooser.options.length = 0;
//    // get chosen value to act as index to regiondb hash table
//        var choice = chooser.options[chooser.selectedIndex].value;
//        var db = regiondb[choice];
//    // insert default first item
//        //cityChooser.options[0] = new Option("Choose a Category:", "", true, false);
//        if (choice != "") {
//        // loop through array of the hash table entry, and populate options
//        for (var i = 0; i < db.length; i++) 
//        {
//cityChooser.options[i + 1] = new Option(db[i].text, db[i].value);
////            var newOption = new Option(); // Create a new instance of ListItem
////            newOption.text = Source.options[Source.options.selectedIndex].text;
////            newOption.value = Source.options[Source.options.selectedIndex].value;
////            cityChooser.options[i + 1] =newOption;

//        }
//    }
//    }
     
    
    
//   function getrole1(chooser1) 
//    {
//     if (document.getElementById('Ltrole')!=-1)
//    {
//        var l =  document.getElementById('Ltrole');
////      var tb = document.getElementById('<%= TextBox1.ClientID %>');
//        var elements = ""; 
//        for (i = 0; i < l.options.length; i++) 
//        { 
//            if ( l.options[i].selected == true ) 
//            {
//                elements += 1; 
//                var values = elements.substring(0, elements.length - 1); 
//            }
//            
//        } 
//        theForm.HiddenField1.value = values;
////        return (true);
//   }
    
function new_jobseeker_validate() 
    {
    
    if (document.getElementById('Ltrole')!=-1)
    {
        var l =  document.getElementById('Ltrole');
//      var tb = document.getElementById('<%= TextBox1.ClientID %>');
        var elements = ""; 
        for (i = 0; i < l.options.length; i++) 
        { 
            if ( l.options[i].selected == true ) 
            {
                elements += l.options(i).text + ','; 
                var values = elements.substring(0, elements.length - 1); 
            }
            
        } 
        theForm.HiddenField1.value = values;
//        return (true);
   }
   

//     theForm.TextBox2.value =  document.getElementById('DDcategory');

   
   
        // check if email field is blank
        if (theForm.txtemail.value == "")
        {
            alert("Please Enter valid Email ID.");
            theForm.txtemail.focus();
            return (false);
        }

        // test if valid email address, must have @ and .
        var checkEmail = "@.";
        var checkStr = theForm.txtemail.value;
        var EmailValid = false;
        var EmailAt = false;
        var EmailPeriod = false;
        for (i = 0;  i < checkStr.length;  i++)
        {
            ch = checkStr.charAt(i);
            for (j = 0;  j < checkEmail.length;  j++)
            {
                if (ch == checkEmail.charAt(j) && ch == "@")
                EmailAt = true;
                if (ch == checkEmail.charAt(j) && ch == ".")
                EmailPeriod = true;
	            if (EmailAt && EmailPeriod)
		        break;
	            if (j == checkEmail.length)
		        break;
	        }
	        // if both the @ and . were in the string
            if (EmailAt && EmailPeriod)
            {
		        EmailValid = true
		        break;
	        }
        }
                if (!EmailValid)
        {
        alert("The \"email\" field must contain an \"@\" and a \".\".");
        theForm.txtemail.focus();
        return (false);
        }
        
        // require at least 5 characters in the password field
        if (theForm.txtpassword.value.length < 5)
        {
        alert("Please enter at least 5 characters in the \"Password\" field.");
        theForm.txtpassword.focus();
        return (false);
        }

        // check if both password fields are the same
        if (theForm.txtpassword.value != theForm.txtcpassword.value)
        {
	        alert("The two passwords are not the same.");
	        theForm.txtcpassword.focus();
	        return (false);
        }
        
        // check to see if the field is blank
        if (theForm.txtname.value == "")
        {
        alert("You must enter name.");
        theForm.txtname.focus();
        return (false);
        }

        // require at least 3 characters be entered
        if (theForm.txtname.value.length < 3)
        {
        alert("Please enter at least 5 characters in the \"Name\" field.");
        theForm.txtname.focus();
        return (false);
        }


       // check if no drop down has been selected
        if (theForm.DDgender.selectedIndex <= 0)
        {
            alert("Please select one of the \"Gender\" options.");
            theForm.DDgender.focus();
            return (false);
        }
        
 
         // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDday.selectedIndex <= 0)
        {
            alert("Please select day.");
            theForm.DDday.focus();
            return (false);
        }
        
        // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDmonth.selectedIndex <= 0)
        {
            alert("Please select month.");
            theForm.DDmonth.focus();
            return (false);
        }
        
        // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDyear.selectedIndex <= 0)
        {
            alert("Please select year.");
            theForm.DDyear.focus();
            return (false);
        }
        
                
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDnationality.selectedIndex <= 0)
        {
            alert("Please select your Nationality.");
            theForm.DDnationality.focus();
            return (false);
        }
        
           // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDprelocation.selectedIndex <= 0)
        {
            alert("Please select present location.");
            theForm.DDprelocation.focus();
            return (false);
        }

     // check to see if the field is blank
        if (theForm.txtphoneno1.value == "")
        {
        alert("You must enter atleast one phone number.");
        theForm.txtphoneno1.focus();
        return (false);
        }
        // only allow 0-9, hyphen and comma be entered
        var checkOK = "0123456789+";
        var checkStr = theForm.txtphoneno1.value;
        var allValid = true;
        var decPoints = 0;
        var allNum = "";
        for (i = 0;  i < checkStr.length;  i++)
        {
            ch = checkStr.charAt(i);
            for (j = 0;  j < checkOK.length;  j++)
            if (ch == checkOK.charAt(j))
            break;
            if (j == checkOK.length)
            {
                allValid = false;
                break;
            }
            if (ch != ",")
            allNum += ch;
        }
        if (!allValid)
        {
            alert("Please enter only digit characters in the \"Phone Number\" field.");
            theForm.txtphoneno1.focus();
            return (false);
        }        
        

    // only allow 0-9, hyphen and comma be entered
        var checkOK = "0123456789+";
        var checkStr = theForm.txtphoneno2.value;
        var allValid = true;
        var decPoints = 0;
        var allNum = "";
        for (i = 0;  i < checkStr.length;  i++)
        {
            ch = checkStr.charAt(i);
            for (j = 0;  j < checkOK.length;  j++)
            if (ch == checkOK.charAt(j))
            break;
            if (j == checkOK.length)
            {
                allValid = false;
                break;
            }
            if (ch != ",")
            allNum += ch;
        }
        if (!allValid)
        {
            alert("Please enter only digit characters in the \"Phone Number\" field.");
            theForm.txtphoneno2.focus();
            return (false);
        }

          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDreligion.selectedIndex <= 0)
        {
            alert("Please select Religion.");
            theForm.DDreligion.focus();
            return (false);
        }
        
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDeducation.selectedIndex <= 0)
        {
            alert("Please select Education.");
            theForm.DDeducation.focus();
            return (false);
        }

          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDspecialise.selectedIndex <= 0)
        {
            alert("Please select Specialisation.");
            theForm.DDspecialise.focus();
            return (false);
        }
           if (theForm.txtdes.value == "")
        {
            alert("Please enter Current Designation/ Job Title .");
            theForm.txtdes.focus();
            return (false);
        }
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDYexp.selectedIndex <= 0)
        {
            alert("Please select Experience.");
            theForm.DDYexp.focus();
            return (false);
        }
        
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDcategory.selectedIndex <= 0)
        {
            alert("Please select a Category");
            theForm.DDcategory.focus();
            return (false);
        }
        
//         if (theForm.Ltrole.selectedIndex <= 0)
//        {
//            alert("Please Select your Current Role/Roles.");
//            theForm.Ltrole.focus();
//            return (false);
//        }      
        
//        if(theForm.Ltrole.Items.Count >=5)
//         {
//            alert("Please Select Maximum 5 Roles");
//            theForm.Ltrole.focus();
//            return (false);
//        }   

// check if more than 5 options are selected
// check if less than 1 options are selected
        var numSelected = 0;
        var i;
        for (i = 0;  i < theForm.Ltrole.length;  i++)
        {
        if (theForm.Ltrole.options[i].selected)
        numSelected++;
        }
        if (numSelected > 5)
        {
        alert("Maximum selection Five roles only.Remove some roles");
        theForm.Ltrole.focus();
        return (false);
        }
        if (numSelected < 1)
        {
        alert("Please select at least one role");
        theForm.Ltrole.focus();
        return (false);
        }


            
            
        if (theForm.DDindus.selectedIndex <= 0)
        {
            alert("Please select Industry.");
            theForm.DDindus.focus();
            return (false);
        }
        
        if (theForm.txtresume.value == "")
        {
            alert("Please Paste your resume.");
            theForm.txtresume.focus();
            return (false);
        }
        
        if (!theForm.CheckBox1.checked)
        {
        alert("You have to accept terms and conditions");
        return (false);
        }  

    

        var fup = document.getElementById('FileUpload1');
        var fileName = fup.value;
        var ext = fileName.substring(fileName.lastIndexOf('.') + 1);
        if(ext == "doc" || ext == "DOC" || ext == "docx" || ext == "DOCX" || ext == "pdf" || ext == "PDF")
        {
            return true;
        } 
        else
        {
            alert("Upload document or pdf files only");
            fup.focus();
            return false;
        }
        
      
//      var numSelected = 0;
//      var i;
//       var intCount = window.document.form1.Ltrole.options.length;
//       for (i = 0; i < intCount; i++)
//       {
//	    window.document.form1.Ltrole.options(i).selected = true;
//      }



// check if more than 5 options are selected
// check if less than 1 options are selected
//var numSelected = 0;
//var i;
//for (i = 0;  i < theForm.Ltrole.length;  i++)
//{
//if (theForm.Ltrole.options[i].selected)
//numSelected++;
//}
//if (numSelected > 5)
//{
//alert("Please select at most 5 of the \"province\" options.");
//theForm.Ltrole.focus();
//return (false);
//}
//if (numSelected < 1)
//{
//alert("Please select at least 1 of the \"province\" options.");
//theForm.Ltrole.focus();
//return (false);
//}


      
      
    }



function edit_resume_validate() 
    {
    
    if (document.getElementById('Ltrole')!=-1)
    {
        var l =  document.getElementById('Ltrole');
//      var tb = document.getElementById('<%= TextBox1.ClientID %>');
        var elements = ""; 
        for (i = 0; i < l.options.length; i++) 
        { 
            if ( l.options[i].selected == true ) 
            {
                elements += l.options(i).text + ','; 
                var values = elements.substring(0, elements.length - 1); 
            }
            
        } 
        theForm.HiddenField1.value = values;
//        return (true);
   }
   

//     theForm.TextBox2.value =  document.getElementById('DDcategory');

   
   
        // check if email field is blank
        if (theForm.txtemail.value == "")
        {
            alert("Please Enter valid Email ID.");
            theForm.txtemail.focus();
            return (false);
        }

        // test if valid email address, must have @ and .
        var checkEmail = "@.";
        var checkStr = theForm.txtemail.value;
        var EmailValid = false;
        var EmailAt = false;
        var EmailPeriod = false;
        for (i = 0;  i < checkStr.length;  i++)
        {
            ch = checkStr.charAt(i);
            for (j = 0;  j < checkEmail.length;  j++)
            {
                if (ch == checkEmail.charAt(j) && ch == "@")
                EmailAt = true;
                if (ch == checkEmail.charAt(j) && ch == ".")
                EmailPeriod = true;
	            if (EmailAt && EmailPeriod)
		        break;
	            if (j == checkEmail.length)
		        break;
	        }
	        // if both the @ and . were in the string
            if (EmailAt && EmailPeriod)
            {
		        EmailValid = true
		        break;
	        }
        }
                if (!EmailValid)
        {
        alert("The \"email\" field must contain an \"@\" and a \".\".");
        theForm.txtemail.focus();
        return (false);
        }
        
     
        // check if both password fields are the same
        if (theForm.txtpassword.value != theForm.txtcpassword.value)
        {
	        alert("The two passwords are not the same.");
	        theForm.txtcpassword.focus();
	        return (false);
        }
        
        // check to see if the field is blank
        if (theForm.txtname.value == "")
        {
        alert("You must enter name.");
        theForm.txtname.focus();
        return (false);
        }

        // require at least 3 characters be entered
        if (theForm.txtname.value.length < 3)
        {
        alert("Please enter at least 5 characters in the \"Name\" field.");
        theForm.txtname.focus();
        return (false);
        }


       // check if no drop down has been selected
        if (theForm.DDgender.selectedIndex <= 0)
        {
            alert("Please select one of the \"Gender\" options.");
            theForm.DDgender.focus();
            return (false);
        }
        
 
         // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDday.selectedIndex <= 0)
        {
            alert("Please select day.");
            theForm.DDday.focus();
            return (false);
        }
        
        // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDmonth.selectedIndex <= 0)
        {
            alert("Please select month.");
            theForm.DDmonth.focus();
            return (false);
        }
        
        // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDyear.selectedIndex <= 0)
        {
            alert("Please select year.");
            theForm.DDyear.focus();
            return (false);
        }
        
                
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDnationality.selectedIndex <= 0)
        {
            alert("Please select your Nationality.");
            theForm.DDnationality.focus();
            return (false);
        }
        
           // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDprelocation.selectedIndex <= 0)
        {
            alert("Please select present location.");
            theForm.DDprelocation.focus();
            return (false);
        }

     // check to see if the field is blank
        if (theForm.txtphoneno1.value == "")
        {
        alert("You must enter atleast one phone number.");
        theForm.txtphoneno1.focus();
        return (false);
        }
        // only allow 0-9, hyphen and comma be entered
        var checkOK = "0123456789+";
        var checkStr = theForm.txtphoneno1.value;
        var allValid = true;
        var decPoints = 0;
        var allNum = "";
        for (i = 0;  i < checkStr.length;  i++)
        {
            ch = checkStr.charAt(i);
            for (j = 0;  j < checkOK.length;  j++)
            if (ch == checkOK.charAt(j))
            break;
            if (j == checkOK.length)
            {
                allValid = false;
                break;
            }
            if (ch != ",")
            allNum += ch;
        }
        if (!allValid)
        {
            alert("Please enter only digit characters in the \"Phone Number\" field.");
            theForm.txtphoneno1.focus();
            return (false);
        }        
        

    // only allow 0-9, hyphen and comma be entered
        var checkOK = "0123456789+";
        var checkStr = theForm.txtphoneno2.value;
        var allValid = true;
        var decPoints = 0;
        var allNum = "";
        for (i = 0;  i < checkStr.length;  i++)
        {
            ch = checkStr.charAt(i);
            for (j = 0;  j < checkOK.length;  j++)
            if (ch == checkOK.charAt(j))
            break;
            if (j == checkOK.length)
            {
                allValid = false;
                break;
            }
            if (ch != ",")
            allNum += ch;
        }
        if (!allValid)
        {
            alert("Please enter only digit characters in the \"Phone Number\" field.");
            theForm.txtphoneno2.focus();
            return (false);
        }

          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDreligion.selectedIndex <= 0)
        {
            alert("Please select Religion.");
            theForm.DDreligion.focus();
            return (false);
        }
        
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDeducation.selectedIndex <= 0)
        {
            alert("Please select Education.");
            theForm.DDeducation.focus();
            return (false);
        }
        
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDspecialise.selectedIndex <= 0)
        {
            alert("Please select Specialisation.");
            theForm.DDspecialise.focus();
            return (false);
        }
   if (theForm.txtdes.value == "")
        {
            alert("Please enter Current Designation/ Job Title .");
            theForm.txtdes.focus();
            return (false);
        }
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDYexp.selectedIndex <= 0)
        {
            alert("Please select Experience.");
            theForm.DDYexp.focus();
            return (false);
        }
        
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDcategory.selectedIndex <= 0)
        {
            alert("Please select a Category");
            theForm.DDcategory.focus();
            return (false);
        }
        
        var numSelected = 0;
        var i;
        for (i = 0;  i < theForm.Ltrole.length;  i++)
        {
        if (theForm.Ltrole.options[i].selected)
        numSelected++;
        }
        if (numSelected > 5)
        {
        alert("Maximum selection Five roles only.Remove some roles");
        theForm.Ltrole.focus();
        return (false);
        }
        
        
        if (theForm.DDindus.selectedIndex <= 0)
        {
            alert("Please select Industry.");
            theForm.DDindus.focus();
            return (false);
        }
        
        if (theForm.txtresume.value == "")
        {
            alert("Please Paste your resume.");
            theForm.txtresume.focus();
            return (false);
        }
   
      
//       var intCount = window.document.form1.Ltrole.options.length;
//       for (i = 0; i < intCount; i++)
//       {
//	    window.document.form1.Ltrole.options(i).selected = true;
//      }
      
      
    }
function open_window(url) 


{  mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=500,height=200'); 
 }    

function new_employer_validate() 
{
    // check if email field is blank
    if (theForm.txtemail.value == "")
    {
        alert("Please Enter valid Email ID.");
        theForm.txtemail.focus();
        return (false);
    }

    // test if valid email address, must have @ and .
    var checkEmail = "@.";
    var checkStr = theForm.txtemail.value;
    var EmailValid = false;
    var EmailAt = false;
    var EmailPeriod = false;
    for (i = 0;  i < checkStr.length;  i++)
    {
        ch = checkStr.charAt(i);
        for (j = 0;  j < checkEmail.length;  j++)
        {
            if (ch == checkEmail.charAt(j) && ch == "@")
            EmailAt = true;
            if (ch == checkEmail.charAt(j) && ch == ".")
            EmailPeriod = true;
            if (EmailAt && EmailPeriod)
	        break;
            if (j == checkEmail.length)
	        break;
        }
        // if both the @ and . were in the string
        if (EmailAt && EmailPeriod)
        {
	        EmailValid = true
	        break;
        }
    }
            if (!EmailValid)
    {
    alert("The \"email\" field must contain an \"@\" and a \".\".");
    theForm.txtemail.focus();
    return (false);
    }
    
    // require at least 5 characters in the password field
    if (theForm.txtpassword.value.length < 5)
    {
    alert("Please enter at least 5 characters in the \"Password\" field.");
    theForm.txtpassword.focus();
    return (false);
    }

    // check if both password fields are the same
    if (theForm.txtpassword.value != theForm.txtcpassword.value)
    {
        alert("The two passwords are not the same.");
        theForm.txtcpassword.focus();
        return (false);
    }
    
    // check to see if the field is blank
    if (theForm.txtcompname.value == "")
    {
    alert("You must enter Company name.");
    theForm.txtcompname.focus();
    return (false);
    }
    
    // check if no drop down or first drop down is selected, if so, invalid selection
    if (theForm.DDcomptype.selectedIndex <= 0)
    {
        alert("Please select Company Type.");
        theForm.DDcomptype.focus();
        return (false);
    }
    // check if no drop down or first drop down is selected, if so, invalid selection
    if (theForm.DDCountry.selectedIndex <= 0)
    {
        alert("Please select Located Country.");
        theForm.DDCountry.focus();
        return (false);
    }
     // check to see if the field is blank
    if (theForm.txtcity.value == "")
    {
    alert("You must enter State/City.");
    theForm.txtcity.focus();
    return (false);
    }
    
    // check to see if the field is blank
    if (theForm.txtcnumber.value == "")
    {
    alert("You must enter Contact Number.");
    theForm.txtcnumber.focus();
    return (false);
    }
    
    // only allow 0-9, hyphen and comma be entered
    var checkOK = "0123456789+";
    var checkStr = theForm.txtcnumber.value;
    var allValid = true;
    var decPoints = 0;
    var allNum = "";
    for (i = 0;  i < checkStr.length;  i++)
    {
        ch = checkStr.charAt(i);
        for (j = 0;  j < checkOK.length;  j++)
        if (ch == checkOK.charAt(j))
        break;
        if (j == checkOK.length)
        {
            allValid = false;
            break;
        }
        if (ch != ",")
        allNum += ch;
    }
    if (!allValid)
    {
        alert("Please enter only digit characters in the \"Phone Number\" field.");
        theForm.txtcnumber.focus();
        return (false);
    }
    
    // check to see if the field is blank
    if (theForm.txtprofile.value == "")
    {
    alert("You must enter Company Profile.");
    theForm.txtprofile.focus();
    return (false);
    }
    
    // check to see if the field is blank
    if (theForm.txtcname.value == "")
    {
    alert("You must enter Contact Persons Name.");
    theForm.txtcname.focus();
    return (false);
    }
    
    // check to see if the field is blank
    if (theForm.txtdes.value == "")
    {
    alert("You must enter Designation/Title of contact person.");
    theForm.txtdes.focus();
    return (false);
    }
    
    // check to see if the field is blank
    if (theForm.txtpcontno.value == "")
    {
    alert("You must enter Contact Number of contact person.");
    theForm.txtpcontno.focus();
    return (false);    
    }
    
     // only allow 0-9, hyphen and comma be entered
    var checkOK = "0123456789+";
    var checkStr = theForm.txtpcontno.value;
    var allValid = true;
    var decPoints = 0;
    var allNum = "";
    for (i = 0;  i < checkStr.length;  i++)
    {
        ch = checkStr.charAt(i);
        for (j = 0;  j < checkOK.length;  j++)
        if (ch == checkOK.charAt(j))
        break;
        if (j == checkOK.length)
        {
            allValid = false;
            break;
        }
        if (ch != ",")
        allNum += ch;
    }
    if (!allValid)
    {
        alert("Please enter only digit characters in the \"Phone Number\" field.");
        theForm.txtpcontno.focus();
        return (false);
    }
          // acceptance of rules
       if (!theForm.CheckBox1.checked)
        {
        alert("You have to accept terms and conditions");
        return (false);
        }  
               
} 



function pending_resume_validate() 
    {
    
    if (document.getElementById('Ltrole')!=-1)
    {
        var l =  document.getElementById('Ltrole');
//      var tb = document.getElementById('<%= TextBox1.ClientID %>');
        var elements = ""; 
        for (i = 0; i < l.options.length; i++) 
        { 
            if ( l.options[i].selected == true ) 
            {
                elements += l.options(i).text + ','; 
                var values = elements.substring(0, elements.length - 1); 
            }
            
        } 
        theForm.TextBox1.value = values;
//        return (true);
   }
   

//     theForm.TextBox2.value =  document.getElementById('DDcategory');

   
   
        // check if email field is blank
        if (theForm.txtemail.value == "")
        {
            alert("Please Enter valid Email ID.");
            theForm.txtemail.focus();
            return (false);
        }

        // test if valid email address, must have @ and .
        var checkEmail = "@.";
        var checkStr = theForm.txtemail.value;
        var EmailValid = false;
        var EmailAt = false;
        var EmailPeriod = false;
        for (i = 0;  i < checkStr.length;  i++)
        {
            ch = checkStr.charAt(i);
            for (j = 0;  j < checkEmail.length;  j++)
            {
                if (ch == checkEmail.charAt(j) && ch == "@")
                EmailAt = true;
                if (ch == checkEmail.charAt(j) && ch == ".")
                EmailPeriod = true;
	            if (EmailAt && EmailPeriod)
		        break;
	            if (j == checkEmail.length)
		        break;
	        }
	        // if both the @ and . were in the string
            if (EmailAt && EmailPeriod)
            {
		        EmailValid = true
		        break;
	        }
        }
                if (!EmailValid)
        {
        alert("The \"email\" field must contain an \"@\" and a \".\".");
        theForm.txtemail.focus();
        return (false);
        }
        
        // require at least 5 characters in the password field
        if (theForm.txtpassword.value.length < 5)
        {
        alert("Please enter at least 5 characters in the \"Password\" field.");
        theForm.txtpassword.focus();
        return (false);
        }

     
        
        // check to see if the field is blank
        if (theForm.txtname.value == "")
        {
        alert("You must enter name.");
        theForm.txtname.focus();
        return (false);
        }

        // require at least 3 characters be entered
        if (theForm.txtname.value.length < 3)
        {
        alert("Please enter at least 5 characters in the \"Name\" field.");
        theForm.txtname.focus();
        return (false);
        }


       // check if no drop down has been selected
        if (theForm.DDgender.selectedIndex <= 0)
        {
            alert("Please select one of the \"Gender\" options.");
            theForm.DDgender.focus();
            return (false);
        }
        
 
         // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDday.selectedIndex <= 0)
        {
            alert("Please select day.");
            theForm.DDday.focus();
            return (false);
        }
        
        // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDmonth.selectedIndex <= 0)
        {
            alert("Please select month.");
            theForm.DDmonth.focus();
            return (false);
        }
        
        // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDyear.selectedIndex <= 0)
        {
            alert("Please select year.");
            theForm.DDyear.focus();
            return (false);
        }
        
                
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDnationality.selectedIndex <= 0)
        {
            alert("Please select your Nationality.");
            theForm.DDnationality.focus();
            return (false);
        }
        
           // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDprelocation.selectedIndex <= 0)
        {
            alert("Please select present location.");
            theForm.DDprelocation.focus();
            return (false);
        }

     // check to see if the field is blank
        if (theForm.txtphoneno1.value == "")
        {
        alert("You must enter atleast one phone number.");
        theForm.txtphoneno1.focus();
        return (false);
        }
        // only allow 0-9, hyphen and comma be entered
        var checkOK = "0123456789+";
        var checkStr = theForm.txtphoneno1.value;
        var allValid = true;
        var decPoints = 0;
        var allNum = "";
        for (i = 0;  i < checkStr.length;  i++)
        {
            ch = checkStr.charAt(i);
            for (j = 0;  j < checkOK.length;  j++)
            if (ch == checkOK.charAt(j))
            break;
            if (j == checkOK.length)
            {
                allValid = false;
                break;
            }
            if (ch != ",")
            allNum += ch;
        }
        if (!allValid)
        {
            alert("Please enter only digit characters in the \"Phone Number\" field.");
            theForm.txtphoneno1.focus();
            return (false);
        }        
        

    // only allow 0-9, hyphen and comma be entered
        var checkOK = "0123456789+";
        var checkStr = theForm.txtphoneno2.value;
        var allValid = true;
        var decPoints = 0;
        var allNum = "";
        for (i = 0;  i < checkStr.length;  i++)
        {
            ch = checkStr.charAt(i);
            for (j = 0;  j < checkOK.length;  j++)
            if (ch == checkOK.charAt(j))
            break;
            if (j == checkOK.length)
            {
                allValid = false;
                break;
            }
            if (ch != ",")
            allNum += ch;
        }
        if (!allValid)
        {
            alert("Please enter only digit characters in the \"Phone Number\" field.");
            theForm.txtphoneno2.focus();
            return (false);
        }

          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDreligion.selectedIndex <= 0)
        {
            alert("Please select Religion.");
            theForm.DDreligion.focus();
            return (false);
        }
        
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDeducation.selectedIndex <= 0)
        {
            alert("Please select Education.");
            theForm.DDeducation.focus();
            return (false);
        }
        
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDspecialise.selectedIndex <= 0)
        {
            alert("Please select Specialisation.");
            theForm.DDspecialise.focus();
            return (false);
        }
         if (theForm.txtdes.value == "")
        {
            alert("Please enter Current Designation/ Job Title .");
            theForm.txtdes.focus();
            return (false);
        }
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDYexp.selectedIndex <= 0)
        {
            alert("Please select Experience.");
            theForm.DDYexp.focus();
            return (false);
        }
        
          // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDcategory.selectedIndex <= 0)
        {
            alert("Please select a Category");
            theForm.DDcategory.focus();
            return (false);
        }
       
        var numSelected = 0;
        var i;
        for (i = 0;  i < theForm.Ltrole.length;  i++)
        {
        if (theForm.Ltrole.options[i].selected)
        numSelected++;
        }
        if (numSelected > 5)
        {
        alert("Maximum selection Five roles only.Remove some roles");
        theForm.Ltrole.focus();
        return (false);
        }
      
         
        
             // check if no drop down or first drop down is selected, if so, invalid selection
        if (theForm.DDindus.selectedIndex <= 0)
        {
            alert("Please select Industry.");
            theForm.DDindus.focus();
            return (false);
        }
        
        if (theForm.txtresume.value == "")
        {
            alert("Please Paste your resume.");
            theForm.txtresume.focus();
            return (false);
        }
        
    

    

       
      
      
    }
