function toggleConsultationForm()
{
	setDisplay = (document.getElementById('homepageConsultationForm2').style.display == 'none') ? 'block' : 'none';
	document.getElementById('homepageConsultationForm2').style.display = setDisplay;
}

function checkConsultationForm1()
{
	vv = '';

	if ((document.consultationForm.YourName.value == '') || (document.consultationForm.YourName.value == 'YOUR NAME')) {vv += 'Your Name\n';}

	var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
	if (!document.consultationForm.YourEmail.value.match(re)) {vv += 'Valid Email Address\n';}

	if ((document.consultationForm.YourPhone.value == '') || (document.consultationForm.YourPhone.value == 'PHONE NUMBER')) {vv += 'Phone Number\n';}

	if (vv != '')
	{
		alert('Please complete the following:\n\n' + vv);
	}
	else
	{
		document.getElementById('consultationContinue').style.display = 'none';
		document.getElementById('consultationMore').style.display = 'block';
	}
}

function checkConsultationForm()
{
	vv = '';

	if ((document.consultationForm.YourName.value == '') || (document.consultationForm.YourName.value == 'YOUR NAME')) {vv += 'Your Name\n';}

	var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
	if (!document.consultationForm.YourEmail.value.match(re)) {vv += 'Valid Email Address\n';}

	if ((document.consultationForm.YourPhone.value == '') || (document.consultationForm.YourPhone.value == 'PHONE NUMBER')) {vv += 'Phone Number\n';}

	if (vv != '')
	{
		alert('Please complete the following:\n\n' + vv);
	}
	else
	{
		if (document.consultationForm.cu_address1.value == 'STREET ADDRESS') {document.consultationForm.cu_address1.value = '';}
		if (document.consultationForm.cu_city.value == 'CITY') {document.consultationForm.cu_city.value = '';}
		if (document.consultationForm.cu_zip.value == 'ZIP CODE') {document.consultationForm.cu_zip.value = '';}

		document.consultationForm.submit();
	}
}


