function formValidate(realTime){var inp=document.getElementById('inputbox');var len=inp.value.length;if(realTime){document.getElementById('counter').innerHTML=len;if(len>255)inp.value=inp.value.substring(0,255);document.getElementById('formMessage').innerHTML=(len>140)?'Twitter\'s message limit is 140 characters. To post your cryptotwit to Twitter, it must be shorter.':'&nbsp;';}else
{if(!len){alert("Please enter some text to encrypt in the \"What would you like to encrypt?\" box.");inp.focus();return false;}else
{var count=0;for(var i=0;i<len;i++){var char=inp.value.charAt(i);if((char>="a"&&char<="z")||(char>="A"&&char<="Z"))count++;}if(count<32){alert("Your cryptotwit only has "+count+" encrypt-able character"+((count==1)?"":"s")+". A cryptotwit like this will be too difficult to solve. Please make your message a bit longer.");inp.focus();return false;}}}}