Template:2010/Donate-nowIL/localized

             

 50₪ <input type="radio" name="amount" value="100.00" />100₪ <input type="radio" name="amount" value="250.00" />250₪ <input type="radio" name="amount" value="500.00" />500₪

<input type="radio" name="amount" value="0" id="wmh_obutton" /> <input size="6" name="customAmount" id="wmh_otext" /> <input type="hidden" name="custom" value="" />

<input type="submit" class="input-button2 button-red" value="" style="display: block; margin: 0 auto;">

<BR><BR>

<script type="text/javascript"> 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) { 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; wmh_paypal.custom.value= getQuerystring( 'utm_medium' )+'.'+getQuerystring( 'utm_campaign' )+'.'+getQuerystring( 'utm_source' ) + '.' + getLandingPage + '.' + paymentType; } }); });

<script type="text/javascript"> 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;