function popup(nome) {
	posx=(screen.width-500)/2;
	posy=(screen.height-500)/2;
	finestra=window.open('immagini/popup/popup.php?code='+nome,'popup','width=500, height=500');
	finestra.window.moveTo(posx,posy);
	finestra.window.focus();
}
function popupb(nome) {
	posx=(screen.width-500)/2;
	posy=(screen.height-375)/2;
	finestra=window.open('immagini/popup/popupb.php?code='+nome,'popup','width=500, height=375');
	finestra.window.moveTo(posx,posy);
	finestra.window.focus();
}
function rollover(oggetto,stato,livello){
	percorso="";
	quale="";
	for(i=0; i<livello; i++){
		percorso=percorso+"../";
	}
	if(stato==1){
		quale="h";
	}
	document[oggetto].src=percorso+"immagini/testate/"+oggetto+quale+".jpg";
}
tipicampi=new Array("r","v","e","m","p");
valori=new Array(0.4,0.5,0.65,0.85,0.9);
function conteggia(){
	for(i=0;i<tipicampi.length; i++){
		document.getElementById('ut' + tipicampi[i]).value=document.getElementById('max' + tipicampi[i]).value*valori[i];
	}
	t=setTimeout('conteggia()',500);
}
function sopra(nome) {
	document[nome].src="immagini/testata/"+nome+"h.jpg";
}
function fuori(nome) {
	document[nome].src="immagini/testata/"+nome+".jpg";
}
