
// #######################################################################################################

showUploadWindow = function(memberId, cmd, param) {

    source = '<iframe frameborder="0" width="300" height="230" scrolling="no" src="/UploadPhoto.aspx?mid=' + memberId + '" />';
    //source += '<a href="" onclick="Modalbox.hide();"><img border="0" src="/images/sandboxing/cancel.jpg" width="70" height="17" /></a>';

    Modalbox.show(source, { title: 'Upload your photo', width: 325, afterHide: function() { eval(cmd + "('" + param + "', '')") } });
}

// #######################################################################################################
// #######################################################################################################
// #######################################################################################################
// #######################################################################################################

showFriendConfirmation = function(id) {
    Modalbox.show("<div class='MB_alert'><p><img src='/images/warn.gif' />&nbsp;Are you sure you want to delete this friend?</p><p align='center'><input type='button' value='Yes' onclick='Modalbox.hide(); deleteFriend(\"" + id + "\");' /> &nbsp;&nbsp;&nbsp; <input type='button' value='No' onclick='Modalbox.hide()' /></p></div>", { title: 'Delete Friend', width: 300 });
}

showPostConfirmation = function(id) {
    Modalbox.show("<div class='MB_alert'><p><img src='/images/warn.gif' />&nbsp;Are you sure you want to delete this post?</p><p align='center'><input type='button' value='Yes' onclick='Modalbox.hide(); deletePost(\"" + id + "\");' /> &nbsp;&nbsp;&nbsp; <input type='button' value='No' onclick='Modalbox.hide()' /></p></div>", { title: 'Delete Post', width: 300 });
}

showDeletePhotoConfirmation = function(id) {
    Modalbox.show("<div class='MB_alert'><p><img src='/images/warn.gif' />&nbsp;Are you sure you want to delete this photo?</p><p align='center'><input type='button' value='Yes' onclick='Modalbox.hide(); deletePhoto(\"" + id + "\");' /> &nbsp;&nbsp;&nbsp; <input type='button' value='No' onclick='Modalbox.hide()' /></p></div>", { title: 'Delete Photo', width: 300 });
}

showPhotosUploader = function(albumId) {
    window.open("/PhotosUploader.aspx?aid=" + albumId, "Upload Photos", "width=700 , height=600 , toolbar=0 , scrollbars=0 , location=0 , statusbar=0 , menubar=0 , resizable=0");
}
