(function() {
function buildGC() {
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
for (var i = 0; i < 14; i++) {
text += possible.charAt(Math.floor(Math.random() * possible.length));
}
return text;
}
window.onload = function () {
document.getElementById("gc-redemption-input").value = buildGC();
document.getElementById("gc-redemption-apply-button").click();
}
})();