Witam!
Co tu zmienić w tym kodzie żeby nie otwierała się strona w nowym oknie tylko tym samym?, oto kod:
<select class="input" name="galeria" onchange="window.open(this.value);" id="gal">
<option id="'1" value="http://onet.pl">Onet</option>
<option id="'2" value="http://www.wp.pl">Wirtualna Polska</option>
</select>
<input type="button" value="idz" onclick="window.open(document.getElementById('gal').options[document.getElementById('gal').selectedIndex].value);" />