Ciao Andrea,
ho adattato la soluzione al mio script e ad parte qualche errore di "a capo" mi sono accorta d iaver detto una "cassanata" ovvero lo storico.php si, mi serve perche' deve fare le analisi
scusami per questo mio errore...
Ti posto lo script intero cosi' potrai visionare anche tu il risultato. 
codice:
<HTML>
<HEAD>
<script type="text/javascript">
/**
* I thing that this
* way is much elegant
* than document.forms[0].action
* =document.forms[0].
* selectbox.options[selectbox.selectedIndex].value;
* @author Georgi Naumov
*/
function changeAction(aForm,aValue)
{
if(aValue=="")
return;
aForm.setAttribute("action",aValue);
}
function Abilita(stato){
document.getElementById('From').style.display=stato
document.getElementById('To').style.display=stato
}
</script>
<BODY>
<form name="form" id="locali" method="POST" >
<script type="text/javascript">
var shipping = new Object()
shipping["mono"] = [{value:"casa1", text:"Casa Victar"},
{value:"casa2", text:"Casa Vincenza"}];
shipping["bi"] = [{value:"casa3", text:"Casa Ester"},
{value:"casa4", text:"Casa Trieste"},
{value:"casa5", text:"Casa Trinacria"},
{value:"all", text:"All"}];
function setCost(chooser) {
var newElem;
var where = (navigator.appName == "Microsoft Internet Explorer") ? -1 : null;
var costChooser = chooser.form.elements["param"];
while (costChooser.options.length) {
costChooser.remove(0);
}
var choice = chooser.options[chooser.selectedIndex].value;
var db = shipping[choice];
newElem = document.createElement("option");
newElem.text = "Type: ";
newElem.value = "";
costChooser.add(newElem, where);
if (choice != "") {
for (var i = 0; i < db.length; i++) {
newElem = document.createElement("option");
newElem.text = db[i].text;
newElem.value = db[i].value;
costChooser.add(newElem, where);
}
}
}
</script>
<select name="vani" onchange="setCost(this)">
<option value="" selected="selected">Select a Home</option>
<option value="mono">Monolocale</option>
<option value="bi">Bilocale</option>
</select>
<select name="param" style="width:100px" onchange="this.form;">
<option value="" selected="selected">Select: </option>
</select>
<script type="text/javascript">
function AddOpt(test)
{
/* conta il numero delle option nella select*/
numOption=document.getElementById('analisys').options.length;
/*indice dell'optione selezionata */
Optselezionato = document.getElementById('analisys').selectedIndex;
if(indice_selezionato>=2){
alert("* Historycal *");
}
}
</script>
<select name="page" id="analisys" style="width:100px" onchange="changeAction(this.form,this.value) && AddOpt() ;">
<option selected="selected">---</option>
<option value="./current.php?param=$param&vani=$vani">Istant Usage</option>
<option value="./storico.php?test=1">Historical</option>
</select>
<select name="test" onchange="if(this.value=='attiva'){Abilita('block')}else{Abilita('none');changeAction(this.form,this.value);}">
<option selected="selected">None</option>
<option value="./current.php?param=$param&vani=$vani">Istant Usage </option>
<option value="attiva">Historical</option>
</select>
<?php
$cwk=shell_exec("/bin/date +%W");
?>
From:
<select name="From" style="display:none;" id="From" onChange="cambia(window.document.form.From.options[selectedIndex].text,$cwk);">
<option selected="selected">---</option>
<?php
for ($i=1; $i<$cwk; $i++)
{
echo("<option>$i</option>\n");
}
?>
</select>
To:
<select name="To" style="display:none;" id="To" onChange="cambia(window.document.form.To.options[selectedIndex].text,$cwk);"> >
<option>---</option>
</select>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
</HEAD>
</BODY>
</HTML>
Cosa ne pensi? Ho visto che From e To vanno a capo ma non capisco il perche' e va aggiunta la possibilita' di inviare a storico.php solo nel caso si attivi.
grazie anticipatamente
Miwa