var email_alerts_display = false;
function showHideEmailAlerts() {
	if (email_alerts_display == false) {
		//Effect.SlideDown('email_alerts', { duration:.5 } );
		email_alerts_display = true;
		document.getElementById('email_alerts').style.display = 'block';				
	} else {
		//Effect.SlideUp('email_alerts', { duration:.5 } );
		email_alerts_display = false;
		document.getElementById('email_alerts').style.display = 'none';
	}
}

function emailAlertSignup() {
	if ((validate_required(document.getElementById('alert_email'),"Please enter an email address")==false) ||(validate_email(document.getElementById('alert_email'),"Please enter a valid email address")==false) ) {
		document.getElementById('alert_email').focus();
	} else {
		Element.hide('email_alerts');
		Element.show('email_alerts_thankyou');
		setTimeout("Effect.SlideUp('email_alerts_thankyou', { duration:.5 } )", 3000);

		var signup_url = 'http://tsiauth-l1/emailer/email_alert_signup.cfm?email=' + document.getElementById('alert_email').value;
		document.getElementById('ajaxish_email').src = signup_url;
	}
}
