var url;

//Delete subsribtion of paer profile member
function delsubscribe(id)
{
	divid='delsub';
	url="_action.php?action=delsubscribe&sId="+id;
	funajax1(divid,url);
}
////Change confirmation image
//function ChangeConfirmationImage()
//{
//	divid='CaptcheImage';
//	url="_action.php?action=ChangeConfirmationImage";
//	funajax1(divid,url);
//}
//Necessary function to call ajax
function funajax1(divid,url)
{
	
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      //document.getElementById(divid).innerHTML=xmlHttp.responseText;
      }
	 if(xmlHttp.readyState==1||xmlHttp.readyState==2||xmlHttp.readyState==3)
	 {
		 //document.getElementById(divid).innerHTML="";
	 }
    }

  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
  }
