regions=new Array(
		"NSW",
			"Sydney Region",
				"Eastern Suburbs",
				"Forest District",
				"Hawkesbury",
				"Hills District",
				"Inner West",
				"North Shore - Lower",
				"North Shore - Upper",
				"Northern Beaches",
				"Parramatta & Surrounds",
				"South Western Sydney - Canterbury/Bankstown",
				"South Western Sydney - Liverpool/Fairfield",
				"South Western Sydney - Macarthur Region",
				"South Eastern Sydney",
				"St George",
				"Sutherland & Sydney City",
				"Western Sydney - Blacktown & Surrounds",
				"Western Sydney - Blue Mountains & Surrounds",
				"Western Sydney - Penrith & Surrounds",
				"",
			"Newcastle & Hunter Valley",
				"Hunter Valley - Lower",
				"Newcastle & Region",
				"Hunter Valley - Upper",
				"",
			"Central & North Coasts",
				"Central Coast & Region",
				"Mid-North Coast",
				"Northern Rivers",
				"Lake Macquarie East",
				"Port Stephens",
				"Lake Macquarie West",
				"Tweed Coast",
				"",
			"Illawarra & South Coast",
				"South Coast",
				"Wollongong & Illawarra",
				"Southern Highlands",
				"",
			"Regional NSW",
				"Central Tablelands",
				"North West Slopes",
				"Central West Slopes",
				"Northern Tablelands",
				"Far South West",
				"Riverina & Murray",
				"Far West",
				"Southern Tablelands",
				"Monaro / Snowy Mountains",
				"",
			"",
		"",""
);

function regionOptions() {
	var i=0;
	var mState=regions[i];
	while (mState!="") {
		i=i+1;
		mMainRegion=regions[i];
		while (mMainRegion!="") {
			//var y=document.createElement('option');
  			//y.text="---"+mMainRegion+"---";
			//y.className="mainRegion";
			//y.value=y.text;
			//document.mForm.region.add(y);
			document.write( "<option class='mainRegion'>"+"---"+mMainRegion+"---"+"</option>");

			i=i+1;
			mSubRegion=regions[i];
			while (mSubRegion!="") {
				//var y=document.createElement('option');
  				//y.text=mSubRegion;
				//y.value=y.text;
				//document.mForm.region.add(y);
				document.write("<option value='"+mSubRegion+"'"+">"+mSubRegion+"</option>");
				i=i+1; mSubRegion=regions[i];
			}
			i=i+1; mMainRegion=regions[i];
		}
		i=i+1; mState=regions[i];
	}
	return 0;
}