Saturday, July 3, 2010

“Psychology takes a positive turn” plus 1 more

“Psychology takes a positive turn” plus 1 more


Psychology takes a positive turn

Posted: 02 Jul 2010 09:00 PM PDT

'); external.close(); } }); } }); // Close the "print this" popup. $("#print_this__popup__close").click(function() { print_this__popup__status = popup_close(print_this__popup__status, 'print_this__popup'); }); } // Function to validate recipient email addresses function validate_emails(emails) { var good_emails = ''; if (emails.search(',') != -1) { var emails_array = emails.split(','); for (var i in emails_array) { var email = emails_array[i].replace(/\s+/g, ''); if (email) { good_emails += email.match(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i) + ','; } else { continue; } } } else { var email = emails.replace(/\s+/g, ''); if (email) { good_emails += email.match(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i); } } if (good_emails.search('null') == -1) { return good_emails; } else { return false; } } function email_article() { var email_this__popup__status = false; // Load the "email this" popup. $(".email_this").click(function() { popup_center('email_this__popup') email_this__popup__status = popup_load(email_this__popup__status, 'email_this__popup'); }); // Close the "email this" popup. $("#email_this__popup__close").click(function() { email_this__popup__status = popup_close(email_this__popup__status, 'email_this__popup'); // Clear the errors. empty_errors(); }); // Send an email $('#email_this__popup__body__form__submit').click(function() { // Clear the errors. empty_errors(); var status = true; var error_message = ''; var url = window.location.href; url = url.replace(/\?clear_cache/g, ''); // Deal with email addresses. var to = $('#email_this__popup__body__form__to').val(); if (to.length == 0) { error_message += '*There are no recipient email addresses entered.
'; status = false; } else if (to.length > 500) { error_message += '*The recipient emails addresses are, in total, longer than 500 characters long.
'; status = false; } else { var recipients = validate_emails(to); if (!recipients) { error_message += '*Not all of the recipient email addresses are valid.
'; status = false; } } // Deal with sender's name var sender_name = $('#email_this__popup__body__form__sender__name').val(); if (sender_name.length == 0) { error_message += "*You have not entered the sender's name.
"; status = false; } else if (sender_name.length > 64) { error_message += "*The sender's name is over 64 characters long.
"; status = false; } else if (sender_name.search(/[^\w\s'"-]/) != -1) { error_message += "*Invalid characters were found in the sender's name.
"; status = false; } // Deal with the sender's email address. var sender_email = $('#email_this__popup__body__form__sender__email').val(); if (sender_email.length == 0) { error_message += "*You have not entered the sender's email address.
"; status = false; } else if (sender_email.length > 64) { error_message += "*The sender's email address is over 64 characters long.
"; status = false; } else { var sender = validate_emails(sender_email); if (!sender) { error_message += "*The sender's email address is not valid.
"; status = false; } } var article_name = "Psychology takes a positive turn"; var message = $('#email_this__popup__body__form__message').val(); if (message.length > 5000) { error_message += "*Your message is over 5000 characters.
"; status = false; } mg_ctype = 131; mg_cid = 305996; if (status) { // Get the shortened version of the URL $.ajax({ async: false, type: 'POST', url: '/shorty/api/get_shorty/', data: { url: url }, cache: false, dataType: 'text', success: function (result) { short_url = result; } }); $.ajax({ type: 'POST', url: '/api/email/article/', data: { url: short_url, article_name: article_name, recipients: recipients, sender_name: sender_name, sender_email: sender_email, message: message, ctype: mg_ctype, cid: mg_cid }, cache: false, dataType: 'json', success: function(mg_json) { if (mg_json.status == 'success') { var message = 'Thanks ' + sender_name + '.
'; message += mg_json.message; $('#email_this__popup__body').empty().html(message); $('#email_this__popup__body').addClass('success'); } else { $('#email_this__popup__container').css({'overflow': 'scroll'}); $('#email_this__popup__error__body').empty().html(mg_json.message); $('#email_this__popup__error').show(); } } }); } else { $('#email_this__popup__container').css({'overflow': 'scroll'}); $('#email_this__popup__error__body').empty().html(error_message); $('#email_this__popup__error').show(); } }); }

Five Filters featured article: Headshot - Propaganda, State Religion and the Attack On the Gaza Peace Flotilla. Available tools: PDF Newspaper, Full Text RSS, Term Extraction.

How Our Gloom is Hurting the Economic Recovery

Posted: 02 Jul 2010 11:09 PM PDT

It's psychology, stupid. Not since World War II has an economic recovery been so hobbled by poor confidence. Every recession leaves a legacy of anxiety and uncertainty. But the present residue is exceptional, because the recession was savage and—more important—its origins (housing bubble, financial crisis) were unfamiliar. People are supersensitive to the latest news, for good or ill, because their vision of the future is blurred, and their bias is gloomy. Having underrated economic risk during the boom, Americans may be overrating it now. Unfortunately, perceptions can become self-fulfilling.

Five Filters featured article: Headshot - Propaganda, State Religion and the Attack On the Gaza Peace Flotilla. Available tools: PDF Newspaper, Full Text RSS, Term Extraction.

No comments:

Post a Comment