This is part of the return answer, meaning the source code I see on the page I am returned to when having clicked the paypal button
function updateContant(thepage) {
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)
{
return false;
}
}
}
xmlHttp.onreadystatechange=function() {
if(xmlHttp.readyState==4) {
if (xmlHttp.responseText != "") {
var contentArea = document.getElementById('content');
var responseText = xmlHttp.responseText;
var replaceWith = responseText.substring(responseText.indexOf('<div id='+'"content">')+18);
var replaceWith = replaceWith.substring(0,replaceWith.indexOf('<!-- Instance' + 'EndEditable -->'));
contentArea.innerHTML = replaceWith;
document.body.setAttribute("class",document.body.getAttribute("class").replace(' wait',""));
}
}
}
document.body.setAttribute("class",document.body.getAttribute("class") + ' wait');
xmlHttp.open("GET",thepage,true);
xmlHttp.send(null);
}
function isChildOf(ChildObject,ContainerObject)
{
var retval=false;
var curobj=ChildObject.parentNode;
var container = ContainerObject.parentNode;
while(curobj!=undefined)
{
if(curobj==document.body)
{ break;}
if(curobj==container)
{
retval =true;
break;
}
curobj=curobj.parentNode;//move up the hierarchy
}
return retval;
}
var lastHighlight = new Array();
function doHighlighlight(div) {
div.setAttribute('style',"background-color:#3375A2; color: white; border-top:0px;");
div.style.cssText = "background-color:#3375A2; color: white; border-top:0px;";
var y = 0;
for (var x=0; x<lastHighlight.length; x++) {
if (isChildOf(div,lastHighlight[x])) {
y=x+1;
}
else {
lastHighlight[x].removeAttribute('style');
}
}
lastHighlight = lastHighlight.slice(0,y);
lastHighlight[lastHighlight.length] = div;
}