function comment_loading_start(){show('CommentOverlay');force_style('transparent', 'CommentsBody');var Overlay = document.getElementById('CommentOverlay');/* POSITION IT */var Pos = findPos('CommentsBody');Overlay.style.left=Pos[0]+'px';Overlay.style.top=Pos[1]+'px';}function comment_loading_stop(){/* HIDE IT */hide('CommentOverlay');force_style('', 'CommentsBody');var Overlay = document.getElementById('CommentOverlay');/* POSITION IT */var Overlay = document.getElementById('CommentOverlay');Overlay.style.left='-999px';Overlay.style.top='-999px';}function LoadComments(Module, Breakdown, Page){comment_loading_start();go('http://www.quantumshift.tv/modules/comments/process.php?submit=fetch&m='+Module+'&b='+Breakdown+'&p='+Page);}function getOffsetHeight(id){h = Number.NaN;if (document.getElementById) {var ele = document.getElementById(id);if (ele && typeof ele.offsetHeight != 'undefined') {h = ele.offsetHeight;}}return h;}function findPos(name) {obj = document.getElementById(name);var curleft = curtop = 0;if (obj.offsetParent) {do {curleft += obj.offsetLeft;curtop += obj.offsetTop;} while (obj = obj.offsetParent);}return [curleft,curtop];}function delete_comment(Id){if(confirm("Are you sure you want to delete this Opinion?")){go('http://www.quantumshift.tv/modules/comments/process.php?delete='+Id);element_html('Comment'+Id, "Opinion Deleted!");}}function go(Url){window.frames['hiframe'].location.href=Url;}    function quote(Id){    var QuoteTxt = element_value('quote_'+Id);    var QuoteUsr = element_value('user_'+Id);    change_value('commenttext', '[quote='+QuoteUsr+']'+QuoteTxt+'[/quote]');    var form = document.getElementById('commenttext');form.style.background='#ffffff';form.style.height='100px';    scroll(0, 9999);    }function VerifyComment(){var comment = CleanComment(element_value('commenttext'));if(comment == 'Click to leave an opinion'){alert("You must enter an opinion");return false;}if(comment.length>8){comment_loading_start();force_style('transparent', 'leavecommentdiv');/* SCROLL WINDOW */var Pos = findPos('cAnchor');self.scrollTo(0, Pos[1]);return true;} else {alert("Comment is too short");return false;}}function resetComment(form){if(form.value==''){form.value='Click to leave an opinion';form.style.height='40px';form.style.background='#ECE9D8';}else if(form.value=='Click to leave an opinion'){form.value='';form.style.background='#ffffff';form.style.height='100px';}}