function specialist(choice,subMenu){
	var newOptions=["Select an option",""];
	//alert(choice);

	switch(choice){
		case "Property":
			newOptions = ["All","",
			"Valuations","Valuations",
			"Analytics & Research","Analytics & Research",
			"Property/Asset Management","Property/Asset Management",
			"Sales, Investments and Capital Transactions","Sales Investments and Capital Trans",
			"Leasing & Tenant Representation","Leasing & Tenant Representation",
			"Marketing","Marketing",
			"Corporate Real Estate / Advisory","Corporate Real Estate / Advisory",
			"Development","Development",
			"Funds Management","Funds Management"];
			break;
		case "Facilities Management":
			newOptions = ["All","",
			"Operations","Operations",
			"Engineering","Engineering",
			"Corporate FM","Corporate FM",
			"Project Management","Project Management",
			"Risk & Compliance","Risk & Compliance",
			"Energy Management & Sustainability","Energy Management & Sustainability",
			"Trades","Trades"];
			break;
		case "Construction":
			newOptions = ["All","",
			"Directors","Directors",
			"Project Directors","Project Directors",
			"Operations Management","Operations Management",
			"Construction Management","Construction Management",
			"Commercial Management","Commercial Management",
			"Development","Development",
			"Contracts Management","Contracts Management",
			"Project Management","Project Management",
			"Site Management","Site Management",
			"Foremen","Foremen",
			"Estimators","Estimators",
			"Procurement Management","Procurement Management",
			"Contracts Administration","Contracts Administration",
			"Quantity Surveying","Quantity Surveying",
			"Engineering","Engineering",
			"OH&S","OH&S",
			"Planning","Planning"];
			break;
		case "Architecture":
			newOptions = ["All","",
			"Architecture","Architecture",
			"Interior Design","Interior Design",
			"Urban Design","Urban Design",
			"Landscaping Design","Landscaping Design",
			"CAD/Drafting","CAD/Drafting",
			"Planning","Planning",
			"Building Surveying","Building Surveying"];
			break;
		case "Civil Construction":
			newOptions = ["All","",
			"Senior Appointments","Senior Appointments",
			"Project Management","Project Management",
			"Engineering","Engineering",
			"Quality Assurance","Quality Assurance",
			"OH&S","OH&S",
			"Contract Administration","Contract Administration",
			"Supervisors / Foreman","Supervisors / Foreman",
			"Estimating","Estimating",
			"Surveying","Surveying",
			"Quality Surveying","Quality Surveying",
			"Commercial Management","Commercial Management"];
			break;
		case "Building Services":
			newOptions = ["All","",
			"Technicians","Technicians",
			"Service Management","Service Management",
			"Sales","Sales",
			"Project Management","Project Management",
			"Engineering","Engineering",
			"Executive","Executive"];
			break;
	//Add by David Yan 7 NOV. 2007
		case "Engineering":
			newOptions = ["All","",
			"Mechanical","Mechanical",
			"Electrical Engineering","Electrical Engineering",
			"Civil Engineering","Civil Engineering",
			"Structural Engineering","Structural Engineering",
			"Traffic/Transport Engineering","Traffic/Transport Engineering",
			"Maintenance Engineering","Maintenance Engineering",
			"Project Management","Project Management",
			"Environmental Engineering","Environmental Engineering",
			"CAD/Drafting","CAD/Drafting",
			"Chemical/Process Engineering","Chemical/Process Engineering"];
			break;
		case "Finance":
			newOptions = ["All","",
			"Property Finance","Property Finance",
			"Property Accountancy","Accountancy",
			"Property Securities","Securities",
			"Property Investment Banking","Investment Banking"];
			break;
		case "Mining & Resources":
			newOptions = ["All", ""];
		case "Oil Gas & Marine":
			newOptions = ["All", ""];
		case "Sustainability":
			newOptions = ["All", ""];
	 //End Add by David Yan 7 NOV. 2007
	}
	while(subMenu.options.length > 0)subMenu.options[0] = null;
	subMenu.options.length = 0;
	for(i=0;i<newOptions.length;i+=2)
		subMenu.options[i/2] = new Option(newOptions[i],newOptions[i+1]);
}


/**
*Add by David Yan according to CR55 on 16 April 2008
*/
function specialistLocation(choice,subMenu){
	var newOptions=["Select an option",""];
	//alert(choice);

	switch(choice){
		case "AUNZ":
			newOptions = ["All","",
			"ACT","ACT",
			"NSW","NSW",
			"VIC","VIC",
			"QLD","QLD",
			"NT","NT",
			"WA","WA",
			"SA","SA",
			"TAS","TAS",
			"NZ","NZ"];
			break;
		case "ASIA":
			newOptions = ["All","",
			"China","China",
			"Hong Kong","Hong Kong",
			"India","India",
			"Indonesia","Indonesia",
			"Japan","Japan",
			"Korea","Korea",
			"Malaysia","Malaysia",
			"Singapore","Singapore",
			"Taiwan","Taiwan",
			"Thailand","Thailand",
			"Vietnam","Vietnam"];
			break;
		case "MDEST":
			newOptions = ["All","",
			"Abu Dhabi", "Abu Dhabi", 
			"Bahrain", "Bahrain", 
			"Dubai", "Dubai",
			"Egypt", "Egypt", 
			"Kuwait", "Kuwait",
			"North Africa", "North Africa", 
			"Oman", "Oman", 
			"Qatar", "Qatar",
			"Saudi Arabia","Saudi Arabia"];
			break;		
	 //End Add by David Yan 7 NOV. 2007
	}
	while(subMenu.options.length > 0)subMenu.options[0] = null;
	subMenu.options.length = 0;
	for(i=0;i<newOptions.length;i+=2)
		subMenu.options[i/2] = new Option(newOptions[i],newOptions[i+1]);
}


function subcheck(){
	if (document.quicksearch.loca.value==""){
		if (document.quicksearch.industry.value==""){
			if(document.quicksearch.job_type.value=="A"){
				alert("Please select at least one option!");
				return false;
			}
		}
	}
	return true;
}