		function caricaNuoviPack(id_corr,pagina,idLogo) {
							new Ajax.Updater("packChange", "/nuoviPackFunc.asp?id="+id_corr+"&pag="+pagina+"&idLogo="+idLogo , {
														asynchronous:true,
														evalScripts:true
													}
							);
		}
		function caricaNuoviPackAll(myQuery,pagina,qta,divChange,condizione,title) {
							new Ajax.Updater(divChange, "/mostraPackFunc.asp?query="+myQuery+"&pag="+pagina+"&qta="+qta+"&condizione="+condizione+"&title="+title+"&divChange="+divChange , {
														asynchronous:true,
														evalScripts:true
													}
							);
		}
		function caricaCommenti(id_corr,pagina) {
							new Ajax.Updater("commentChange", "/nuoviCommentiFunc.asp?id="+id_corr+"&pag="+pagina , {
														asynchronous:true,
														evalScripts:true
													}
							);
		}
		function salvaCommento(id_corr,ilform,pagina) {
							new Ajax.Updater("commentChangeDo", "/nuoviCommentiFunc.asp?id="+id_corr+"&pag="+pagina , {
														asynchronous:true,
														evalScripts:true,
														parameters:Form.serialize(ilform)
													}
							);
		}
		function inviaQuestionario() {
						var myURL="/questionarioFunc.asp"
						new Ajax.Updater("domandeChange",  myURL, {
													asynchronous:true,
													evalScripts:true,
													parameters:Form.serialize('regQuest')
												}
						);
		}
		function lasciaCommento(id_corr) {
							new Ajax.Updater("commentChange", "/nuovoCommento.asp?id="+id_corr , {
														asynchronous:true,
														evalScripts:true
													}
							);
		}
		function caricaCarrello(cancella,procedi) {
							if (cancella!=undefined) {
								var myURL="/nuovoCarrello.asp?cancella="+cancella
							} else if (procedi) {
								var myURL="/nuovoCarrello.asp?procedi=1"
							} else {
								var myURL="/nuovoCarrello.asp"
							}
							new Ajax.Updater("carrelloChange",  myURL, {
														asynchronous:true,
														evalScripts:true,
														parameters:Form.serialize('quantitaForm')
													}
							);
		}
		
		function calcolaCoupon(variabile) {
			var myURL="/nuovoCarrello.asp?calcola="+variabile
			new Ajax.Updater("carrelloChange",  myURL, {
														asynchronous:true,
														evalScripts:true,
														parameters:Form.serialize('quantitaForm')
													}
							);
		}
		
		function caricaRegistrazione() {
							var myURL="/registrazioneFunc.asp"
							new Ajax.Updater("registrazioneChange",  myURL, {
														asynchronous:true,
														evalScripts:true,
														parameters:Form.serialize('regForm')
													}
							);
		}
		
		function caricaPromozioni(id_carrello, id_step, procedi) {
							var myURL="/nuovePromozioniFunc.asp?id="+id_carrello+"&step="+id_step
							new Ajax.Updater("promozioniChange",  myURL, {
														asynchronous:true,
														evalScripts:true,
														parameters:Form.serialize('quantitaPromozioni')
													}
							);
		}
		
		function caricaDestinazione() {
							var myURL="/destinazioneFunc.asp"
							new Ajax.Updater("destinazioneChange",  myURL, {
														asynchronous:true,
														evalScripts:true,
														parameters:Form.serialize('regForm')
													}
							);
		}
		function registraUtente() {
							$('bottoneRegistrati').hide();
							var myURL="/registratiFunc.asp"
							new Ajax.Updater("registratiChange",  myURL, {
														asynchronous:true,
														evalScripts:true,
														parameters:Form.serialize('regForm')
													}
							);
		}

		function registraUtenteClub() {
							var myURL="/registratiFuncClub.asp"
							new Ajax.Updater("registratiClubChange",  myURL, {
														asynchronous:true,
														evalScripts:true,
														parameters:Form.serialize('regForm')
													}
							);
		}


		function registraUtentePress() {
							var myURL="/registratiPressFunc.asp"
							new Ajax.Updater("registratiChange",  myURL, {
														asynchronous:true,
														evalScripts:true,
														parameters:Form.serialize('regForm')
													}
							);
		}
		function caricaSpazioCarrello() {
							new Ajax.Updater("spazioCarrello", "/spazioCarrelloFunc.asp" , {
														asynchronous:true,
														evalScripts:true
													}
							);
		}
		function caricaGenerico(idDiv,pageLoad) {
							new Ajax.Updater(idDiv, pageLoad , {
														asynchronous:true,
														evalScripts:true
													}
							);
							$(idDiv).show();
		}
		function logout() {
			document.location.href="/index.asp?logout=1"
		}
		function logoutpress() {
			document.location.href="/index.asp?logoutpress=1"
		}
	
		function CodCouponsControl(i554,i600) {
			new Ajax.Updater("ControlloCoupons-"+i600, "/CodCouponsControl.asp?idriga="+i600+"&id="+i554+"&cod="+ $('TXT_Coupons'+i600).value , {
				asynchronous:true,
				evalScripts:true
				}
				);
			} 
			function closeOverlayer() {
				Effect.Appear('myOverLayer',{from:1,to:0,duration:0.7})
				delay=setTimeout(function() {
					$('myOverLayer').innerHTML='';
				},700)
			}
			function attivaChiusura() {
				delay=setTimeout(function() {
				//alert("a")
					closeOverlayer();
				},15000)
			}
			
			function chekFastWeb(){
				var email1 = $('regForm')['TXT_EMAIL_OBLG'].value;
				var email2 = $('regForm')['TXT_EMAILCOPIA_OBLG'].value;
				if (email1.toLowerCase().indexOf('fastwebnet')>=0 || email2.toLowerCase().indexOf('fastwebnet')>=0){
					$('mexFastWeb').show()
				}else{
					$('mexFastWeb').hide()
				}
			}
	