var ta=document.createElement("textarea"); function html_entity_decode(str) { ta.innerHTML=str; //ta.innerHTML=str.replace(//g,">"); return ta.value; } wrongUsernameStr = html_entity_decode("Please use only letters, numbers, and underscores. No spaces and no more than 20 characters."); wrongEmailStr = html_entity_decode("Invalid email address. (If you don't want to give it to us, just leave it blank.)"); wrongPasswordStr = html_entity_decode("Your password must be at least five characters."); noAgeStr = html_entity_decode("Please pick one"); noGenderStr = html_entity_decode("Please pick one"); passwordsDontMatchStr = html_entity_decode("Passwords do not match."); correctUsernameStr = html_entity_decode(" is available!"); usernameUnavailableStr = html_entity_decode("Sorry, that username is already taken. Please choose another one!"); WHOOPS_NOT_FILLED_IN=html_entity_decode("Whoops! Some fields were not correctly filled in."); PLEASE_VALID_EMAIL=html_entity_decode("Please fill in a valid email address (or just leave it blank)"); PASSWORD_TWICE=html_entity_decode("Please enter a valid password (twice)"); SUPPLY_USERNAME=html_entity_decode("You must supply a username to login."); SUPPLY_PASSWORD=html_entity_decode("You must supply a password to login."); HI=html_entity_decode("Hi "); NEW_MSGS=html_entity_decode("NUMBER new messages!"); WELCOME=html_entity_decode("Welcome "); HAVE_Y_BACK=html_entity_decode(", nice to have you back!"); LOGIN_ERROR=html_entity_decode("Sorry, there was an error trying to log you in"); WOOPS_BAD_SERVER=html_entity_decode("Whoops! The server is not feeling very well right now. Try again later."); POST_COMMENT=html_entity_decode("Post a comment"); WRONG_LOGIN=html_entity_decode("Oops! Something went wrong. Did you enter your username and password correctly?"); FLAG_ANIM=html_entity_decode("Flag inappropriate animation"); WHY_INAPPROPRIATE=html_entity_decode("Please tell us why you think this animation is inappropriate so that we can review it and determine if it is in compliance with our "); GUIDELINES=html_entity_decode("Guidelines"); DISTURBING_CONTENT=html_entity_decode("Sexual or violent content"); HATE_BULLYING=html_entity_decode("Hate speech or bullying"); INVADE_PRIVACY=html_entity_decode("Invades my privacy"); COPYRIGHT=html_entity_decode("Copyright infringement"); HELP_COPYRIGHT=html_entity_decode("For help on filing a claim of copyright infringement, please refer to the appropriate section in our "); FAQ=html_entity_decode("FAQ"); HELP_INVADE_PRIVACY=html_entity_decode("If you think this animation invades your privacy, please refer to the appropriate section in our "); TO_SUBMIT_COMPLAINT=html_entity_decode("on how to submit a complaint."); YOU_SURE=html_entity_decode("Are you sure?"); WORKING_IT=html_entity_decode(" Working on it... "); GO_PUBLIC=html_entity_decode("Go Public - Share with everyone on site"); MAKE_PRIVATE=html_entity_decode("Make Private - allow access only via direct link"); FETCHING_INVITE=html_entity_decode("Fetching invite..."); EMAIL_LINK=html_entity_decode("Done! Email or IM this link to your friends"); SHARE_ANIM=html_entity_decode("Share animation"); VIA_LINKCOLSITE=html_entity_decode("Via link-collection site"); SHARE_FACEBOOK=html_entity_decode("Share on Facebook"); EMAIL_SEND=html_entity_decode("Send link via email"); GET_ANIM_LINK=html_entity_decode("Get link to animation"); EMBED_MYSPACE=html_entity_decode("Embed on MySpace or in a blog"); WHOOPS_BAD_SERVER=html_entity_decode("Unable to reach server.");