
var last='';var last2='';var form_show='';var form_show2='';var dumb=function(){}
var successPostFunc=function(){if(last){document.getElementById('reply_link'+last).style.display='none';}
last='';}
var successVoteFunc=function(){document.getElementById('showPoll').style.display='none';}
function saw(id){if(last){document.getElementById('reply'+last).style.display='none';}
document.getElementById('reply'+id).style.display='inline';last=id;}
function scw(id){if(form_show){document.getElementById('comment_form').style.display='none';form_show='';}else{if(last){document.getElementById('reply'+last).style.display='none';last='';}
document.getElementById('comment_form').style.display='inline';form_show='comment_form';}}
function scw_second(id){if(form_show2){document.getElementById('comment_form2').style.display='none';form_show='';}else{if(last2){document.getElementById('reply'+last).style.display='none';last2='';}
document.getElementById('comment_form2').style.display='inline';form_show2='comment_form2';}}
function scom(id){if(document.getElementById('hide_com'+id).style.display!='none'){document.getElementById('hide_com'+id).style.display='none';}else{document.getElementById('hide_com'+id).style.display='inline';}}
function submitComment(cid,postid,f)
{new Ajax.Updater('reply'+cid,'/submit_comment.php?id='+postid+'&replyto='+cid,{asynchronous:true,parameters:Form.serialize(f),onSuccess:successPostFunc});return false;}
function submitBlogComment(cid,postid,f)
{new Ajax.Updater('reply'+cid,'/submit_blog_comment.php?id='+postid+'&replyto='+cid,{asynchronous:true,parameters:Form.serialize(f),onSuccess:successPostFunc});return false;}
function submitVote(cid,f)
{new Ajax.Updater('poll'+cid,'/submit_vote.php?id='+cid,{asynchronous:true,parameters:Form.serialize(f),onSuccess:successVoteFunc});return false;}