function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function selezionaLingua(ID,IDa,pagina,lang){	        
    url = document.location.host;        
    if (IDa !=0)
	    url = "http://"+url+""+pagina+"?ID="+ID+"&IDa="+IDa+"&lang="+lang+"";			
	else if (ID !=0)
	    url = "http://"+url+""+pagina+"?ID="+ID+"&lang="+lang+"";			    
	else
	    url = "http://"+url+""+pagina+"?lang="+lang+"";			        
	document.forms[0].action = url;
	document.forms[0].submit();
}

function selezionaBudget(ID){	        
    url = document.location.host;    
	url = "http://"+url+"/catalogo_prodotti.aspx?IDb="+ID+"";			
	document.forms[0].action = url;
	document.forms[0].submit();
}


function selezionaTipologia(ID){	        
    url = document.location.host;    
	url = "http://"+url+"/catalogo_prodotti.aspx?prov=invio";			
	document.forms[0].action = url;
	document.forms[0].submit();
}

function registrati(){	    
    url = document.location.host;    
	url = "http://"+url+"/registrazione_step1.aspx?from=post";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}

function newsletter(){	        
	url = "http://alchimedia.mailupnet.it/frontend/subscribe.aspx";				
	document.forms[0].action = url;
	document.forms[0].target = "_blank";		
	
}



function prenota(){	    
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/prenota.aspx?from=post";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}

function registrati2(){	    
    url = document.location.host;    
	url = "http://"+url+"/registrazione_step2.aspx?from=post";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}

function modificaDati(){	    
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/modifica_dati.aspx?from=post";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}

function modificaDatiSped(){	    
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/modifica_dati_spedizione.aspx?from=post";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}

function login(){	    
    url = document.location.host;    
	url = "http://"+url+"/login.aspx?from=post";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}

function ricorda(){	        
    url = document.location.host;    
	url = "http://"+url+"/ricorda.aspx?from=post";			
	document.forms[0].action = url;
	//document.forms[0].submit();
}
function vaiARegistrati(){	    
    url = document.location.host;    
	url = "http://"+url+"/registrazione_step1.aspx";			
	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.aspx";		
	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 utilizzata procedere
function procedi2(){	
    url = document.location.host;    
	url = "http://"+url+"/service.aspx?trouble=noqMin";		
	document.forms[0].action = url;
}


// Funzione utilizzata procedere
function procediOfferta(){	
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/offerta.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 4 ritiro sede
function indietroStep4bis(){	
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/carrello_step3.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 4 ritiro sede
function procediCarStep4bis(){	
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/carrello_step5.aspx?from=sede";		
	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;
}


// Funzione utilizzata procedere carrello 6
function procediCarta(){	
    url = document.location.host;        
	url = "https://ecomm.sella.it/gestpay/pagam.asp";		
	document.forms[0].action = url;
}

function pagaPreview(){	        
    url = document.location.host;    
	url = "http://"+url+"/areaRiservata/pagaPreview.aspx";			
	document.forms[0].action = url;	
}

function ricerca(){	        
    url = document.location.host;    
	url = "http://"+url+"/risultati_ricerca.aspx";			
	document.forms[0].action = url;
	document.forms[0].submit();
}

function ricerca_avanzata(){	        
    url = document.location.host;    
	url = "http://"+url+"/risultati_ricerca.aspx?from=cerca";			
	document.forms[0].action = url;
	document.forms[0].submit();
}


