Template:2010/Donate-nowGB

      £100 £50 £30 £20

Other amount: £  

  var wmh_paypal = document.getElementById('wmh_paypal'); var wmh_obutton = document.getElementById('wmh_obutton'); var wmh_otext = document.getElementById('wmh_otext'); function copyAmount { wmh_obutton.value = wmh_otext.value; } addOnloadHook(function { copyAmount; addHandler(wmh_otext, 'change', copyAmount); addHandler(wmh_otext, 'blur', copyAmount); addHandler(wmh_otext, 'focus', function { wmh_obutton.checked = true; }); addHandler(wmh_paypal, 'submit', function(e) { wmh_paypal.custom.value= getQuerystring( 'utm_medium' )+'.'+getQuerystring( 'utm_campaign' )+'.'+getQuerystring( 'utm_source' ) + '.' + getLandingPage; if (!(!wmh_obutton.checked||!(wmh_obutton.value < 1))) { alert("Sorry, you must donate at least £1"); if (e.preventDefault) e.preventDefault; else e.returnValue = false; } }); });

 function getQuerystring( key ) { key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ); var regex = new RegExp( '[\\?&]' + key + '=([a-zA-Z0-9\_\-]*)' ); var qs = regex.exec( window.location.search ); return qs == null ? '' : qs[1]; }

function getLandingPage {  var path = "  ";

if( path == "default"){ pathArray = window.location.pathname.split( '/' ); return pathArray[2]; }  else return path; }

document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_source' ); document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' ); document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_medium' ); document.paypalcontribution.referrer.value = document.referrer;