var cX=0,cY=0,rX=0,rY=0;function doRate(a){var d=a.getAttribute("ct"),f=a.getAttribute("m"),e=a.value,c=hsiFolder+"RateAssetCreditedMember.aspx",b="id="+id+"&securedMemId="+f+"&creditTypeId="+d+"&rating="+e;try{httpRequestPOST(c,b)}catch(g){alert(g)}}function deleteAssetComment(c,a){var d=hsiFolder+"DeleteAssetComment.aspx",b="id="+c+"&assetType="+a;window.confirm("Are you sure you want to delete this comment?")&&asynchHttpRequestPOST(d,b,getDeleteAssetCommentCB,getDeleteAssetCommentExceptionCB)}function getDeleteAssetCommentCB(){var a="http://"+window.location.hostname+window.location.pathname;window.location.href=a}function getDeleteAssetCommentExceptionCB(a){alert(a.responseText)}function editAssetComment(c){var a=document.getElementById("div_"+c),b=document.getElementById("tbl_"+c);if(a.style.display=="block"){a.style.display="none";b.style.display="block"}else{a.style.display="block";b.style.display="none"}}function cancelEditAssetComment(a){var c=document.getElementById("div_"+a),b=document.getElementById("tbl_"+a);c.style.display="block";b.style.display="none"}function updateAssetComment(a,c,b){var e=hsiFolder+"UpdateAssetComment.aspx",d=a.getAttribute("_ASSET_COMMENT_ID");submitContainer(a,c,b,e,getUpdateAssetCommentCB,d)}function getUpdateAssetCommentCB(){var b=window.location.href.indexOf("#"),a="";if(b!=-1)a=window.location.href.substring(0,b);else a=window.location.href;window.location.href=a}function assetCommentSubscribe(e){var a=document.getElementById("btnSubscribe"),b=document.getElementById("btnSubscribe2");if(a.value=="Subscribe"){a.value="Unsubscribe";a.title="Unsubscribe to comment notifications for this "+assetType;b.value="Unsubscribe";b.title="Unsubscribe to comment notifications for this "+assetType}else{a.value="Subscribe";a.title="Subscribe to comment notifications for this "+assetType;b.value="Subscribe";b.title="Subscribe to comment notifications for this "+assetType}var d=hsiFolder+"UpdateAssetCommentSubscription.aspx",c="aGuid="+e;try{httpRequestPOST(d,c)}catch(f){alert(f)}}function deleteContestAssetComment(b){if(!window.confirm("Are you sure you want to delete this comment?"))return false;var c=hsiFolder+"DeleteContestAssetComment.aspx",a="cacid="+b;asynchHttpRequestPOST(c,a,getDeleteAssetCommentCB,getDeleteAssetCommentExceptionCB)}function getDeleteAssetCommentExceptionCB(a){alert(a.responseText)}function updateContestAssetComment(a,c,b){var e=hsiFolder+"UpdateContestAssetComment.aspx",d=a.getAttribute("_ASSET_COMMENT_ID");submitContainer(a,c,b,e,getUpdateAssetCommentCB,d)};
