function getInfoDelete(strText){
	var temp   = [];
	temp       = strText.split(',');
	var Status = temp[0];
	var DivId  = temp[1];
	DivId      = DivId.toString();
	if (Status === "1"){
		$("#CommentDiv"+DivId).animate({opacity: 'hide'},'slow');
		_("comCount").value -=  1 ;
		if (_("comCount").value <= 0 ){
			window.location.href = domainName + document.getElementById("profileName").value ;
		}
	}
}

function DeleteComment(CommentId,DivId,encryption,id){
	$("#deleteHref"+DivId).removeAttr("href");
	$('#CommentDiv'+DivId).css( 'opacity', 0.5 );
	AJAXGet(domainName+"request/profile/deleteComment.htm?encKey="+encryption+"&id="+id+"&CommentId="+CommentId+"&DivId="+DivId+"&mm="+Math.floor(1000000*Math.random()),getInfoDelete,false,true);
}

function getInfoStatus(strText){
	var temp   = [];
	temp       = strText.split(',');
	var Status = temp[0];
	var DivId  = temp[1];
	DivId      = DivId.toString();
	if (Status === "1"){
		if (DivId === "1"){
			$("#StatusForAjaxCall").html('<img width="15" height="15" style="" src="'+imagesPath+'Offline.jpg?rn=1526652932" title="غير متصل" alt="غير متصل"/> غير متصل');
		}else{
			$("#StatusForAjaxCall").html('<img width="15" height="15" style="" src="'+imagesPath+'Online.jpg" title="متصل" alt="متصل"/>  متصل');
		}
	}else{
		alert("حصل خطأ أثناء تعديل حالة ظهورك");
	}
	$("#linkStatus").html("");
}

function updateMyStatus(){
	$("#linkStatus").html("الرجاء الانتظار");
	AJAXGet(domainName+"request/profile/handleOnLine.htm?flag="+document.getElementById("StatusCallFlag").value+"&mm="+Math.floor(1000000*Math.random()),getInfoStatus,false,true);
}

