/*
FILE:        formScripts.js
CREATED:     18/10/2006
AUTHOR:      Iain Fraser
PROJECT:     Momentum Wealth
DESCRIPTION: These functions have been moved from inline code in various CFM files for SEO
*/

// Email Check
function emailMatchCheck (theForm, emailObject1, emailObject2)
{
	if ( emailObject1.value != emailObject2.value )
	{
		alert('The confirm email address you have provided does not match your email address.\nPlease ensure both of these fields contain your correct email address.');
		emailObject1.focus();
		return false;
	}
	return checkForm( theForm );
}

// Country Default Setting.
function setCountry ( theForm, stateVal, countryObject )
{
	if ( stateVal == 'Outside Australia' )
		countryObject.value = '';
	else
		countryObject.value = 'Australia';
}