Code:
var selects = document.getElementsByTagName( 'select' );
for( var i = 0, box; ( box = selects[ i ] ); i++ )
if( box.name.indexOf( 'ereg|' ) == 0 )
box.onchange();
That makes sense but I am unsure as to where exactly or how to modify my code to get it to work. I am rather new to this sorry