function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function selezionaNumElementi(num,from,prov){	    
    url = document.location.host;                
    if (prov!='' && from=='lettera') 
	    url = "http://"+url+"/indice.aspx?num="+num+"&prov="+prov+"&from=lettera";				
	else if (prov!='') 
	    url = "http://"+url+"/indice.aspx?num="+num+"&prov="+prov+"";				
	else
	    url = "http://"+url+"/indice.aspx?num="+num+"";			    
	document.forms[0].action = url;
	document.forms[0].submit();
}

function selezionaNumElementiAvanz(num,from,prov){	    
    url = document.location.host;                
    if (prov!='' && from=='lettera') 
	    url = "http://"+url+"/ricerca_avanzata.aspx?num="+num+"&prov="+prov+"&from=lettera";				
	else if (prov!='') 
	    url = "http://"+url+"/ricerca_avanzata.aspx?num="+num+"&prov="+prov+"";				
	else
	    url = "http://"+url+"/ricerca_avanzata.aspx?num="+num+"";			    
	document.forms[0].action = url;
	document.forms[0].submit();
}

function ricercaAvanzata(url){	            
	url = ""+url+"/ricerca_avanzata.aspx";				
	document.forms[0].action = url;
	document.forms[0].submit();
}

function selezionaNumElementiAnni(num,prov){	    
    url = document.location.host;            
    if (prov=='' || prov=='lettera') 
	    url = "http://"+url+"/indice.aspx?num="+num+"&prov="+prov+"";				
	else
	    url = "http://"+url+"/indice_anni.aspx?num="+num+"";			    
	document.forms[0].action = url;
	document.forms[0].submit();
}

function selezionaNumElementiGiorni(num,prov){	    
    url = document.location.host;            
    if (prov=='' || prov=='lettera') 
	    url = "http://"+url+"/indice.aspx?num="+num+"&prov="+prov+"";				
	else
	    url = "http://"+url+"/indice_giorni.aspx?num="+num+"";			    
	document.forms[0].action = url;
	document.forms[0].submit();
}

function registrati(){	    
    url = document.location.host;    
	url = "http://"+url+"/registrazione_step1.htm?from=post";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}

function prenota(){	    
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/prenota.htm?from=post";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}

function registrati2(){	    
    url = document.location.host;    
	url = "http://"+url+"/registrazione_step2.htm?from=post";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}

function login(){	    
    url = document.location.host;    
	url = "http://"+url+"/login.htm?from=post";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}

function ricorda(){	        
    url = document.location.host;    
	url = "http://"+url+"/ricorda.htm?from=post";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}
function vaiARegistrati(){	    
    url = document.location.host;    
	url = "http://"+url+"/registrazione_step1.htm";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}

function vaiKiros(){	        
	url = "https://www.kirosrent.com/cgi-bin/kfs2/kfs_popup_ws.cgi";				
	document.forms[0].target="_blank"
	document.forms[0].action = url;
	document.forms[0].submit();
}

function addCarrello(){	        
	url = document.location.host;    
	url = "http://"+url+"/carrelloAdd.aspx";		
	document.forms[0].action = url;
	//document.forms[0].submit();
}

function tornaCatalogo(){	        
	url = document.location.host;    
	url = "http://"+url+"/catalogo_prodotti.htm";		
	document.forms[0].action = url;
	
}

// Funzione utilizzata nel carrello per aggiornare
function aggiorna(){	
    url = document.location.host;    
	url = "http://"+url+"/carrelloEdit.aspx";		
	document.forms[0].action = url;
}

// Funzione utilizzata procedere
function procedi(){	
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/carrello_step2.aspx";		
	document.forms[0].action = url;
}

// Funzione indietro
function indietro(){	   
	url = "javascript:history.back(-1);";		
	document.forms[0].action = url;	
}

// Funzione utilizzata indietro carrello 3
function indietroCarrello(){	
    url = document.location.host;    
	url = "http://"+url+"/carrello.aspx?from=prev";		
	document.forms[0].action = url;
}

// Funzione utilizzata indietro carrello 3
function indietroStep2(){	
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/carrello_step2.aspx?from=prev";		
	document.forms[0].action = url;
}

// Funzione utilizzata indietro carrello 3
function indietroStep3(){	
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/carrello_step3.aspx?from=prev";		
	document.forms[0].action = url;
}

// Funzione utilizzata indietro carrello 4
function indietroStep4(){	
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/carrello_step4.aspx?from=prev";		
	document.forms[0].action = url;
}

// Funzione utilizzata indietro carrello 5
function indietroStep5(){	
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/carrello_step5.aspx?from=prev";		
	document.forms[0].action = url;
}

// Funzione utilizzata procedere carrello 3
function procediCarStep3(){	
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/carrello_step3.aspx";		
	document.forms[0].action = url;
}

// Funzione utilizzata procedere carrello 4
function procediCarStep4(){	
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/carrello_step4.aspx";		
	document.forms[0].action = url;
}

// Funzione utilizzata procedere carrello 5
function procediCarStep5(){	
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/carrello_step5.aspx";		
	document.forms[0].action = url;
}

// Funzione utilizzata procedere carrello 6
function procediCarStep6(){	
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/bivio.aspx";		
	document.forms[0].action = url;
}
// Funzione utilizzata procedere kiros
function procediKiros(){	    
	url = "https://www.kirosrent.com/cgi-bin/kfs2/kfs_calc_ws.cgi";		
	document.forms[0].target="_blank"
	document.forms[0].action = url;
}

function ricerca(url,prov){	            
	url = ""+url+"/ricerca.aspx?prov="+prov+"";				
	document.forms[0].action = url;
	document.forms[0].submit();
}

function ricarica(ID,codice,pagina){	    
   url = document.location.host;    
   url = "http://"+url+"/indice_documento.aspx?ID="+ID+"&cod="+codice+"&page="+pagina+"";			
   document.forms[0].action = url;
   document.forms[0].submit();
   
   //location.reload(url);
   
}

function selezionaMenu(prov,ID,cod,pagina){	    
    url = document.location.host;    
	url = "http://"+url+"/indice_documento.aspx?prov="+prov+"&ID="+ID+"&cod="+cod+"&page="+pagina+"";			
	document.forms[0].action = url;
	document.forms[0].submit();
}