Template:2010/Donate-nowHU

            10 000 Ft 5000 Ft  2500 Ft

Más összeg <input size="6" name="customAmount" id="wmh_otext" /> Ft <input type="hidden" name="custom" value="" id="custom" />

<input type="checkbox" name="on1" value="email" checked="checked" /> Hozzájárulok, hogy a Wikimédia Magyarország értesítsen tevékenységéről. <input type="hidden" name="os1" value="Hozzájárulok, hogy az Egyesület értesítsen tevékenységéről." /> <input type="submit" class="input-button2 button-red" value="Támogass minket!" style="display: block; margin: 0 auto;"> <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'); var custom = document.getElementById('custom'); 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) { custom.value = getQuerystring( 'utm_source' ); if (!(!wmh_obutton.checked||!(wmh_obutton.value < 1500))) { alert("A minimális összeg 1500Ft (ez alatt az adomány jelentős részét elvinné a PayPal járuléka)."); if (e.preventDefault) e.preventDefault; else e.returnValue = false; } }); });

<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; }

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