window.addEvent('domready', function() {

// get all input fields
var inputs = $$('input');

// loop through the collections of input fields
for (i=0; i<inputs.length; i++) {

// If prev button found, change text
if(inputs[i].value == 'Prev' || inputs[i].value == 'Previous'){
inputs[i].value = 'Forrige';
}

// If next button found, change text
if(inputs[i].value == 'Next'){
inputs[i].value = 'Næste';
}

}

})

