<script>
// <![CDATA[
jQuery(document).ready(function() {
jQuery('#thelist_quote').hide();
jQuery("#et_contact_submit").click(function(){
if(jQuery('input#et_contact_name').val()==('Enter Your Name') || jQuery('input#et_contact_name').val()==''){
alert('Santa won\'t know who you are if you don\'t enter your name.');
}
else {
if(/^[a-zA-Z\'/ ]+$/.test(jQuery('input#et_contact_name').val())){
var name = jQuery('input#et_contact_name').val();
}
else {
alert('No funny business. Names only. Santa\'s watching you.');
die();
}
function rand(min, max) {
var offset = min;
var range = (max - min) + 1;
var randomNumber = Math.floor( Math.random() * range) + offset;
return randomNumber;
}
var items = Array(
'You did what, ' + name + '?! You\'re on the naughty list for sure.',
'Well, ' + name + ', you\'ve been a good kid this year. Santa has lots of good stuff for you this Christmas!',
name + ', treating kittens like that is getting you coal in your stocking this year.',
'Wow ' + name + ', rescuing those Orphans from that burning building got you a free ride on Santa\'s Nice List for years to come!',
name + ', Santa has something extra special for you this year! You\'re at the top of the Nice List.',
'So far you are on the "Nice" list, but you\'d better watch out... Santa\'s checking his list twice!',
'Well ' + name + ', right now your teetering on Santa\'s Nice List. You could help around the house more instead of watching so much television.',
name + ', you have been sooooo nice that you make "The CareBears" look selfish.',
'You are currently #' + rand(1,20000) + ' on Santa\'s Nice List. Not too shabby considering everyone in the entire world! Keep up the good work!',
'Tisk, Tisk, you got Dissed! ' + name + ', Santa noticed that red stapler you stole from your co-worker\'s office desk last month.',
name + ' shouldn\'t you be working, instead of surfing the web during office hours... NAUGHTY LIST FOR YOU!',
'Hmmmm... you\'ve got a couple weeks left to redeem yourself ' + name +'. Right now, you are on the Naughty List!',
'Whoa ' + name +'! You need to start thinking about packing your bags if you don\'t change your ways soon. Santa is more likely to hunt you down than bring you a present.',
'Santa\'s been watching you ' + name +', and right now you have a very large coal mine coming your way.',
'You better start making some room for the huge lump of coal your about to get, or either start cleaning up your act ' + name +'!',
name + ' do you kiss your Mom with that mouth?!<br /> Santa puts kids on the Naughty List for cursing, and frankly you\'ve got a mouth like a Sailor!<br />Naughty List for you.',
'2 words: Naughty List. You know why ' + name +'.',
'2 words: Nice List. Mother Teresa has nothing on you ' + name +'.',
name + ', you REALLY put ex-lax in Santa\'s cookies?! Don\'t expect to see your name on the Nice List anytime soon.',
name + ', you must have been EXTRA nice this year. Santa has a smiley face next to your name on the Nice List!',
'Now, ' + name +'. Santa knows you\'re trying, but it still doesn\'t make up for last year. You\'re on the Naughty List.',
'Ho ho ho! Nice try, ' + name +'. Thought you could slip one past the Big Guy, huh? Naughty.',
'In the words of Larry David, you\'ve been "pretty, pretty, pretty, pretty good" this year.',
name + ', do you really think Santa is unaware of your inappropriate Facebook posts? Naughty.',
'Way to help that old lady, ' + name +'. Santa will certainly add you to the Nice List this year.',
'You\'ll be getting a big gift this year! A big, big box of packaged air. That\'s right ' + name + ' you\'re on the Naughty List.',
'Well, ' + name + ', I don\'t know how you pulled it off, but you actually made the Nice List.',
'Congratulations, ' + name + '! You\'ve made the Nice List! JUST KIDDING. You\'ve been a very bad, bad person.',
'I must say, ' + name + '. You\'ve really improved last year\'s performance and made the cut on the Nice List!',
'There\'s a reason Santa created a Naughty List. And you\'re just one of those reasons ' + name + '.',
'The world could use more people like you, ' + name + '. Keep up the good work, and you\'ll make the Nice List every year!'
);
randomNumber = rand(0, items.length - 1);
randomItem = items[randomNumber];
jQuery('#thelist_quote h3').empty();
jQuery('#thelist_quote h3').append(randomItem);
jQuery('#thelist_quote').show('fast');
}
})
});