
function display_blog_menu(){if(document.getElementById('archivelist').style.display=="none"){document.getElementById('archivelist').style.display='';document.getElementById('blog_menu_text').innerHTML="Collapse Browser";document.getElementById('blog_menu_image').src="/images/splash/blog/icon_arrow-btn-Up.gif";if(document.getElementById('topdivider')){document.getElementById('topdivider').style.display='none';}}
else{document.getElementById('archivelist').style.display='none';document.getElementById('blog_menu_text').innerHTML="Expand Browser";document.getElementById('blog_menu_image').src="/images/splash/blog/icon_arrow-btn-Down.gif";if(document.getElementById('topdivider')){document.getElementById('topdivider').style.display='';}}}
function blog_subscribe(){if(document.getElementById('subscribe').style.display==""){document.getElementById('subscribe').style.display='none';}}
function quote_comment(commentId,username){var content=document.getElementById(commentId).innerHTML;document.getElementById('quotetext').innerHTML="<blockquote class='reply'>Original Post by: "+username+"<br /><br />"+content+"</blockquote>";document.getElementById('quote_id').value=commentId;document.getElementById('quote_username').value=username;}
function close_sharethis_timer(time,theid){setTimeout("close_sharethis("+theid+")",time);}
function close_sharethis(theid){var thediv="sharethis"+theid;document.getElementById(thediv).style.display='none';}
function display_roadblock_blog(width,height){if(!width){width="400";}
if(!height){height="350";}
tb_show(null,'#TB_inline?&inlineId=emailfriend&height='+height+'&width='+width,null);}
function populate_id(id){document.getElementById('blog_uniqueid').value=id;display_roadblock_blog('','');}
function checkblogdate(){var d=new Date();if(document.getElementById('date_year').value!=d.getFullYear()){if(!confirm("The blog date is set to "+document.getElementById('date_year').value+", is this ok?")){setBunload(true);return false;}}}
function check_length(div,textbox,maxLen)
{var thetextarea=document.getElementById(textbox);if(thetextarea.value.length>=maxLen){var scrollbottom=thetextarea.scrollHeight;thetextarea.value=thetextarea.value.substring(0,maxLen);thetextarea.scrollTop=scrollbottom;document.getElementById(div).innerHTML="<font style='color:#FF0000;'>0 characters left</font>";}
else{var chardisplay=maxLen-thetextarea.value.length;if(chardisplay>1){textdisplay=chardisplay+" characters";}
else{textdisplay=chardisplay+" character";}
document.getElementById(div).innerHTML=textdisplay+" left";}}