function myProgramButton(abstractId, action, reload) {
	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 true; // Let the link be pressed
     	}
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      	if (xmlHttp.responseText == 'removed') {
					linkText = 'Add';
					titleText = 'add to';
				}
      	if (xmlHttp.responseText == 'added') {
					linkText = 'Remove';
					titleText = 'remove from';
				}
				button = document.getElementById('myProgramButton_'+abstractId);
      	button.innerHTML = linkText
      	button.href = 'program/programPersonalisedChange?abstractId='+ abstractId +'&action='+linkText.toLowerCase();
      	button.title = "Click here to "+ titleText + " your personalised program";
      	if (reload == 1) { 	// On the personalised page we reload to
      											// removed the "removed" abstract"
					window.location.reload();
				}
      }
    }
  xmlHttp.open("GET",'programPersonalisedChange?abstractId=' + abstractId + '&action=' + action + '&from=Ajax', true);
  xmlHttp.send(null);
  return false;
}
