function stripHtml(a){return a.replace(/(<([^>]+)>)/g,"")}function wordCountHtml(b){var a=stripHtml(b);var c=a.split(" ").size();return c}function postFormBioSubmit(){var a=$("bio_text_area").value;if(a.length>25000){alert("We're sorry, your bio is too long.  Your bio is "+a.length+" characters; the maximum is 25000.")}else{$("bioEditForm").submit()}}function postFormBioSubmit_tiny_mce(){var a=tinyMCE.activeEditor.getContent();var b=a.replace(/(<([^>]+)>)/igm,"").replace(/[\.\,\;\:\?\!]/igm," ").replace(/\s+/igm," ");var c=b.split(" ");if(c.length>userProfileMaximumWordCount){alert("We're sorry, your bio is too long.  Your bio is "+c.length+" words; the maximum is "+userProfileMaximumWordCount)}else{$("bioEditForm").submit()}}function bioPicFormHide(){var b=document.getElementById("bioPicText");if(b){b.style.display="block"}var a=document.getElementById("bioPicForm");if(a){a.style.display="none"}}function bioPicFormShow(){var a=$("account_activated").value;if(a=="true"){var c=document.getElementById("bioPicText");if(c){c.style.display="none"}var b=document.getElementById("bioPicForm");if(b){b.style.display="block"}}else{alert("Account needs to be activated.")}}function bioQuestionsFormHide(){var b=document.getElementById("bioQuestionsText");if(b){b.style.display="block"}var a=document.getElementById("bioQuestionsEditForm");if(a){a.style.display="none"}return false}function bioQuestionsFormShow(){var a=$("account_activated").value;if(a=="true"){var c=document.getElementById("bioQuestionsText");if(c){c.style.display="none"}var b=document.getElementById("bioQuestionsEditForm");if(b){b.style.display="block"}}else{alert("Account needs to be activated.")}}function editFormHide(){var d=document.getElementById("bioViewText");if(d){d.style.display="block";var b=document.getElementById("bio_text_area");var a=document.getElementById("hidden_bio_text_area");b.value=a.value}var c=document.getElementById("bioEditForm");if(c){c.style.display="none"}return false}function editFormShow(){var a=$("account_activated").value;if(a=="true"){var c=document.getElementById("bioViewText");if(c){c.style.display="none"}var b=document.getElementById("bioEditForm");if(b){b.style.display="block"}}else{alert("Account needs to be activated.")}}function displayImg(d,b,e){if(d!=b){d+="?"+Date.parse((new Date()).toString())}var c="";$H(e).each(function(f){c+=" "+f.key+"='"+f.value+"'"});var a='<img src="'+d+'"'+c+" />";document.write(a)};