<!--
	function doDisplayCA(obj)
	{
		var name = obj.name
		if (obj.checked == "1")
		{
			document.getElementById("catchmentArea").style.display= "block";  
		}
		else
		{
			document.getElementById("catchmentArea").style.display= "none";  
			// unckeck the allUK checkbox
			if (document.form1.AllUKCounties )
			{
				document.form1.AllUKCounties.checked = 0;
				selectNational( document.form1.AllUKCounties )
			}
		}
	}

	// Display Place of Work
function doDisplayPW(obj)
{
		if (obj.checked == "1")
		{
			document.getElementById("placeOfWork").style.display= "block";  
		}
		else
		{
			document.getElementById("placeOfWork").style.display= "none";  
		}
                
}

function selectNational(obj)
{
	var checked 
	checked = obj.checked
	if (checked == "1")
	{
		document.getElementById("countyList").style.display= "none";  
	}
	else
	{
		document.getElementById("countyList").style.display= "block";  
	}
}



function highlightRow(obj)
{
			obj.parentNode.style.backgroundColor = '#cccccc'; 
}
function highlightRowCheckbox(obj)
{
	if (obj.checked == true)
		obj.parentNode.parentNode.style.backgroundColor = '#cccccc'; 
	else
		obj.parentNode.parentNode.style.backgroundColor = '#ffffff';	
}


function doValidateCA()
{
	var error = false
	var errorMsg =  ""
	var form = document.form1

	errorMsg = validateSingleVenue()
	if (errorMsg.length > 0) error = true;
	if (form.ca.checked == '1' )
	{
		// nothing to do here - yet
	}

	if (error)
	{
		alert(errorMsg)
		return false
	}
	else
	{
		return true
	}
}

function validateSingleVenue()
{//  ensure both or neither county and postcode is assigned
	var form = document.form1
	var errorMsg = "";

	if (form.singleLocation.checked == '1' )
	{
		if (form.venueCounty.selectedIndex > 0 )
		{//  county selected but no postcode
			if (form.venuePostcodeA.value.length == 0 || form.venuePostcodeB.value.length == 0 )
			{
				errorMsg = " - Please enter your Postcode"
			}
			if (validateCountyMenu(form.venueCounty) == false )
			{
				errorMsg = " - Please enter your Postcode"
			}
		}		
		else
		{// county not selected
			if (form.venuePostcodeA.value.length > 0 || form.venuePostcodeB.value.length > 0 )
			{
				errorMsg = " - Please select a county for the Single Location"
			}
			else
			{ // neither county not postcode selected
				errorMsg = " - The Single Location option is selected but not completed.  Please unselect or complete it."
			}
		}
	}
	else
	{
		// ensure that the catchment area checkbox is checked
		if (form.ca.checked == '0' )
		{
			errorMsg = " - The location where the Service is to be performed has not been specified. Please correct and resubmit."
		}
		
	}
		return errorMsg
}
-->