		function viewUserBlock(value){
			var AJ = new Ajax();
			try{
				AJ.setUrl("../main/viewUserBlock.php");
				AJ.setVar("userId", value);
				AJ.setMethod("POST");
				AJ.setOnLoading(blockLoadingMsg("Cargando..."));
				AJ.setOnComplete(viewUserBlockFinish);
				AJ.connect();
				AJ.getData();
			}catch(e){
			}
		}

		function viewUserBlockFinish(httpRequest,AJ){
			var resp = httpRequest.responseText;

			blockCustomMsg(resp, 20, 780, (screen.width / 2) - 390);
		}

		function saveMsjBlock(value){
			var AJ = new Ajax();
			try{
				AJ.setUrl("../main/viewUserBlock.php");
				AJ.setVar("saveMsg", 1);
				AJ.setVar("userId", value);
				AJ.setVar("msjText", $("#msjText").val());
				AJ.setMethod("POST");
				AJ.setOnLoading(blockLoadingMsg("Cargando..."));
				AJ.setOnComplete(saveMsjBlockFinish);
				AJ.connect();
				AJ.getData();
			}catch(e){
			}
		}

		function saveMsjBlockFinish(httpRequest,AJ){
			var resp = httpRequest.responseText;
	
			if ((resp == 1) || (resp == '1')){
				reload = 0;
				blockOkMsg('El mensaje ha sido enviado.', 1);
			}
			else{
				blockDefaultErrorMsg();
			}
		}
