function reloadPage(){
	document.searchForm.target='_self';
	document.searchForm.action='index.cfm';
	document.searchForm.submit();
}
function do_submit() {
	submitForm = checkSubs(document.thisForm.suburb_id.options);
	if (submitForm == true){
		document.thisForm.submit();
	}
}
function checkSubs(o){			
	if (document.thisForm.surRad[document.thisForm.surRad.selectedIndex].value != 0){
		var nr = 0;
		var maxnr = 3;//the limit
		for(var i=0;i<o.length;i++){
			nr=(o[i].selected)?nr+1:nr;
		}
	
		if(nr>maxnr){
			alert('You have selected '+nr+' suburbs. Please limit to 3 to use the surrounding suburb search');
			//document.thisForm.surRad.checked = false;
			return false;
		}
		else if (nr == 0){
			alert('Please select at least one suburb');
			//document.thisForm.surRad.checked = false;
		}
		else {
			return true;
		}
	}
	else {
		return true;
	}
}