<!-- //
function populateSuburb(inForm,selected) {
	inForm.postcode.value = "";
	var selectedArray = eval(selected + "Array");
	while (selectedArray.length < inForm.suburb.options.length) {
		inForm.suburb.options[(inForm.suburb.options.length - 1)] = null;
	}
	for (var i=0; i < selectedArray.length; i++) {
		eval("inForm.suburb.options[i]=" + "new Option" + selectedArray[i]);
	}
	if (inForm.state.options[0].value == '') {
		inForm.state.options[0]= null;
		if ( navigator.appName == 'Netscape') {
			if (parseInt(navigator.appVersion) < 4) {
				window.history.go(0);
			}
			else {   	
				if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
					window.history.go(0);
    	        }
			}
		}
	}
}
function genSubmenu(form, elt) {
	var html='';
	if (form != null) {
		if (form.searchoption.selectedIndex > 0) {
			switch (form.searchoption.selectedIndex) {
				case 1:
					html+='<input type="text" name="surname" style="width: 240px">';
				break
				case 2:
					html+='<input type="text" name="company" style="width: 240px">';
				break
				case 3:
					html+='<select name="specialty" OnChange="checkMenu()" style="width: 240px">';
					html+='<option>-- Choose a type or speciality --</option>';
					html+='<option>Dental Prosthetist</option>';
					html+='<option>Endodontist</option>';
					html+='<option>General Dentist</option>';
					html+='<option>Hygienist</option>';
					html+='<option>Oral and Maxillofacial Surgeon</option>';
					html+='<option>Oral Health Therapist</option>';
					html+='<option>Orthodontist</option>';
					html+='<option>Paediatric Dentist</option>';
					html+='<option>Paedodontist</option>';
					html+='<option>Periodontist</option>';
					html+='<option>Prosthodontist</option>';
					html+='<option>Thereapist</option>';
					html+='</select>';
				break
				case 4:
					html+='<select name="type" OnChange="document.location.href=this.options[this.selectedIndex].value" style="width: 240px">';
					html+='<option>-- Choose a treatment type --</option>';
					html+='<option value="searchbytreatment.lasso?treatmenttype=implants">Implants</option>';
					html+='<option value="searchbytreatment.lasso?treatmenttype=tooth whitening">Tooth Whitening</option>';
					html+='<option value="searchbytreatment.lasso?treatmenttype=laserbrite">LaserBrite</option>';
					html+='<option value="searchbytreatment.lasso?treatmenttype=britesmile">BriteSmile</option>';
					html+='<option value="searchbytreatment.lasso?treatmenttype=quicksmile">QuickSmile</option>';
					html+='<option value="/cerec">CEREC</option>';
					html+='<option value="/zoom">Zoom! Advanced Power</option>';
					html+='</select>';
				break
				case 5:
					html+='<input type="text" name="languages" style="width: 240px">';
				break
			}
			html+='<input type="image" name="search" src="images/searchbutton.gif" alt="Perform advanced search" align="top">';
		}
		document.getElementById('what').innerHTML=html;
	}
}
// -->

