function setupFFToken() { var forms = document.getElementsByTagName('form'); for (var i=0; i < forms.length; i++) { if (forms[i].className.search(/ff/) > -1) { var input = document.createElement("input"); input.setAttribute("type", "hidden"); input.setAttribute("name", "ff_token"); input.setAttribute("value", "cb695e1396f3f0f9af71f2350b6ad4b1"); forms[i].appendChild(input); } } } var oldOnload = window.onload; window.onload = function() { if (typeof(oldOnload) != undefined && oldOnload != null) { oldOnload(); } setupFFToken(); }