var i=0;[].map.call(document.getElementsByTagName('input'),function(a){if(a.name.match(/^kake/)){a.value=i++?10000:100}})