Ciao, volevo chiedervi come faccio a reperire il contenuto della variabile che utilizzo cosi:

codice:
	var cliente = sel.options[sel.selectedIndex].value;
	document.getElementById('server').options.length = 0;	
	if(cliente.length>0){
		var index = ajax.length;
		ajax[index] = new sack();
		ajax[index].requestFile = 'GetServerCliente.php?cliente='+cliente;	
		ajax[index].onCompletion = function(){ createServer(index) };	
		ajax[index].runAJAX();		
	}
}
function createServer(index)
{
	var obj = document.getElementById('server');
             eval(ajax[index].response);	


var prova1=document.getElementById('server').options.length; 	
alert(prova1);
Ora come vedete quando stampo la variabile prova1 mi stampa il numero degli elementi
che hanno popolato la select server, ma come faccio a stampare il .value considerando che non ho ancora selezionato nessun dato della select

La variabile obj che uso per popolare la select server viene impostata cosi':

echo "obj.options[obj.options.length] = new Option('$SERSRN|$SERNSP|$SERMOD|$SERPRO|$SERVRS|$S ERBLD|$SERASP|$SERREL');\n";


Ciao