var ProfileModerationDialog			= null;
var lastBlogID						= 0;

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function doProfileModerationDialog(USERID) {
	if (ProfileModerationDialog != null) {
	return;
	}
var url								= "/clientServer/?section=ProfileModerationDialog&USERID="+USERID;
lastUserID							= USERID;
ProfileModerationDialog				= document.createElement('DIV');
handleGetComplete					= 'handleStandardGetComplete';
handleDialogClose					= 'closeProfileModerationDialog';
doAjaxPopup('commonDialogLong',ProfileModerationDialog,url,500,400);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function closeProfileModerationDialog() {
closeAjaxPopup(ProfileModerationDialog);
ProfileModerationDialog				= null;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function submitProfileModerationForm(formObj) {
var F1								= formObj.USERMSG;
var F2								= formObj.MODMSG;
var USERID							= formObj.USERID.value;
var USERMSG 						= encodeURIComponent(F1.value);
var MODMSG							= encodeURIComponent(F2.value);
var params							= "section=ProfileModerationDialog&DOFORM=1&USERID="+USERID+"&USERMSG="+USERMSG+"&MODMSG="+MODMSG;
showLoadingMessage();
handlePostComplete					= 'handleProfileModerationPostComplete';
postAjaxContent('/clientServer/',params);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function handleProfileModerationPostComplete(success,xmlHTTP) {
var response						= xmlHTTP.responseText;
	if (response == "SUCCESS=1") {
	closeProfileModerationDialog();
	document.location.href			= "/users/?REENABLE=1";
	} else {
		if(responseContainer!=null) {
		responseContainer.innerHTML	= xmlHTTP.responseText;
		}
	}
}


