<script>
var globales= new Array(0, 0, 0, 0);
function statpoint(elemSelect, indiceArray)
{
var textoActualSeleccionado= parseInt(elemSelect.options[elemSelect.selectedIndex].text);
var textoAnterior= globales[indiceArray];
alert("El texto anterior seleccionado es: "+ globales[indiceArray] +"\n El actual texto seleccionado es: "+ textoActualSeleccionado);
globales[indiceArray]= textoActualSeleccionado;
alert("Se ha cambiado el valor guardado en el Array global ahora es: "+ globales[indiceArray]);
}
</script>
<select id="pfrs" name="pfrs" size="1" onchange="statpoint(this, 0)">
<option value="5">-501</option>
<option value="6">-401</option>
<option value="7">-301</option>
<option value="8">-201</option>
<option value="9">-101</option>
<option value="10" selected="selected">0</option>
<option value="11">101</option>
<option value="12">201</option>
<option value="13">301</option>
<option value="14">451</option>
<option value="15">601</option>
<option value="16">801</option>
<option value="17">1001</option>
<option value="18">1251</option>
<option value="19">1501</option>
<option value="20">200</option>
</select>
<select id="pfrs" name="pfrs" size="1" onchange="statpoint(this, 1)">
<option value="5">-502</option>
<option value="6">-402</option>
<option value="7">-302</option>
<option value="8">-202</option>
<option value="9">-102</option>
<option value="10" selected="selected">0</option>
<option value="11">102</option>
<option value="12">202</option>
<option value="13">302</option>
<option value="14">452</option>
<option value="15">602</option>
<option value="16">802</option>
<option value="17">1002</option>
<option value="18">1252</option>
<option value="19">1502</option>
<option value="20">2002</option>
</select>
<select id="pfrs" name="pfrs" size="1" onchange="statpoint(this, 2)">
<option value="5">-503</option>
<option value="6">-403</option>
<option value="7">-303</option>
<option value="8">-203</option>
<option value="9">-103</option>
<option value="10" selected="selected">0</option>
<option value="11">101</option>
<option value="12">203</option>
<option value="13">303</option>
<option value="14">453</option>
<option value="15">603</option>
<option value="16">803</option>
<option value="17">1003</option>
<option value="18">1253</option>
<option value="19">1503</option>
<option value="20">2003</option>
</select>
<select id="pfrs" name="pfrs" size="1" onchange="statpoint(this, 3)">
<option value="5">-504</option>
<option value="6">-404</option>
<option value="7">-304</option>
<option value="8">-204</option>
<option value="9">-104</option>
<option value="10" selected="selected">0</option>
<option value="11">104</option>
<option value="12">204</option>
<option value="13">304</option>
<option value="14">454</option>
<option value="15">604</option>
<option value="16">804</option>
<option value="17">1004</option>
<option value="18">1254</option>
<option value="19">1504</option>
<option value="20">2004</option>
</select>