| /******************************************************************************* |
| * Copyright (c) 2014 Eclipse Foundation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://eclipse.org/legal/epl-v10.html |
| * |
| * Edouard Poitras (Eclipse Foundation) - Initial Implementation |
| *******************************************************************************/ |
| function validate_amount() { |
| var amount = document.getElementById('donation-amount').value |
| if (isNaN(amount) || amount < 1) { |
| alert("You must specify an amount higher than $1"); |
| return false; |
| } |
| return true; |
| } |