<script type="text/javascript">$(document).ready(function() {var temp; $("a").each(function() { temp = ($(this).attr("href") == null) ? " " : $(this).attr("href");// Hide Calendar Event Comment if ($(this).attr("id").match("_lnkAddComment")) { $(this).css("display","none") }// Hide Quote Comments if (temp.match("Comments.aspx") && temp.match("QUOTESSML")) { hideComments($(this)) }// Hide Voting Poll Comments if (temp.match("Comments.aspx") && temp.match("GUILDPOLL")) { hideComments($(this)) }// Hide Info Section Comments $(document).bind('reveal.facebox', function() { $("#facebox").find("a").each(function() { if ($(this).attr("target").match("_commentWindow")) { hideComments($(this)) } }); }); function hideComments (x) { x.css("display","none"); x.parent().html( x.parent().html().replace("[","").replace("]","") ); } });});</script>
<script type="text/javascript">$(document).ready(function() { $("a").each(function() { if ($(this).attr("target").match("_commentWindow")) { makePopupWindow($(this),'_commentWindow',600,300); } }); $(document).bind('reveal.facebox', function() { $("#facebox").find("a").each(function() { if ($(this).attr("target").match("_commentWindow")) { makePopupWindow($(this),'_commentWindow',600,300); } }); }); function makePopupWindow (linkEl,pName,pWidth,pHeight) { var temp = "toolbar=0,status=0,resizable=1,scrollbars=1,width=" + pWidth + ",height=" + pHeight; linkEl.click (function(){ var w = window.open (linkEl.attr("href"),pName,temp); w.focus(); return false; }); }});</script>