function createAlbum(){var a=hsiFolder+"CreateAlbum.aspx";asynchHttpRequestPOST(a,"",getCreateAlbumCB,getCreateAlbumExceptionCB)}function getCreateAlbumExceptionCB(a){alert(a.responseText)}function getCreateAlbumCB(a){window.location.href=partialAlbumEditPageUrl+a.responseText}function deleteMemberAlbum(a){var c=hsiFolder+"DeleteMemberAlbum.aspx",b="id="+a;window.confirm("Are you sure you want to delete this album?")&&asynchHttpRequestPOST(c,b,getDeleteMemberAlbumCB,getDeleteMemberAlbumExceptionCB,a)}function getDeleteMemberAlbumExceptionCB(a){alert(a.responseText)}function getDeleteMemberAlbumCB(){var a=hostMemberAlbumPageUrl;window.location.href=a}function chgTinyUrl(a){var c=a.getAttribute("i"),b=a.value;displayInSituMsg("",0,c);if(b.length==0)if(updateTinyUrl(b,c)){a.setAttribute("pName",b);displayInSituMsg("Changes Saved.",1,c)}else{a.value=a.getAttribute("pName");a.focus()}else{var e=hsiFolder+"ValidateTinyUrl.aspx",d="tinyUrlName="+b;asynchHttpRequestPOST(e,d,getValidateTinyUrlCB,getValidateTinyUrlExceptionCB,c,a)}}function getValidateTinyUrlCB(f,d){var b=createObjectFromXml(f.responseXML),c=d[0],a=d[1];if(b.IsValid=="true"){updateTinyUrl(b.TinyUrlName,c);a.value=b.TinyUrlName;a.setAttribute("pName",b.TinyUrlName);displayInSituMsg("Changes Saved.",1,c)}else{var e=a.getAttribute("pName");a.value=e;displayInSituMsg(b.ErrorMessages,1,c);a.focus()}}function getValidateTinyUrlExceptionCB(a){alert(a.responseText)}function updateTinyUrl(a,c){var b="tinyUrlType=Album&tinyUrlName="+a+"&id="+c;try{httpRequestPOST(hsiFolder+"UpdateTinyUrl.aspx",b);return true}catch(d){alert(d);return false}}function chgSeq(a){var d=a.getAttribute("i"),c=a.value,b="id="+d+"&newSeq="+c;try{httpRequestPOST(hsiFolder+"ResequenceAlbums.aspx",b);window.location.reload()}catch(e){alert(e)}}function updateDefaultAsset(a){var d=a.getAttribute("i"),c=a.value,b="id="+d+"&aid="+c;try{httpRequestPOST(hsiFolder+"UpdateDefaultAsset.aspx",b);window.location.reload()}catch(e){alert(e)}}function chgAssetSeq(a){var d=document.getElementById("MEMBER_ALBUM_ID").value,c=a.getAttribute("aid"),e=a.value,b="id="+d+"&aid="+c+"&newSeq="+e;try{httpRequestPOST(hsiFolder+"ResequenceAlbumAsset.aspx",b);window.location.reload()}catch(f){alert(f)}}function addAlbumAsset(c){var d=hsiFolder+"AddAlbumAsset.aspx",a=document.getElementById("MEMBER_ALBUM_ID").value,b="id="+a+"&aid="+c;asynchHttpRequestPOST(d,b,getAddAlbumAssetCB,getAddAlbumAssetExceptionCB,a)}function getAddAlbumAssetExceptionCB(a){alert(a.responseText)}function getAddAlbumAssetCB(){window.location.reload()}function removeAlbumAsset(c){var d=hsiFolder+"RemoveAlbumAsset.aspx",a=document.getElementById("MEMBER_ALBUM_ID").value,b="id="+a+"&aid="+c;asynchHttpRequestPOST(d,b,getRemoveAlbumAssetCB,getRemoveAlbumAssetExceptionCB,a)}function getRemoveAlbumAssetExceptionCB(a){alert(a.responseText)}function getRemoveAlbumAssetCB(){window.location.reload()};
