var font_size=12;function isEmail(strValue){var objRE=/^([\w-.]+)@([\w-.]+)\.([a-zA-Z]){2,4}$/;return(strValue!=''&&objRE.test(strValue));}function isUrl(strValue){var objRE=/^http(s)?\:\/\/([^\s]+)$/;return(strValue!=''&&objRE.test(strValue));}function decreaseFont(elem){font_size=font_size-2;$(elem).style.fontSize=font_size+'px';}function checkContactForm(){if($('name').value==''){alert('Please enter your name.');return false;}if($('email').value==''){alert('Please enter your email address.');return false;}if(!isEmail($('email').value)){alert('Sorry, we don\'t understand that email address. Please double-check and re-enter it.');return false;}if($('qanda').value==''){alert('Looks like you forgot to answer our user verification question. Please answer and resubmit.');return false;}if($('message').value==''){alert('Please enter your message.');return false;}return true;}function checkCommentForm(){if($('comment_user').value==''){alert('Please enter your name.');return false;}if($('comment_user_email').value==''){alert('Please enter your email address.');return false;}if(!isEmail($('comment_user_email').value)){alert('Sorry, we don\'t understand that email address. Please double-check and re-enter it.');return false;}if($('qanda').value==''){alert('Looks like you forgot to answer our user verification question. Please answer and resubmit.');return false;}if($('comment_body').value==''){alert('Please enter your comment.');return false;}return true;}function tagAsSpam(id){new Ajax.Request('library/logic/Cottonblend.php',{onSuccess:function(r){if(r.responseText=='OK'){alert('Thanks for the spam report. We appreciate it.');}else{alert(r.responseText);}},method:'post',parameters:'func=tagAsSpam&id='+escape(id),asynchronous:true});}