var check_c_status_object_social;
function newsdelete(div_id,actionid,pkey)
{
	//alert(div_id+'.......'+actionid+'....'+pkey);
	
	if(div_id !=0 && actionid !=0  &&pkey !=0)
	{	
		document.getElementById(div_id).innerHTML='Deleting..';
		//alert(div_id+'....'+actionid+'.........'+pkey);
		
	}
		try
		{	
			check_c_status_object_social = new XMLHttpRequest();
		}catch(e)
		{
			try
			{
				check_c_status_object_social = new ActiveXObject("Msxml2.XMLHTTP");	

			}
			catch (e)
			{
				try
				{
					check_c_status_object_social = new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (e)
				{
					alert('Not Supporting in ie');
					return false;
				}
			}
		}

		check_c_status_object_social.onreadystatechange = function()
		{
			if(check_c_status_object_social.readyState == 4)
			{
				var valid = check_c_status_object_social.responseText;

				if(valid!='')
				{
					//alert('no problem');
					document.getElementById('socialId').innerHTML =valid;
					//alert(' problem');
				}

			}
		} 

	
	var url="os67socialnews.php";
	url=url+"?id="+div_id;
	url=url+"&sid="+Math.random()
	url=url+"&actid="+actionid;
	url=url+"&pkey="+pkey;
	//alert(url);
	check_c_status_object_social.open("GET", url, true);
	check_c_status_object_social.send(null); 
} 


function newsdelete_profile(div_id,actionid,pkey,uId)
{
	
	//alert("hiiiiiiiii");
	//alert(div_id+'..outside..'+actionid+'.outside........'+pkey);
	if(div_id !=0 && actionid !=0  && pkey !=0)
	{	
		//alert(div_id+'....'+actionid+'.........'+pkey);
		document.getElementById(div_id).innerHTML='Deleting..';
	}
		try
		{	
			check_c_status_object_social = new XMLHttpRequest();
		}catch(e)
		{
			try
			{
				check_c_status_object_social = new ActiveXObject("Msxml2.XMLHTTP");	

			}
			catch (e)
			{
				try
				{
					check_c_status_object_social = new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (e)
				{
					alert('Not Supporting in ie');
					return false;
				}
			}
		}

		check_c_status_object_social.onreadystatechange = function()
		{
			if(check_c_status_object_social.readyState == 4)
			{
				var valid = check_c_status_object_social.responseText;

				if(valid!='')
				{
					//alert(valid);
					document.getElementById('socialId').innerHTML =valid;
					//alert(' problem');
				}

			}
		} 

	
	var url="os67socialnews_profile.php";
	url=url+"?id="+div_id;
	url=url+"&iuserid="+uId;
	url=url+"&actid="+actionid;
	url=url+"&pkey="+pkey;
	url=url+"&sid="+Math.random();
	
	check_c_status_object_social.open("GET", url, true);
	check_c_status_object_social.send(null); 
} 























