function CheckInput_Contact(TheForm) {
	if (TheForm.FirstName.value == '') {
		TheForm.FirstName.focus();
		alert('Your First Name is required');
		return false;
	} else if (TheForm.LastName.value == '') {
		TheForm.LastName.focus();
		alert('Your Last Name is required');
		return false;
	} else if (TheForm.Email.value == '') {
		TheForm.Email.focus();
		alert('Your Email Address is required');
		return false;
	} else if (!(/^.+@.+\..{2,4}$/.test(TheForm.Email.value))) {
		TheForm.Email.focus();
		alert('The Email Address entered is not in the proper format.');
		return false;
	} else if (TheForm.captcha_code.value == '') {
		TheForm.captcha_code.focus();
		alert('The security code is required.');
		return false;
	}
	return true;
}   

$('#Country').live('change', function() {
	Country = $(this).val();
	if (Country == 'USA') {
		$('div#StateDiv1').html('State:');
	} else if (Country == 'Canada') {
		$('div#StateDiv1').html('Province:');
	} else {
		$('div#StateDiv1').html('Region:');
	}
		
	$('div#StateDiv2').load('/modules/Contact/loadState.php', 'Country=' + Country);
});



