/**
The methods in this file are used to hide the URI of delete URL. 
*/

/**
* MKP_deleteObject -- hide the URI of deleting My Video, My Audio, My Photo, My Links and My RSS
*/
function MKP_deleteObject(media, id)
{
	location.href = "/update/"+media.toLowerCase()+"DeleteConfirm.kickAction?mediaType="+media.toUpperCase()+"&mediaId="+id;	
}

/*
* MKP_deleteBlog -- hide the URI of delete My Blog in the MKP
*/
function MKP_deleteBlog(id)
{
	location.href = "/update/blogDeleteConfirm.kickAction?mediaType=BLOGMESSAGE&mediaId="+id;
}

/*
* MKP_removeFriend-- hide the URI of remove my friends in MKP
*/
function MKP_removeFriend(id)
{
	location.href = "/update/friendDeleteConfirm.kickAction?mediaType=FRIEND&userId="+id;
}

/*
* MKP_removeFanOf-- hide the URI of remove I'm a fan of list in MKP
*/
function MKP_removeFanOf(id)
{
	location.href = "/update/fanOfDeleteConfirm.kickAction?mediaType=FRIEND&userId="+id;
}

/*
* MKP_removeFavorite -- hide the URI of remove my Favorites (video, audio, and photo)
*/
function MKP_removeFavorite(media, medId, id)
{
	location.href = "/update/favorite"+media+"DeleteConfirm.kickAction?mediaType="+media.toUpperCase()+"&mediaId"+medId+"="+id;
}

/*
* MKP_deleteGuestBook -- hide the URI of delete guestbook entries
*/
function MKP_deleteGuestBook(id)
{
	location.href = "/update/guestbookDeleteConfirm.kickAction?mediaType=USERGUESTBOOKMESSAGE&mediaId="+id;
}

/*
* MKP_deleteMemberMessage -- hide the URI of delete memberMessage entries
*/
function MKP_deleteMemberMessage(id, manageMessageType)
{	
	location.href = "/update/memberMessageDeleteConfirm.kickAction?mediaId="+id+"&manageType="+manageMessageType;	
}

/*
* MKP_restoreMemberMessage -- hide the URI of delete memberMessage entries
*/
function MKP_restoreMemberMessage(id, manageMessageType) 
{
	location.href = "/update/memberMessageRestoreConfirm.kickAction?mediaId="+id+"&manageType="+manageMessageType;
}

/*
* MKP_deletePermanentlyMemberMessage -- hide the URI of permanently delete memberMessage entries
*/

function MKP_permanentlyDeleteMemberMessage(id, manageMessageType) 
{
	location.href = "/update/memberMessageDeletePermanentlyConfirm.kickAction?mediaId="+id+"&manageType="+manageMessageType;
}

/*
* MKP_deleteMemberMessage -- hide the URI of delete memberMessage entries
*/

var deleteEmailBool = false;
function MKP_flagMemberMessage(id, manageMessageType)
{
	if (deleteEmailBool == false){
		deleteEmailBool = true;
		var flagMessage = $('flagMessage').value;	
		location.href = "/update/memberMessageDeleteConfirm.kickAction?mediaId="+id+"&manageType="+manageMessageType+"&flag=on"+"&flagMessage="+flagMessage;	
		
	}
}