function RoadworksSearch_PageLoad()
{
	if (document.getElementById && document.getElementsByTagName)
	{
		var userControl = document.getElementById('roadworksSearch');
		if (userControl)
		{
			var formFields = userControl.getElementsByTagName('input');
			if (formFields && formFields.length == 3)
			{
				// dependent fields enabled/disabled depending on radio button selection
				var dropDowns = userControl.getElementsByTagName('select');
				var specify;
				if (dropDowns && dropDowns.length == 2) specify = dropDowns[1];
				
				formFields[0].onclick = function() { formFields[2].disabled = true; if (specify) specify.disabled = true; }
				formFields[1].onclick = function() { formFields[2].disabled = false; if (specify) specify.disabled = false; }
				
				if (specify) specify.focus(); else formFields[2].focus();
			}
		}
	}
}

$(RoadworksSearch_PageLoad);