$(document).ready(function() {
    setHints();
    $("#mc-embedded-subscribe").click(function() {
		var newsletter_email = $('#mce-EMAIL').val();
		if( /(.+)@(.+){2,}\.(.+){2,}/.test(newsletter_email) ){
			return true;
		} else {
			alert('LaunchHype: Please enter a valid email.');
			return false;
		};
    });
});
var setHints = function()
{
    $('#mce-EMAIL').attachHint('Enter your email to be notified when more info is available');
};
var resetInput = function(){
    $('input, textarea').each(function() {
        $(this).val('').text('');
    });
};
