function checkFields()
{
	m="";
	if (document.mailingList.full_name) {
		if (document.mailingList.full_name.value=='') {
			m+="Please enter your full name.\n";
		}
	}
	if (document.mailingList.phone) {
		if (document.mailingList.phone.value=='' || document.mailingList.phone.value=='xxx-xxx-xxxx') {
			m+="Please enter a phone number.\n";
		} else if (	document.mailingList.phone.value.charAt(3)!='-' || 
					document.mailingList.phone.value.charAt(7)!='-' || 
					document.mailingList.phone.value.length!=12) {
			m+="Please format your phone number.\nxxx-xxx-xxxx\n";
		}
	}
	if (document.mailingList.email) {
		if (document.mailingList.email.value=='') {
			m+="Please enter an email address.\n";
		} else if (document.mailingList.email.value.indexOf("@")<2 || document.mailingList.email.value.indexOf(".")==-1) {
			m+="Please enter a valid email address. (john@smith.com)\n";
		}
	}
	if (document.mailingList.case_description) {
		if (document.mailingList.case_description.value=='') {
			m+="Please provide a case description.\n";
		}
	}
	
	if (m !='') {
		alert(m); return false;
	} else {
		return true;
	}
}

function toggleLayer(whichLayer)
{
	if (document.getElementById)
	{
		var changedState = document.getElementById(whichLayer).style;
		changedState.display = changedState.display?"":"block";
	}
	else if (document.all)
	{
		var changedState = document.all[whichLayer].style;
		changedState.display = changedState.display?"":"block";
	}
	else if (document.layers)
	{
		var changedState = document.layers[whichLayer].style;
		changedState.display = changedState.display?"":"block";
	}
	window.location.hash = "directAnchor";
}