function clearExample(x) {
	if (x == 'email@domain.com') {
		//alert(x);
		document.getElementById('emailAddress').value='';
	}
}

function checkAddress() {
	var eSource = document.getElementById('Source').value;
	var eCheck = document.getElementById('emailAddress').value;
	var	reEmail = RegExp('^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9})$');

		try
		{
		//Run some code here
		if (eCheck == 'email@domain.com' || reEmail.test(eCheck) == false) {
			alert('Please enter a valid email address to continue.');
			document.getElementById('emailAddress').focus();
		} else {
			AjaxLoadHtml('/mailersend-ajax.php?Source=' + eSource + '&emailAddress=' + eCheck);
			//alert('email valid');
			document.getElementById('emailSubmitted').style.display='block';
			document.getElementById('submitEmail').style.display='none';
		}
		}
		catch(err)
		{
		//Handle errors here
		return false;
		//alert(err);
		}
}