Template:2010/Donate-nowIL

Support Wikipedia and other free projects by donating to Wikimedia Israel:            

 50 ILS 100 ILS <input type="radio" name="amount" value="250.00" />250 ILS <input type="radio" name="amount" value="500.00" />500 ILS <input type="radio" name="amount" value="0" id="wmh_obutton" />Other amount: ILS <input size="6" name="customAmount" id="wmh_otext" /> <input type="hidden" name="custom" value="" />

<input type="submit" class="input-button2 button-red" value="Donate with a credit card via PayPal" style="display: block; margin: 0 auto;">

<BR><BR> See other ways to donate (by phone or by bank transfer) on <a href="http://www.wikimedia.org.il/Donate_to_Wikimedia_Israel">Wikimedia Israel website</a>. <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;