//New show a Friend Maker // id = 0 or 1 counting.... var activeOpenDiv = ""; var commentId; function toggleDemDivs(commentId) { if (activeOpenDiv != ""){ if (activeOpenDiv == commentId) { Effect.toggle($('commentform-'+commentId), 'blind', {duration:.5}); activeOpenDiv = ""; } else { //Effect.toggle($('commentform-'+activeOpenDiv), 'blind'); Effect.BlindUp($('commentform-'+activeOpenDiv), {duration:.5}); setTimeout(function () { toggleDemDiveOther(commentId); }, 600); } } else { Effect.toggle($('commentform-'+commentId), 'blind', {duration:.5}); activeOpenDiv = commentId; } } function toggleDemDiveOther (commentId){ //Effect.toggle($('commentform-'+commentId), 'blind'); Effect.BlindDown($('commentform-'+commentId), {duration:.5}); activeOpenDiv = commentId; } function hideForm (commentId) { Effect.BlindUp($('commentform-'+commentId), {duration:.5}); activeOpenDiv = ""; } var ht_currentCommentFormArticleId; function submitComment(idx) { pars = "&OPTION=ZA_EDIT&PAGE=COMMENT_RESPONSE&za_save=1&za_article_type-1=BLOG_COMMENTS&za_attr_names-1=USERID,USERNAME,ANONID,REFERENCEID"; pars += "&za_copy_names-1=COMMENT&za_status_code-1=ACTIVE"; pars += "&za_attr.USERID-1=" + 'GUEST'; pars += "&za_attr.USERNAME-1=" + $F('username-' + idx); pars += "&za_descr-1=" + escape($F('commenttitle-' + idx).replace("?", "?")); pars += "&za_attr.ANONID-1=" + '887235831284133892724'; pars += "&za_attr.REFERENCEID-1=" + 'ar' + ht_currentCommentFormArticleId; pars += "&DIV_ID=" + idx; pars += "&za_copy.COMMENT-1=" + escape($F('comment-' + idx).replace("?", "?")); var url = "/za/HT"; $('commentcore-'+idx).innerHTML = " Saving comments"; new Ajax.Updater('commentcore-'+idx, url, { method: 'post', parameters: pars } ); } function commentResponse(resp) { $('commentcore').innerHTML = resp.responseText; }