function emailHide(email, domain, display) {
	document.write('<a href=' + 'mail' + 'to:' + email + '@' + domain + '>' + display + '</a>');
}

function openHelp(theURL){
	var help=window.open(theURL,'help','width=275,height=125,toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=no,');
	help.focus();
}

function openExternal(theURL, width, height){
	var external=window.open(theURL,'external','width='+ width +',height='+ height +'');
	external.focus();
}
//684 410 for andrews map
function openMap(theURL){ 
	var help=window.open(theURL,'map','width=520,height=310,toolbar=no,location=yes,directories=no,status=no,scrollbars=no,menubar=no,resizable=no,');
	slideshow.focus();
}
function toggle ( targetId ) {
	if (document.getElementById) {
		target = document.getElementById( targetId );
				if (target.style.display == 'none') {
						target.style.display = '';
				} else {
					target.style.display = 'none';
				}
	}
}


function subsecList(list){
	var i = 1
	clearList = getElement("subsec");
	clearList.length = 1;
	switch(list.value){
		case "Accounting":addToList("Accounts Payable");addToList("Accounts Receivable");addToList("Analysis & Planning");addToList("Audit & Risk");addToList("Bookkeeping");addToList("Credit");addToList("Finance Control, Mgmt, Directorship");addToList("Financial & Management Accounting");addToList("Part Qualified & Assistant Accounting");addToList("Payroll");addToList("Procurement & Inventory");addToList("Prof. Serv - Audit & Risk");addToList("Prof. Serv - Business Services");addToList("Prof. Serv - Consulting");addToList("Prof. Serv - Corp. Advisory & Forensic");addToList("Prof. Serv - Insolvency & Corp. Recovery");addToList("Prof. Serv - IT Sys. Audit & Consulting");addToList("Prof. Serv - Superannuation");addToList("Prof. Serv - Taxation");addToList("Systems Accounting");addToList("Taxation");addToList("Treasury & Corporate Finance");addToList("Other Accounting");break;
		case "Admin/Office Support":addToList("Administration");addToList("Data Entry");addToList("Office Management");addToList("Personal / Exec. Assistant & Secretarial");addToList("Reception");addToList("Sales Support");addToList("Other Office Support");break;
		case "Automotive":addToList("Engineering");addToList("Finance & Insurance");addToList("Hire, Leasing & Fleet Management");addToList("Manufacturing");addToList("Product Development");addToList("Sales & Account Management");addToList("Senior Management");addToList("Service & Accident Repair");addToList("Technical & Product Support");addToList("Other Automotive");break;
		case "Community":addToList("Fundraising & Development");addToList("Local Government");addToList("Policy, Planning & Research");addToList("Program Coordination & Management");addToList("Social Work");addToList("Volunteer");addToList("Other Community");break;
		case "Construction, Building & Architecture":addToList("Construction Management");addToList("Contracts Administration");addToList("Estimator");addToList("Project Management");addToList("Sup, Foreman & Site Mgmt");break;
		case "Construction":addToList("Architecture");addToList("BCA Consultancy");addToList("Drafting");addToList("Interior Design");addToList("Landscape Architecture");addToList("Planning");addToList("Project Management");addToList("Surveying");break;
		case "Customer Service & Contact Centre":addToList("Contact Centre");addToList("Customer Service");addToList("Help Desk");addToList("Operations & Management");addToList("Team Leader");addToList("Telemarketing & Telesales");addToList("Other Customer Service & Contact Centre");break;
		case "Defence & Essential Services":addToList("Air Force");addToList("Ambulance, Fire, Police & Prisons");addToList("Army");addToList("Navy");addToList("Other Defence & Essential Services");break;
		case "Education":addToList("Administration / Operations");addToList("Childcare");addToList("Early Childhood");addToList("Primary");addToList("Secondary");addToList("Special Needs");addToList("University & TAFE");addToList("Vocational Training");addToList("Other Education");break;
//		case "Engineering":addToList("Administrative & Technical Support");addToList("Aeronautics");addToList("Automotive");addToList("Building Services");addToList("CAD / CAE");addToList("Chemical / Process");addToList("Civil / Structural");addToList("Drafting");addToList("Electrical / Electronics");addToList("Industrial");addToList("Management & Supervisory");addToList("Mechanical / Piping");addToList("Plant / Facilities / Maintenance");addToList("Product / Manufacturing");addToList("Project Management");addToList("Resources, Oil, Mining & Gas");addToList("Specialist / Other");addToList("Other Engineering");break;
		case "Engineering":addToList("Building Services");addToList("CAD / CAE");addToList("Civil / Structural");addToList("Electrical / Electronics");addToList("Management & Supervisory");addToList("Mechanical / Piping");addToList("Project Management");addToList("Other Engineering");break;
		case "Executive":addToList("Accounting & Finance");addToList("Consulting & Professional Services");addToList("Engineering & Manufacturing");addToList("Executive Support");addToList("Human Resources");addToList("Insurance & Financial Services");addToList("IT & Telecommunications");addToList("Legal & Corporate Affairs");addToList("Marketing & PR");addToList("Sales");addToList("Senior Management & Board");addToList("Other Executive");break;
		case "Financial Services":addToList("Business & Corporate Banking");addToList("Business / Credit Analysis");addToList("Client Services");addToList("Collections");addToList("Data Entry");addToList("Financial Planning");addToList("Funds Management");addToList("Investment Banking");addToList("Mortgages");addToList("Retail Banking");addToList("Stockbroking");addToList("Superannuation");addToList("Treasury");addToList("Other Financial Services");break;
		case "Graduate":addToList("Accounting");addToList("Automotive");addToList("Community");addToList("Construction & Architecture");addToList("Customer Service & Contact Centre");addToList("Defence & Essential Services");addToList("Education");addToList("Engineering");addToList("Financial Services");addToList("Healthcare");addToList("Hospitality, Travel & Tourism");addToList("Human Resources & Recruitment");addToList("Insurance");addToList("IT & Telecommunications");addToList("Legal");addToList("Logistics, Transport & Supply");addToList("Manufacturing");addToList("Marketing");addToList("Media, Advertising, Arts & Entertainment");addToList("Office Support");addToList("Personal & Other Services");addToList("PR & Communications");addToList("Property & Real Estate");addToList("Retail");addToList("Sales");addToList("Scientific");addToList("Trades");addToList("Other Graduate");break;
		case "Healthcare":addToList("Administration");addToList("Aged Care");addToList("Critical Care");addToList("Dental");addToList("Dietary");addToList("Medical Imaging");addToList("Medical Practitioner");addToList("Mental Health");addToList("Midwifery");addToList("Natural Therapies");addToList("Nursing: EN & Div. 2");addToList("Nursing: RN & Div. 1");addToList("Oncology");addToList("Pathology");addToList("Patient Services");addToList("Pharmacy");addToList("Physiotherapy & Occupational Therapy");addToList("Other Healthcare");break;
		case "Hospitality, Travel  & Tourism":addToList("Airline");addToList("Bar & Beverage");addToList("Chef");addToList("Cook");addToList("Hotel & Gaming");addToList("Kitchen / Sandwich Hand");addToList("Management & Supervising");addToList("Tourguiding & Tour Operators");addToList("Travel Consultancy");addToList("Waitstaff");addToList("Other Hospitality, Travel & Tourism");break;
		case "Human Resources & Recruitment":addToList("Change Management");addToList("HR - General");addToList("Management");addToList("Occupational Health & Safety");addToList("Recruitment Consulting");addToList("Recruitment Resources");addToList("Remuneration");addToList("Support");addToList("Training & Development");addToList("Other Human Resources & Recruitment");break;
		case "Insurance":addToList("Broking");addToList("General Insurance");addToList("Health Insurance");addToList("Life Insurance");addToList("Risk Management");addToList("Workers Compensation");addToList("Other Insurance");break;
		case "IT & Telecommunications":addToList("Business / Systems Analysis");addToList("Database Development & Administration");addToList("Hardware Engineering");addToList("Helpdesk & Desktop Support");addToList("Information Architecture");addToList("Management");addToList("Network / Systems Administration");addToList("Project Management");addToList("Software Development");addToList("System Architecture");addToList("Technical Writing & Desktop Publishing");addToList("Testing & QA");addToList("Training");addToList("Web Development");addToList("Other IT & T");break;
		case "Legal":addToList("Administration / Legal Secretary");addToList("Building & Construction Law");addToList("Commercial");addToList("Corporate / Mergers & Acquisitions");addToList("Employment & Industrial Relations");addToList("Family");addToList("Financial Services");addToList("Insurance");addToList("Law Clerk / Paralegal");addToList("Litigation");addToList("Partnership & Management");addToList("Patent & IP");addToList("Personal Injury");addToList("Property");addToList("Tax");addToList("Other Legal");break;
		case "Logistics":addToList("Administration");addToList("Business Development & Sales");addToList("Customer Support");addToList("Importer / Exporter");addToList("Logistics");addToList("Management");addToList("Operations");addToList("Planning");addToList("Purchasing");addToList("Shipping Lines, Freight Fwd & Customs");addToList("Supply Chain");addToList("Trade Finance");addToList("Transport");addToList("Warehouse & Distribution");addToList("Other Logistics Transport & Supply");break;
		case "Manufacturing":addToList("Assembly Line");addToList("Engineering");addToList("Fitting & Machining");addToList("Industrial Design & Product Development");addToList("Management & Supervising");addToList("Planning & Scheduling");addToList("Process Work");addToList("Purchasing");addToList("QA / QC");addToList("Stores & Warehousing");addToList("Other Manufacturing");break;
		case "Marketing":addToList("Brand Management");addToList("Category Management");addToList("Channel & Segment Management");addToList("Direct Marketing");addToList("Management");addToList("Market Research & Analysis");addToList("Marketing Communications");addToList("Marketing Strategy");addToList("Product Management & Development");addToList("Trade Marketing");addToList("Other Marketing");break;
		case "Media, Advertising, Arts & Entertainment":addToList("Advertising - Account Management");addToList("Advertising - Creative Services");addToList("Design");addToList("Journalism & Copywriting");addToList("Management");addToList("Media Booking & Traffic");addToList("Museum & Arts Administration");addToList("Performance");addToList("Photography");addToList("Publishing");addToList("TV, Film & Radio");addToList("Other Media, Advertising, Arts & Enter't");break;
		case "Personal & Other Services":addToList("Aged Care");addToList("Beauty Therapy");addToList("Childcare");addToList("Cleaning");addToList("Courier, Driving, Delivery");addToList("Fitness");addToList("Floristry");addToList("Hairdressing");addToList("Handyperson / Caretaking");addToList("Security");addToList("Veterinary & Petcare");addToList("Other Personal & Other Services");break;
		case "PR & Communications":addToList("Community Relations");addToList("Consumer PR & Publicity");addToList("Corporate Affairs & Issues Management");addToList("Corporate Marketing Communications");addToList("Government, Public & Regulatory Affairs");addToList("Internal Communications");addToList("Investor Relations");addToList("Media Relations");addToList("Sponsorship & Event Management");addToList("Other PR & Communications");break;
		case "Property & Real Estate":addToList("Asset Management");addToList("Leasing");addToList("Management");addToList("Prop Mgmt: Comm'l");addToList("Prop Mgmt: Resid'l");addToList("Sales - Commercial");addToList("Sales - Residential");addToList("Valuation");addToList("Other  Property & Real Estate");break;
		case "Retail":addToList("Buying, Planning & Product Development");addToList("Marketing & Visual Merchandising");addToList("Multi-store Management");addToList("Sales");addToList("Senior Management");addToList("Store & Department Management");addToList("Other Retail");break;
		case "Sales":addToList("Accounting, Financial Products & Services");addToList("Advertising, Media & Arts");addToList("Construction, Engineering & Manufacturing");addToList("FMCG");addToList("IT & Telecommunications");addToList("Logistics, Transport & Supply");addToList("Management");addToList("Medical, Pharmaceutical & Scientific");addToList("Other Sales");break;
		case "Scientific":addToList("Biotech");addToList("Environmental");addToList("Food");addToList("Pharmaceutical");addToList("QA & QC");addToList("Research & Development");addToList("Other Scientific");break;
		case "Self-employment":addToList("Work from Home");addToList("Other Self-Employment");break;
		case "Trades":addToList("Apprenticeships, Cadets & Trainees");addToList("Boilermaking");addToList("Bricklaying");addToList("Butchery & Bakery");addToList("Carpentry, Joinery & Cabinetmaking");addToList("CNC");addToList("Concrete & Formworking");addToList("Demolition & Excavation");addToList("Electrical");addToList("Fashion");addToList("Fitting, Welding & Metalworking");addToList("Heating, Ventilation & Air Conditioning");addToList("Landscaping & Horticulture");addToList("Mechanical & Automotive");addToList("Painting");addToList("Plumbing");addToList("Printing");addToList("Other Trades");break;
		case "Other":addToList("Aviation");addToList("Textile, Clothing & Footwear");addToList("Other");break;
	}
}

function getElement(id){if(document.getElementById){return document.getElementById(id);}else if(document.all){return document.all[id];}else if(document.layers){var name=id;var index=name.indexOf('_');if(index>=0){var len=name.length;name=name.substring(0,index)+":"+name.substring(index+1,len);}return document.forms[1].elements[name];}return id;}
function addToList(text){list = getElement("subsec");list.length++;list.options[list.length-1].value=text;list.options[list.length-1].text=text;}
//function addToListTop(text,value){list.length++;for(i=list.length-1;i>0;i=i-1){list.options[i].value=list.options[i-1].value;list.options[i].text=list.options[i-1].text;}list.options[0].value=value;list.options[0].text=text;}