<!--

function InviaaAmico()
{
var Compilato
Compilato = (document.Amico.text1.value != "") && (document.Amico.text2.value != "") && (document.Amico.text3.value !="") 

if (Compilato)
{
Primo=document.Amico.text1.value
Secondo=document.Amico.text2.value
Terzo=document.Amico.text3.value
Complessivo=Primo + "@" + Secondo + "." + Terzo
document.Amico.Destinatario.value=Complessivo
document.Amico.DaInviare.value="VERO"
document.Amico.submit()
}
else 
{
alert("Completa tutti i campi dell'e-mail")
document.Amico.reset()
}
}


function InviaaAmicoI()
{
var Compilato
Compilato = (document.Amico.text1.value != "") && (document.Amico.text2.value != "") && (document.Amico.text3.value !="") 

if (Compilato)
{
Primo=document.Amico.text1.value
Secondo=document.Amico.text2.value
Terzo=document.Amico.text3.value
Complessivo=Primo + "@" + Secondo + "." + Terzo
document.Amico.Destinatario.value=Complessivo
document.Amico.DaInviare.value="VERO"
document.Amico.submit()
}
else 
{
alert("Complete all e-mail fields")
document.Amico.reset()
}
}



function stato(msgStr) 
{ 
  status=msgStr;
  document.MM_returnValue = true;
}


function Salvataggio(par,Tot)
{
var Compilato
Compilato = (document.Aggiunta.Codice.value != "") && (document.Aggiunta.Nome.value != "") && (document.Aggiunta.Euro.value != "") && (document.Aggiunta.Numero.value != "") && (document.Aggiunta.Dollaro.value != "")

Piccola = document.Aggiunta.Miniatura.value
Grande = document.Aggiunta.Reale.value
Ricerca1 = /pic.jpg/
Posizione1 = Piccola.search(Ricerca1)
Stringa1 = Piccola.substr(0,Posizione1)
Ricerca2 = /gr.jpg/
Posizione2 = Grande.search(Ricerca2)
Stringa2 = Grande.substr(0,Posizione2)

if (Stringa1 != Stringa2)
{
alert("Controlla i nomi delle immagini")
}
else
{
if (Compilato) 
{
document.Aggiunta.NomeTabella.value=par
document.Aggiunta.Aggiungimento.value="ADD"
document.Aggiunta.action="Modifica.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}

}

function Uscita(par)
{
document.Aggiunta.NomeTabella.value=par
document.Aggiunta.action="Modifica.asp"
document.Aggiunta.submit()
}

function CEuro()
{
var sbagliato=new Boolean(false)
k = (document.Aggiunta.Euro.value).length
j=0
for (i=0;i<k;i++)
{
carattere = (document.Aggiunta.Euro.value).substr(i,1)

if ((carattere.charCodeAt(0) < 48) || (carattere.charCodeAt(0) > 57))
{
if (carattere.charCodeAt(0) == 44)
{ 
j=j+1 
}
else
{ 
sbagliato=true 
}
}
}
if (j>1)
{
sbagliato=true
}

if (sbagliato==true)
{
alert ("Ci sono dei caratteri non validi")
document.Aggiunta.Euro.value = ""
}
}

function CDollaro()
{
var sbagliato=new Boolean(false)
k = (document.Aggiunta.Dollaro.value).length
j=0
for (i=0;i<k;i++)
{
carattere = (document.Aggiunta.Dollaro.value).substr(i,1)

if ((carattere.charCodeAt(0) < 48) || (carattere.charCodeAt(0) > 57))
{
if (carattere.charCodeAt(0) == 44)
{ 
j=j+1 
}
else
{ 
sbagliato=true 
}
}
}
if (j>1)
{
sbagliato=true
}

if (sbagliato==true)
{
alert ("Ci sono dei caratteri non validi")
document.Aggiunta.Dollaro.value = ""
}
}







function CPezzi()
{
var sbagliato=new Boolean(false)
k = (document.Aggiunta.Numero.value).length
for (i=0;i<k;i++)
{
carattere = (document.Aggiunta.Numero.value).substr(i,1)
if ((carattere.charCodeAt(0) < 48) || (carattere.charCodeAt(0) > 57))
{
sbagliato=true
}
}

if (sbagliato==true)
{
alert ("Ci sono dei caratteri non validi")
document.Aggiunta.Numero.value = ""
}

}


function Nuovo(par,Tot)
{
var Compilato
Compilato = (document.Aggiunta.Codice.value != "") && (document.Aggiunta.Nome.value != "") && (document.Aggiunta.Euro.value != "") && (document.Aggiunta.Numero.value != "") && (document.Aggiunta.Dollaro.value != "")

Piccola = document.Aggiunta.Miniatura.value
Grande = document.Aggiunta.Reale.value
Ricerca1 = /pic.jpg/
Posizione1 = Piccola.search(Ricerca1)
Stringa1 = Piccola.substr(0,Posizione1)
Ricerca2 = /gr.jpg/
Posizione2 = Grande.search(Ricerca2)
Stringa2 = Grande.substr(0,Posizione2)

if (Stringa1 != Stringa2)
{
alert("Controlla i nomi delle immagini")
}
else
{
if (Compilato) 
{
document.Aggiunta.NomeTabella.value=par
document.Aggiunta.Aggiungimento.value="ADDNEW"
document.Aggiunta.action="ArtAggiunta.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}

}

function Svuota()
{
document.Aggiunta.reset()
}


function invio(nomeimmgrande,nometab,nomecolo)
{
document.Dettaglio.TestoImmagineGrande.value=nomeimmgrande
document.Dettaglio.NomeTabella.value=nometab
document.Dettaglio.NomeColore.value=nomecolo
document.Dettaglio.submit()
}


function SALVATAGGIO2(par)
{
var Compilato
Compilato = (document.Modifica.Codice.value != "") && (document.Modifica.Nome.value != "") && (document.Modifica.Euro.value != "") && (document.Modifica.Numero.value != "") && (document.Modifica.Dollaro.value != "")

Piccola = document.Modifica.Miniatura.value
Grande = document.Modifica.Reale.value
Ricerca1 = /pic.jpg/
Posizione1 = Piccola.search(Ricerca1)
Stringa1 = Piccola.substr(0,Posizione1)
Ricerca2 = /gr.jpg/
Posizione2 = Grande.search(Ricerca2)
Stringa2 = Grande.substr(0,Posizione2)

if (Stringa1 != Stringa2)
{
alert("Controlla i nomi delle immagini")
}
else
{
if (Compilato) 
{
document.Modifica.NomeTabella.value=par
document.Modifica.Modificazione.value="UPD"
document.Modifica.action="Modifica.asp"
document.Modifica.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
document.Modifica.reset()
}
}

}

function Uscita2(par)
{
document.Modifica.NomeTabella.value=par
document.Modifica.action="Modifica.asp"
document.Modifica.submit()
}


function CEuro2()
{
var sbagliato=new Boolean(false)
k = (document.Modifica.Euro.value).length
j=0
for (i=0;i<k;i++)
{
carattere = (document.Modifica.Euro.value).substr(i,1)

if ((carattere.charCodeAt(0) < 48) || (carattere.charCodeAt(0) > 57))
{
if (carattere.charCodeAt(0) == 44)
{ 
j=j+1 
}
else
{ 
sbagliato=true 
}
}
}
if (j>1)
{
sbagliato=true
}

if (sbagliato==true)
{
alert ("Ci sono dei caratteri non validi")
document.Modifica.Euro.value = ""
}
}


function CDollaro2()
{
var sbagliato=new Boolean(false)
k = (document.Modifica.Dollaro.value).length
j=0
for (i=0;i<k;i++)
{
carattere = (document.Modifica.Dollaro.value).substr(i,1)

if ((carattere.charCodeAt(0) < 48) || (carattere.charCodeAt(0) > 57))
{
if (carattere.charCodeAt(0) == 44)
{ 
j=j+1 
}
else
{ 
sbagliato=true 
}
}
}
if (j>1)
{
sbagliato=true
}

if (sbagliato==true)
{
alert ("Ci sono dei caratteri non validi")
document.Modifica.Dollaro.value = ""
}
}




function CPezzi2()
{
var sbagliato=new Boolean(false)
k = (document.Modifica.Numero.value).length
for (i=0;i<k;i++)
{
carattere = (document.Modifica.Numero.value).substr(i,1)
if ((carattere.charCodeAt(0) < 48) || (carattere.charCodeAt(0) > 57))
{
sbagliato=true
}
}

if (sbagliato==true)
{
alert ("Ci sono dei caratteri non validi")
document.Modifica.Numero.value = ""
}
}

function Ripristina()
{
document.Modifica.reset()
}


function SvuotaCampi()
{
document.Modifica.Codice.value = ""
document.Modifica.Nome.value = ""
document.Modifica.Miniatura.value = ""
document.Modifica.Reale.value = ""
document.Modifica.Dollaro.value=""
document.Modifica.Euro.value=""
document.Modifica.Colore.value=""
document.Modifica.Numero.value = ""
}

function Aggiorna()
{
carrello.action="CarrelloSessione.asp";
document.carrello.submit();
}

function AggiornaI()
{
carrello.action="CarrelloSessioneI.asp";
document.carrello.submit();
}

function Ordina()
{
carrello.action="Controlla.asp";
document.carrello.submit();
}

function OrdinaI()
{
carrello.action="ControllaI.asp";
document.carrello.submit();
}

function Dett(par)
{
   if (par.substr(0,2) == "KI")
    {
    document.carrello.NomeColore.value="d9ffd9";
    document.carrello.NomeTabella.value="KinderSerieI";
    document.carrello.TestoImmagineGrande.value="DaCarrello"+par;
    Trovato=true;
    }
   if (par.substr(0,2) == "KD") 
    {
    document.carrello.NomeColore.value="fee9f1";
    document.carrello.NomeTabella.value="KinderSerieD";
    document.carrello.TestoImmagineGrande.value="DaCarrello"+par;
    Trovato=true;
    } 
   if (par.substr(0,2) == "KE")
    {
    document.carrello.NomeColore.value="e0eff8";
    document.carrello.NomeTabella.value="KinderSerieE";
    document.carrello.TestoImmagineGrande.value="DaCarrello"+par;
    Trovato=true;
    }
   if (par.substr(0,2) == "PI") 
    { 
    document.carrello.NomeColore.value="d9ffd9";
    document.carrello.NomeTabella.value="PuzzleI";
    document.carrello.TestoImmagineGrande.value="DaCarrello"+par;
    Trovato=true;
    }
   if (par.substr(0,2) == "PD")
    {
    document.carrello.NomeColore.value="fee9f1";
    document.carrello.NomeTabella.value="PuzzleD";
    document.carrello.TestoImmagineGrande.value="DaCarrello"+par;
    Trovato=true;
    }
   if (par.substr(0,2) == "SO")
    {
    document.carrello.NomeColore.value="ffffff";
    document.carrello.NomeTabella.value="Soldatini";
    document.carrello.TestoImmagineGrande.value="DaCarrello"+par;
    }
  
 document.carrello.action="Dettagli.asp";
 document.carrello.submit();
}

function Svuota2()
{
document.Dettaglio.SoloMostra.value=""
}

function Mostra()
{
document.Dettaglio.action="CarrelloSessione.asp";
document.Dettaglio.SoloMostra.value="VERO";
document.Dettaglio.submit();
}

function MostraI()
{
document.Dettaglio.action="CarrelloSessioneI.asp";
document.Dettaglio.SoloMostra.value="VERO";
document.Dettaglio.submit();
}



function Aggiungi()
{
document.Dettaglio.action="CarrelloSessione.asp";
document.Dettaglio.SoloMostra.value="FALSO";
document.Dettaglio.submit();
}

function AggiungiI()
{
document.Dettaglio.action="CarrelloSessioneI.asp";
document.Dettaglio.SoloMostra.value="FALSO";
document.Dettaglio.submit();
}


function Acquista()
{
window.open("Formmail.asp","Immagine","toolbar=no, location=no, directory=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=445, height=450, left=276, top=10")
}


function Torna()
{
history.go(-1)
}

function Controlla() 
{
var Compilato
Compilato = (document.Registra.cognome.value != "") && (document.Registra.nome.value != "") && (document.Registra.via.value != "") && (document.Registra.cap.value != "") && (document.Registra.citta.value != "") && (document.Registra.stato.value != "") && (document.Registra.email.value != "") && (document.Registra.prodotto.value != "")

if (Compilato) {
document.Registra.submit()
} 
else {
alert("Completa tutti i campi")
}
}

function Barrastato(msgStr) 
{ 
  status=msgStr;
  document.MM_returnValue = true;
}

function Annulla()
{
document.Registra.reset();
}

function EliminaCollegamento(par,par2)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.Test.value="CANC"
document.Aggiornamento.Totali.value=par2
document.Aggiornamento.action="GestioneLink.asp"
document.Aggiornamento.submit()
}

function ModificaCollegamento(par)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.action="LinkModifica.asp"
document.Aggiornamento.submit()
}

function Torna2()
{
document.Aggiornamento.action="Seleziona.asp"
document.Aggiornamento.submit()
}

function AggiungiCollegamento(par)
{
document.Aggiornamento.Totali.value=par
document.Aggiornamento.action="LinkAggiunta.asp"
document.Aggiornamento.submit()
}


function EliminaAnnuncio(par,par2)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.Test.value="CANC"
document.Aggiornamento.Totali.value=par2
document.Aggiornamento.action="GestioneMercatino.asp"
document.Aggiornamento.submit()
}

function EliminaAnnuncioI(par,par2)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.Test.value="CANC"
document.Aggiornamento.Totali.value=par2
document.Aggiornamento.action="GestioneMercatinoI.asp"
document.Aggiornamento.submit()
}


function ModificaAnnuncio(par)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.action="MerModifica.asp"
document.Aggiornamento.submit()
}

function ModificaAnnuncioI(par)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.action="MerModificaI.asp"
document.Aggiornamento.submit()
}


function Torna3()
{
document.Aggiornamento.action="Seleziona.asp"
document.Aggiornamento.submit()
}

function AggiungiAnnuncio(par)
{
document.Aggiornamento.Totali.value=par
document.Aggiornamento.action="MerAggiunta.asp"
document.Aggiornamento.submit()
}

function AggiungiAnnuncioI(par)
{
document.Aggiornamento.Totali.value=par
document.Aggiornamento.action="MerAggiuntaI.asp"
document.Aggiornamento.submit()
}






function EliminaPromozione(par,par2)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.Test.value="CANC"
document.Aggiornamento.Totali.value=par2
document.Aggiornamento.action="GestionePromozioni.asp"
document.Aggiornamento.submit()
}

function EliminaPromozioneI(par,par2)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.Test.value="CANC"
document.Aggiornamento.Totali.value=par2
document.Aggiornamento.action="GestionePromozioniI.asp"
document.Aggiornamento.submit()
}



function EliminaNovita(par,par2)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.Test.value="CANC"
document.Aggiornamento.Totali.value=par2
document.Aggiornamento.action="GestioneNovita.asp"
document.Aggiornamento.submit()
}

function EliminaNovitaI(par,par2)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.Test.value="CANC"
document.Aggiornamento.Totali.value=par2
document.Aggiornamento.action="GestioneNovitaI.asp"
document.Aggiornamento.submit()
}



function ModificaNovita(par)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.action="NovitaModifica.asp"
document.Aggiornamento.submit()
}

function ModificaNovitaI(par)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.action="NovitaModificaI.asp"
document.Aggiornamento.submit()
}


function AggiungiNovita(par)
{
document.Aggiornamento.Totali.value=par
document.Aggiornamento.action="NovitaAggiunta.asp"
document.Aggiornamento.submit()
}

function AggiungiNovitaI(par)
{
document.Aggiornamento.Totali.value=par
document.Aggiornamento.action="NovitaAggiuntaI.asp"
document.Aggiornamento.submit()
}













function ModificaPromozione(par)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.action="PromoModifica.asp"
document.Aggiornamento.submit()
}

function ModificaPromozioneI(par)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.action="PromoModificaI.asp"
document.Aggiornamento.submit()
}


function Torna4()
{
document.Aggiornamento.action="Seleziona.asp"
document.Aggiornamento.submit()
}

function AggiungiPromozione(par)
{
document.Aggiornamento.Totali.value=par
document.Aggiornamento.action="PromoAggiunta.asp"
document.Aggiornamento.submit()
}

function AggiungiPromozioneI(par)
{
document.Aggiornamento.Totali.value=par
document.Aggiornamento.action="PromoAggiuntaI.asp"
document.Aggiornamento.submit()
}



function EliminaUtente(par,par2)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.Test.value="CANC"
document.Aggiornamento.Totali.value=par2
document.Aggiornamento.action="GestioneUtenti.asp"
document.Aggiornamento.submit()
}

function ModificaUtente(par)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.action="UtentiModifica.asp"
document.Aggiornamento.submit()
}

function Torna5()
{
document.Aggiornamento.action="Seleziona.asp"
document.Aggiornamento.submit()
}

function AggiungiUtente(par)
{
document.Aggiornamento.Totali.value=par
document.Aggiornamento.action="UtentiAggiunta.asp"
document.Aggiornamento.submit()
}
function ApriFinestra(par)
{
window.open(par,"Immagine","toolbar=no, location=no, directory=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=470, height=180")
}

function TornaLista(par)
{
document.Sincro.NomeTabella.value=par
document.Sincro.action="Modifica.asp"
document.Sincro.submit()
}


function AggiungiUna(par,par2)
{
document.Sincro.NomeFile.value=par
document.Sincro.NomeTabella.value=par2
document.Sincro.Test.value="ADD1"
document.Sincro.action="Immagini.asp"
document.Sincro.submit()
}

function EliminaUna(par,par2)
{
document.Sincro.NomeFile.value=par
document.Sincro.NomeTabella.value=par2
document.Sincro.Test.value="DEL1"
document.Sincro.action="Immagini.asp"
document.Sincro.submit()
}


function InviaImm(par)
{
document.Sincro.NomeTabella.value=par
document.Sincro.Test2.value="ADDALL"
document.Sincro.action="Immagini.asp"
document.Sincro.submit()
}


function EliminaImm(par)
{
document.Sincro.NomeTabella.value=par
document.Sincro.Test2.value="DELALL"
document.Sincro.action="Immagini.asp"
document.Sincro.submit()
}

function Entrambi(par)
{
document.Sincro.NomeTabella.value=par
document.Sincro.Test2.value="EITHER"
document.Sincro.action="Immagini.asp"
document.Sincro.submit()
}


function Aggiorna2(par)
{
document.Sincro.NomeTabella.value=par
document.Sincro.action="Immagini.asp"
document.Sincro.submit()
}

function Salvataggio3(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txNome.value != "") && (document.Aggiunta.txCollegamento.value != "")

if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADD"
document.Aggiunta.action="GestioneLink.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}



function Uscita3()
{
document.Aggiunta.action="GestioneLink.asp"
document.Aggiunta.submit()
}




function Nuovo3(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txNome.value != "") && (document.Aggiunta.txCollegamento.value != "") 
if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADDNEW"
document.Aggiunta.action="LinkAggiunta.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}


function Svuota3()
{
document.Aggiunta.reset()
}


function Salvataggio4()
{
var Compilato
Compilato = (document.Modifica.txNome.value != "") && (document.Modifica.txCollegamento.value != "")  

if (Compilato) 
{
document.Modifica.Modificazione.value="UPD"
document.Modifica.action="GestioneLink.asp"
document.Modifica.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
document.Modifica.reset()
}
}


function Uscita4()
{
document.Modifica.action="GestioneLink.asp"
document.Modifica.submit()
}

function Ripristina4()
{
document.Modifica.reset()
}


function SvuotaCampi4()
{
document.Modifica.txNome.value = ""
document.Modifica.txCollegamento.value = ""
}

function Manda()
{
document.form1.action="Controllo.asp"
document.form1.submit()
}

function Resetta()
{
document.form1.reset()
}


function Torna8()
{
document.Mailing.action="Seleziona.asp"
document.Mailing.submit()
}

function Deseleziona(n)
{
for (i=0;i<n;i++)
{
document.Mailing.Valido(i).checked=false
}
}

function Seleziona(n)
{
for (i=0;i<n;i++)
{
document.Mailing.Valido(i).checked=true
}
}

function SoloClub(n)
{
for (i=0;i<n;i++)
{
if (document.Mailing.Club(i).value=="Si")
{
document.Mailing.Valido(i).checked=true
}
else
{
document.Mailing.Valido(i).checked=false
}
}
}

function NonClub(n)
{
for (i=0;i<n;i++)
{
if (document.Mailing.Club(i).value=="No")
{
document.Mailing.Valido(i).checked=true
}
else
{
document.Mailing.Valido(i).checked=false
}
}
}




function InviaEMail(n)
{
var Compilato
Compilato = (document.Mailing.Mittente.value != "") && (document.Mailing.Soggetto.value != "") && (document.Mailing.Corpo.value != "") 

if (Compilato) 
{
pieni=0
for (i=0;i<n;i++)
{
if (document.Mailing.Valido(i).checked==true) 
{
pieni++
}
}

if (pieni>0)
{
document.Mailing.Test.value="INVIA"
document.Mailing.action="Seleziona.asp"
document.Mailing.submit()
}
else
{
alert("Deve esserci almeno un destinatario!")
}
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}

function Svuota8()
{
document.Mailing.Mittente.value=""
document.Mailing.Soggetto.value=""
document.Mailing.Corpo.value=""
}


function Ripristina8()
{
document.Mailing.reset()
}


function Salvataggio9(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txOggetto.value != "") && (document.Aggiunta.txAutore.value != "") && (document.Aggiunta.txAnnuncio.value != "") 

if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADD"
document.Aggiunta.action="GestioneMercatino.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}


function Salvataggio9I(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txOggetto.value != "") && (document.Aggiunta.txAutore.value != "") && (document.Aggiunta.txAnnuncio.value != "") 

if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADD"
document.Aggiunta.action="GestioneMercatinoI.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}



function Uscita9()
{
document.Aggiunta.action="GestioneMercatino.asp"
document.Aggiunta.submit()
}

function Uscita9I()
{
document.Aggiunta.action="GestioneMercatinoI.asp"
document.Aggiunta.submit()
}



function Nuovo9(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txOggetto.value != "") && (document.Aggiunta.txAnnuncio.value != "") && (document.Aggiunta.txAutore.value != "") 
if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADDNEW"
document.Aggiunta.action="MerAggiunta.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}

function Nuovo9(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txOggetto.value != "") && (document.Aggiunta.txAnnuncio.value != "") && (document.Aggiunta.txAutore.value != "") 
if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADDNEW"
document.Aggiunta.action="MerAggiuntaI.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}



function Svuota9()
{
document.Aggiunta.reset()
}



function Salvataggio11()
{
var Compilato
Compilato = (document.Modifica.txOggetto.value != "") && (document.Modifica.txAutore.value != "") && (document.Modifica.txAnnuncio.value != "") 

if (Compilato) 
{
document.Modifica.Modificazione.value="UPD"
document.Modifica.action="GestioneMercatino.asp"
document.Modifica.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
document.Modifica.reset()
}
}


function Salvataggio11I()
{
var Compilato
Compilato = (document.Modifica.txOggetto.value != "") && (document.Modifica.txAutore.value != "") && (document.Modifica.txAnnuncio.value != "") 

if (Compilato) 
{
document.Modifica.Modificazione.value="UPD"
document.Modifica.action="GestioneMercatinoI.asp"
document.Modifica.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
document.Modifica.reset()
}
}


function Uscita11()
{
document.Modifica.action="GestioneMercatino.asp"
document.Modifica.submit()
}

function Uscita11I()
{
document.Modifica.action="GestioneMercatinoI.asp"
document.Modifica.submit()
}


function Ripristina11()
{
document.Modifica.reset()
}


function SvuotaCampi11()
{
document.Modifica.txOggetto.value = ""
document.Modifica.txAutore.value = ""
document.Modifica.txAnnuncio.value = ""
}


function EliminaArticolo(par,par2,par3)
{

document.Aggiornamento.Elemento.value=par
document.Aggiornamento.Test.value="CANC"
document.Aggiornamento.NomeTabella.value=par2
document.Aggiornamento.Totali.value=par3
document.Aggiornamento.action="Modifica.asp"
document.Aggiornamento.submit()
}

function ModificaArticolo(par,par2)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.NomeTabella.value=par2
document.Aggiornamento.action="ArtModifica.asp"
document.Aggiornamento.submit()
}

function TornaF()
{
document.Aggiornamento.action="Scelts.asp"
document.Aggiornamento.submit()
}

function AggiungiArticolo(par,par2,par3)
{
document.Aggiornamento.Elemento.value=par
document.Aggiornamento.NomeTabella.value=par2
document.Aggiornamento.Totali.value=par3
document.Aggiornamento.action="ArtAggiunta.asp"
document.Aggiornamento.submit()
}

function InviaImmagini(par)
{
document.Aggiornamento.NomeTabella.value=par
document.Aggiornamento.action="Immagini.asp"
document.Aggiornamento.submit()
}


function Salvataggio13(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txPromozione.value != "") && (document.Aggiunta.txTitolo.value != "")&& (document.Aggiunta.NomeImmagine.value != "")

if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADD"
document.Aggiunta.action="GestionePromozioni.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}

function Salvataggio13I(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txPromozione.value != "") && (document.Aggiunta.txTitolo.value != "") && (document.Aggiunta.NomeImmagine.value != "")

if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADD"
document.Aggiunta.action="GestionePromozioniI.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}

function Uscita13I()
{
document.Aggiunta.action="GestionePromozioniI.asp"
document.Aggiunta.submit()
}


function Uscita13()
{
document.Aggiunta.action="GestionePromozioni.asp"
document.Aggiunta.submit()
}




function Nuovo13(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txPromozione.value != "") && (document.Aggiunta.txTitolo.value != "") && (document.Aggiunta.NomeImmagine.value != "")
if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADDNEW"
document.Aggiunta.action="PromoAggiunta.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}

function Nuovo13I(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txPromozione.value != "") && (document.Aggiunta.txTitolo.value != "") && (document.Aggiunta.NomeImmagine.value != "")
if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADDNEW"
document.Aggiunta.action="PromoAggiuntaI.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}


function Svuota13()
{
document.Aggiunta.reset()
}


function Salvataggio14()
{
var Compilato
Compilato = (document.Modifica.txPromozione.value != "") && (document.Modifica.txTitolo.value != "") && (document.Modifica.NomeImmagine.value != "")

if (Compilato) 
{

document.Modifica.Modificazione.value="UPD"
document.Modifica.action="GestionePromozioni.asp"
document.Modifica.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
document.Modifica.reset()
}
}


function Salvataggio14I()
{
var Compilato
Compilato = (document.Modifica.txPromozione.value != "") && (document.Modifica.txTitolo.value != "") && (document.Modifica.NomeImmagine.value != "")

if (Compilato) 
{

document.Modifica.Modificazione.value="UPD"
document.Modifica.action="GestionePromozioniI.asp"
document.Modifica.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
document.Modifica.reset()
}
}

function Uscita14I()
{
document.Modifica.action="GestionePromozioniI.asp"
document.Modifica.submit()
}


function Uscita14()
{
document.Modifica.action="GestionePromozioni.asp"
document.Modifica.submit()
}

function Ripristina14()
{
document.Modifica.reset()
}


function SvuotaCampi14()
{
document.Modifica.txPromozione.value = ""
document.Modifica.txTitolo.value = ""
document.Modifica.NomeImmagine.value = ""
}













function Salvataggio15(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txNovita.value != "") && (document.Aggiunta.txTitolo.value != "")&& (document.Aggiunta.NomeImmagine.value != "")

if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADD"
document.Aggiunta.action="GestioneNovita.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}

function Salvataggio15I(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txNovita.value != "") && (document.Aggiunta.txTitolo.value != "") && (document.Aggiunta.NomeImmagine.value != "")

if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADD"
document.Aggiunta.action="GestioneNovitaI.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}

function Uscita15I()
{
document.Aggiunta.action="GestioneNovitaI.asp"
document.Aggiunta.submit()
}


function Uscita15()
{
document.Aggiunta.action="GestioneNovita.asp"
document.Aggiunta.submit()
}




function Nuovo15(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txNovita.value != "") && (document.Aggiunta.txTitolo.value != "") && (document.Aggiunta.NomeImmagine.value != "")
if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADDNEW"
document.Aggiunta.action="NovitaAggiunta.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}

function Nuovo15I(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txNovita.value != "") && (document.Aggiunta.txTitolo.value != "") && (document.Aggiunta.NomeImmagine.value != "")
if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADDNEW"
document.Aggiunta.action="NovitaAggiuntaI.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}


function Svuota15()
{
document.Aggiunta.reset()
}


















function Salvataggio16()
{
var Compilato
Compilato = (document.Modifica.txNovita.value != "") && (document.Modifica.txTitolo.value != "") && (document.Modifica.NomeImmagine.value != "")

if (Compilato) 
{

document.Modifica.Modificazione.value="UPD"
document.Modifica.action="GestioneNovita.asp"
document.Modifica.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
document.Modifica.reset()
}
}


function Salvataggio16I()
{
var Compilato
Compilato = (document.Modifica.txNovita.value != "") && (document.Modifica.txTitolo.value != "") && (document.Modifica.NomeImmagine.value != "")

if (Compilato) 
{

document.Modifica.Modificazione.value="UPD"
document.Modifica.action="GestioneNovitaI.asp"
document.Modifica.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
document.Modifica.reset()
}
}

function Uscita16I()
{
document.Modifica.action="GestioneNovitaI.asp"
document.Modifica.submit()
}


function Uscita16()
{
document.Modifica.action="GestioneNovita.asp"
document.Modifica.submit()
}

function Ripristina16()
{
document.Modifica.reset()
}


function SvuotaCampi16()
{
document.Modifica.txNovita.value = ""
document.Modifica.txTitolo.value = ""
document.Modifica.NomeImmagine.value = ""
}




























function Controlla20() 
{
var Compilato
Compilato = (document.Registra.cognome.value != "") && (document.Registra.nome.value != "") && (document.Registra.via.value != "") && (document.Registra.cap.value != "") && (document.Registra.citta.value != "") && (document.Registra.stato.value != "") && (document.Registra.email.value != "")

if (Compilato) {
document.Registra.submit()
} 
else {
alert("Completa tutti i campi")
}
}

function Controlla20I() 
{
var Compilato
Compilato = (document.Registra.cognome.value != "") && (document.Registra.nome.value != "") && (document.Registra.via.value != "") && (document.Registra.cap.value != "") && (document.Registra.citta.value != "") && (document.Registra.stato.value != "") && (document.Registra.email.value != "")

if (Compilato) {
document.Registra.submit()
} 
else {
alert("Complete all fields")
}
}


function Annulla20()
{
document.Registra.reset();
}

function Annulla20I()
{
document.Registra.reset();
}




function Controlla21() 
{
var Compilato
Compilato = (document.Registra.cognome.value != "") && (document.Registra.nome.value != "") && (document.Registra.via.value != "") && (document.Registra.cap.value != "") && (document.Registra.citta.value != "") && (document.Registra.stato.value != "") && (document.Registra.email.value != "")

if (Compilato) {
document.Registra.submit()
} 
else {
alert("Completa tutti i campi")
}
}


function Annulla21()
{
document.Registra.reset();
}

function Annunci()
{
document.Registra.action="Mercatino.asp"
document.Registra.submit()
}


function Inviadati(par)
{
document.Tabella.NomeTabella.value=par
document.Tabella.submit()
}

function Torna30()
{
document.Tabella.action="Seleziona.asp"
document.Tabella.submit()
}


function Serie()
{
document.Inizio.action="scelts.asp"
document.Inizio.submit()
}

function Mailing()
{
document.Inizio.action="MailingList.asp"
document.Inizio.submit()
}

function Mercatino()
{
document.Inizio.action="GestioneMercatino.asp"
document.Inizio.submit()
}

function MercatinoI()
{
document.Inizio.action="GestioneMercatinoI.asp"
document.Inizio.submit()
}


function Link()
{
document.Inizio.action="GestioneLink.asp"
document.Inizio.submit()
}

function Promozioni()
{
document.Inizio.action="GestionePromozioni.asp"
document.Inizio.submit()
}

function PromozioniI()
{
document.Inizio.action="GestionePromozioniI.asp"
document.Inizio.submit()
}





function Novita()
{
document.Inizio.action="GestioneNovita.asp"
document.Inizio.submit()
}

function NovitaI()
{
document.Inizio.action="GestioneNovitaI.asp"
document.Inizio.submit()
}





function Utenti()
{
document.Inizio.action="GestioneUtenti.asp"
document.Inizio.submit()
}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {

status="Collection Island";
  document.MM_returnValue = true;

	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		Nonkinder_01_over = newImage("immagininonkinder/Nonkinder_01-over.gif");
		Nonkinder_02_over = newImage("immagininonkinder/Nonkinder_02-over.gif");
		Nonkinder_03_Nonkinder_01_over = newImage("immagininonkinder/Nonkinder_03-Nonkinder_01_o.gif");
		Nonkinder_04_Nonkinder_02_over = newImage("immagininonkinder/Nonkinder_04-Nonkinder_02_o.gif");
		Nonkinder_05_Nonkinder_01_over = newImage("immagininonkinder/Nonkinder_05-Nonkinder_01_o.gif");
		Nonkinder_06_Nonkinder_02_over = newImage("immagininonkinder/Nonkinder_06-Nonkinder_02_o.gif");
		Nonkinder_07_Nonkinder_01_over = newImage("immagininonkinder/Nonkinder_07-Nonkinder_01_o.gif");
		Nonkinder_08_Nonkinder_02_over = newImage("immagininonkinder/Nonkinder_08-Nonkinder_02_o.gif");
		Nonkinder_09_Nonkinder_01_over = newImage("immagininonkinder/Nonkinder_09-Nonkinder_01_o.gif");
		Nonkinder_10_Nonkinder_02_over = newImage("immagininonkinder/Nonkinder_10-Nonkinder_02_o.gif");
		Nonkinder_11_Nonkinder_01_over = newImage("immagininonkinder/Nonkinder_11-Nonkinder_01_o.gif");
		Nonkinder_12_Nonkinder_02_over = newImage("immagininonkinder/Nonkinder_12-Nonkinder_02_o.gif");
		Nonkinder_13_Nonkinder_01_over = newImage("immagininonkinder/Nonkinder_13-Nonkinder_01_o.gif");
		Nonkinder_14_Nonkinder_02_over = newImage("immagininonkinder/Nonkinder_14-Nonkinder_02_o.gif");
		Nonkinder_15_Nonkinder_01_over = newImage("immagininonkinder/Nonkinder_15-Nonkinder_01_o.gif");
		Nonkinder_16_Nonkinder_02_over = newImage("immagininonkinder/Nonkinder_16-Nonkinder_02_o.gif");
		Nonkinder_17_Nonkinder_01_over = newImage("immagininonkinder/Nonkinder_17-Nonkinder_01_o.gif");
		Nonkinder_18_Nonkinder_02_over = newImage("immagininonkinder/Nonkinder_18-Nonkinder_02_o.gif");
		Nonkinder_19_Nonkinder_01_over = newImage("immagininonkinder/Nonkinder_19-Nonkinder_01_o.gif");
		Nonkinder_20_Nonkinder_02_over = newImage("immagininonkinder/Nonkinder_20-Nonkinder_02_o.gif");
		Nonkinder_21_Nonkinder_01_over = newImage("immagininonkinder/Nonkinder_21-Nonkinder_01_o.gif");
		Nonkinder_22_Nonkinder_02_over = newImage("immagininonkinder/Nonkinder_22-Nonkinder_02_o.gif");
		Nonkinder_23_Nonkinder_01_over = newImage("immagininonkinder/Nonkinder_23-Nonkinder_01_o.gif");
		preloadFlag = true;
	}
}


function Salvataggio50(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txNome.value != "") && (document.Aggiunta.txCognome.value != "") && (document.Aggiunta.txVia.value != "") && (document.Aggiunta.txEmail.value != "") && (document.Aggiunta.txCitta.value != "") && (document.Aggiunta.txStato.value != "") && (document.Aggiunta.txCap.value != "")

if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADD"
document.Aggiunta.action="GestioneUtenti.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}



function Uscita50()
{
document.Aggiunta.action="GestioneUtenti.asp"
document.Aggiunta.submit()
}




function Nuovo50(Tot)
{
var Compilato
Compilato = (document.Aggiunta.txNome.value != "") && (document.Aggiunta.txCognome.value != "") && (document.Aggiunta.txVia.value != "") && (document.Aggiunta.txEmail.value != "") && (document.Aggiunta.txCitta.value != "") && (document.Aggiunta.txStato.value != "") && (document.Aggiunta.txCap.value != "")
if (Compilato) 
{
document.Aggiunta.Aggiungimento.value="ADDNEW"
document.Aggiunta.action="UtentiAggiunta.asp"
document.Aggiunta.Totali.value=(parseInt(Tot)+1)
document.Aggiunta.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
}
}


function Svuota50()
{
document.Aggiunta.reset()
}


function Salvataggio60()
{
var Compilato
Compilato = (document.Modifica.txNome.value != "") && (document.Modifica.txCognome.value != "") && (document.Modifica.txVia.value != "") && (document.Modifica.txEmail.value != "") && (document.Modifica.txCitta.value != "") && (document.Modifica.txStato.value != "") && (document.Modifica.txCap.value != "")

if (Compilato) 
{

document.Modifica.Modificazione.value="UPD"
document.Modifica.action="GestioneUtenti.asp"
document.Modifica.submit()
} 
else 
{
alert("Completa i campi con l'asterisco")
document.Modifica.reset()
}
}


function Uscita60()
{
document.Modifica.action="GestioneUtenti.asp"
document.Modifica.submit()
}

function Ripristina60()
{
document.Modifica.reset()
}


function SvuotaCampi60()
{
document.Modifica.txNome.value = ""
document.Modifica.txCognome.value = "" 
document.Modifica.txVia.value = ""
document.Modifica.txEmail.value = ""
document.Modifica.txCitta.value = ""
document.Modifica.txStato.value = ""
document.Modifica.txCap.value = ""
document.Modifica.checkClub.checked = false
}


function Dett2(par)
{
   if (par.substr(0,2) == "KI")
    {
    document.ordine.NomeColore.value="d9ffd9";
    document.ordine.NomeTabella.value="KinderSerieI";
    document.ordine.TestoImmagineGrande.value="DaCarrello"+par;
    Trovato=true;
    }
   if (par.substr(0,2) == "KD") 
    {
    document.ordine.NomeColore.value="fee9f1";
    document.ordine.NomeTabella.value="KinderSerieD";
    document.ordine.TestoImmagineGrande.value="DaCarrello"+par;
    Trovato=true;
    } 
   if (par.substr(0,2) == "KE")
    {
    document.ordine.NomeColore.value="e0eff8";
    document.ordine.NomeTabella.value="KinderSerieE";
    document.ordine.TestoImmagineGrande.value="DaCarrello"+par;
    Trovato=true;
    }
   if (par.substr(0,2) == "PI") 
    { 
    document.ordine.NomeColore.value="d9ffd9";
    document.ordine.NomeTabella.value="PuzzleI";
    document.ordine.TestoImmagineGrande.value="DaCarrello"+par;
    Trovato=true;
    }
   if (par.substr(0,2) == "PD")
    {
    document.ordine.NomeColore.value="fee9f1";
    document.ordine.NomeTabella.value="PuzzleD";
    document.ordine.TestoImmagineGrande.value="DaCarrello"+par;
    Trovato=true;
    }
   if (par.substr(0,2) == "SO")
    {
    document.ordine.NomeColore.value="ffffff";
    document.ordine.NomeTabella.value="Soldatini";
    document.ordine.TestoImmagineGrande.value="DaCarrello"+par;
    }
  
 document.ordine.action="Dettagli.asp";
 document.ordine.submit();
}



function Carrello()
{
document.ordine.action="CarrelloSessione.asp";
document.ordine.submit();
}

function CarrelloI()
{
document.ordine.action="CarrelloSessioneI.asp";
document.ordine.submit();
}



function Ordinazione2()
{
var Compilato
Compilato = (document.ordine.TotaleLire.value != "") 

if (Compilato) {
document.ordine.action="Ordina2.asp";
document.ordine.submit();
} 
else {
alert("Completa tutti i campi")
}
}

function Ordinazione2I()
{
var Compilato
Compilato = (document.ordine.TotaleDollari.value != "")

if (Compilato) {
document.ordine.action="Ordina2I.asp";
document.ordine.submit();
} 
else {
alert("Complete all fields")
}
}



function OrdinazioneI()
{

if ((document.ordine.nominativo.value != "") && (document.ordine.via.value != "") && (document.ordine.CAP.value != "") && (document.ordine.citta.value != "")) 
{
   if ((document.ordine.radio1i(0).checked == false) && (document.ordine.radio1i(1).checked == false) && (document.ordine.radio1i(2).checked == false) && (document.ordine.radio1i(3).checked == false))
   {
   alert ("Payment method missing") 
   }
   else
   {
   if ((document.ordine.radio2i(0).checked == false) && (document.ordine.radio2i(1).checked == false)) 
     {
     alert ("Sending method missing")
     }
     else
     {
  
     if (document.ordine.radio1i(0).checked == true)
     {
   document.ordine.MetodoPag.value = "Carta di credito"
   if (document.ordine.radio2i(0).checked == true)
   {
   document.ordine.MetodoSped.value = "Raccomandata"
   }
   if (document.ordine.radio2i(1).checked == true)
   {
   document.ordine.MetodoSped.value = "Posta celere"
   }
     
     
     document.ordine.action="BancaSellaI.asp";
     document.ordine.submit();
     }
  
  if (document.ordine.radio1i(1).checked == true)
  {
  document.ordine.MetodoPag.value = "Bonifico bancario"
   if (document.ordine.radio2i(0).checked == true)
   {
   document.ordine.MetodoSped.value = "Raccomandata"
   }
   if (document.ordine.radio2i(1).checked == true)
   {
   document.ordine.MetodoSped.value = "Posta celere"
   }
  document.ordine.action="BonificoI.asp";
  document.ordine.submit();
  }
  
  if (document.ordine.radio1i(2).checked == true)
  {
  document.ordine.MetodoPag.value = "Vaglia postale"
   if (document.ordine.radio2i(0).checked == true)
   {
   document.ordine.MetodoSped.value = "Raccomandata"
   }
   if (document.ordine.radio2i(1).checked == true)
   {
   document.ordine.MetodoSped.value = "Posta celere"
   }
  document.ordine.action="VagliaI.asp";
  document.ordine.submit();
  }
  
  
  if (document.ordine.radio1i(3).checked == true)
  {
  document.ordine.MetodoPag.value = "Contrassegno"
   if (document.ordine.radio2i(0).checked == true)
   {
   document.ordine.MetodoSped.value = "Raccomandata"
   }
   if (document.ordine.radio2i(1).checked == true)
   {
   document.ordine.MetodoSped.value = "Posta celere"
   }
  document.ordine.action="ContrassegnoI.asp";
  document.ordine.submit();
  }
  
       }
       }
       }
else
{
alert("Completa tutti i campi")
}
}



function select1i_onafterupdate() 
{
document.ordine.action="UtentiregistratiI.asp"
document.ordine.StatoScelto.value = document.ordine.select1i.value

if (document.ordine.radio1i(3).checked == true)
{
document.ordine.CContrassegno.value="VERO"
document.ordine.MetodoContr.value="SI"
}
else
{
document.ordine.CContrassegno.value="FALSO"
document.ordine.MetodoContr.value="NO"
}



if (document.ordine.radio2i(0).checked == true)
{
document.ordine.action="UtentiregistratiI.asp"
document.ordine.CRaccomandata.value = "VERO"
document.ordine.CPostaCelere.value = "FALSO"
document.ordine.MetodoSped.value="Raccomandata"
}
if (document.ordine.radio2i(1).checked == true)
{

document.ordine.action="UtentiregistratiI.asp"
document.ordine.CPostaCelere.value = "VERO"
document.ordine.CRaccomandata.value = "FALSO"
document.ordine.MetodoSped.value="Posta Celere"
}


if (document.ordine.radio1i(0).checked == true)
{
document.ordine.MetodoPag.value = "Carta di credito"
}

if (document.ordine.radio1i(1).checked == true)
{
document.ordine.MetodoPag.value = "Bonifico bancario"
}

if (document.ordine.radio1i(2).checked == true)
{
document.ordine.MetodoPag.value = "Vaglia postale"
}

if (document.ordine.radio1i(3).checked == true)
{
document.ordine.MetodoPag.value = "Contrassegno"
}


document.ordine.submit()
}

function radio1i_onclick()
{
document.ordine.action="UtentiregistratiI.asp"
document.ordine.StatoScelto.value = document.ordine.select1i.value
if (document.ordine.radio2i(0).checked == true)
{
document.ordine.action="UtentiregistratiI.asp"
document.ordine.CRaccomandata.value = "VERO"
document.ordine.CPostaCelere.value = "FALSO"
document.ordine.MetodoSped.value="Raccomandata"
}
if (document.ordine.radio2i(1).checked == true)
{

document.ordine.action="UtentiregistratiI.asp"
document.ordine.CPostaCelere.value = "VERO"
document.ordine.CRaccomandata.value = "FALSO"
document.ordine.MetodoSped.value="Posta Celere"
}

if (document.ordine.radio1i(0).checked == true)
{
document.ordine.MetodoPag.value = "Carta di credito"
}

if (document.ordine.radio1i(1).checked == true)
{
document.ordine.MetodoPag.value = "Bonifico bancario"
}

if (document.ordine.radio1i(2).checked == true)
{
document.ordine.MetodoPag.value = "Vaglia postale"
}

if (document.ordine.radio1i(3).checked == true)
{
document.ordine.MetodoPag.value = "Contrassegno"
}


if (document.ordine.radio1i(3).checked == true)
{
document.ordine.CContrassegno.value="VERO"
document.ordine.MetodoContr.value="SI"
}
else
{
document.ordine.CContrassegno.value="FALSO"
document.ordine.MetodoContr.value="NO"
}

document.ordine.submit()
}



function radio2i_onclick() {
document.ordine.StatoScelto.value = document.ordine.select1i.value

if (document.ordine.radio1i(3).checked == true)
{
document.ordine.CContrassegno.value="VERO"
document.ordine.MetodoContr.value="SI"
}
else
{
document.ordine.CContrassegno.value="FALSO"
document.ordine.MetodoContr.value="NO"
}

if (document.ordine.radio1i(0).checked == true)
{
document.ordine.MetodoPag.value = "Carta di credito"
}

if (document.ordine.radio1i(1).checked == true)
{
document.ordine.MetodoPag.value = "Bonifico bancario"
}

if (document.ordine.radio1i(2).checked == true)
{
document.ordine.MetodoPag.value = "Vaglia postale"
}

if (document.ordine.radio1i(3).checked == true)
{
document.ordine.MetodoPag.value = "Contrassegno"
}



if (document.ordine.radio2i(0).checked == true)
{
document.ordine.action="UtentiregistratiI.asp"
document.ordine.CRaccomandata.value = "VERO"
document.ordine.CPostaCelere.value = "FALSO"
document.ordine.MetodoSped.value="Raccomandata"
document.ordine.submit()
}

if (document.ordine.radio2i(1).checked == true)
{

document.ordine.action="UtentiregistratiI.asp"
document.ordine.CPostaCelere.value = "VERO"
document.ordine.CRaccomandata.value = "FALSO"
document.ordine.MetodoSped.value="Posta Celere"
document.ordine.submit()
}


}


function Ordinazione()
{

if ((document.ordine.nominativo.value != "") && (document.ordine.via.value != "") && (document.ordine.CAP.value != "") && (document.ordine.citta.value != "")) 
{
   if ((document.ordine.radio1(0).checked == false) && (document.ordine.radio1(1).checked == false) && (document.ordine.radio1(2).checked == false) && (document.ordine.radio1(3).checked == false))
   {
   alert ("Manca il metodo di pagamento") 
   }
   else
   {
   if ((document.ordine.radio2(0).checked == false) && (document.ordine.radio2(1).checked == false)) 
     {
     alert ("Manca il metodo di spedizione")
     }
     else
     {
  
     if (document.ordine.radio1(0).checked == true)
     {
   document.ordine.MetodoPag.value = "Carta di credito"
   if (document.ordine.radio2(0).checked == true)
   {
   document.ordine.MetodoSped.value = "Raccomandata"
   }
   if (document.ordine.radio2(1).checked == true)
   {
   document.ordine.MetodoSped.value = "Posta celere"
   }
     
     document.ordine.action="Bancasella.asp";
     document.ordine.submit();
     }
  
  if (document.ordine.radio1(1).checked == true)
  {
  document.ordine.MetodoPag.value = "Bonifico bancario"
   if (document.ordine.radio2(0).checked == true)
   {
   document.ordine.MetodoSped.value = "Raccomandata"
   }
   if (document.ordine.radio2(1).checked == true)
   {
   document.ordine.MetodoSped.value = "Posta celere"
   }
  document.ordine.action="Bonifico.asp";
  document.ordine.submit();
  }
  
  if (document.ordine.radio1(2).checked == true)
  {
  document.ordine.MetodoPag.value = "Vaglia postale"
   if (document.ordine.radio2(0).checked == true)
   {
   document.ordine.MetodoSped.value = "Raccomandata"
   }
   if (document.ordine.radio2(1).checked == true)
   {
   document.ordine.MetodoSped.value = "Posta celere"
   }
  document.ordine.action="Vaglia.asp";
  document.ordine.submit();
  }
  
  
  if (document.ordine.radio1(3).checked == true)
  {
  document.ordine.MetodoPag.value = "Contrassegno"
   if (document.ordine.radio2(0).checked == true)
   {
   document.ordine.MetodoSped.value = "Raccomandata"
   }
   if (document.ordine.radio2(1).checked == true)
   {
   document.ordine.MetodoSped.value = "Posta celere"
   }
  document.ordine.action="Contrassegno.asp";
  document.ordine.submit();
  }
  
       }
       }
       }
else
{
alert("Completa tutti i campi")
}
}



function select1_onafterupdate() 
{
document.ordine.action="Utentiregistrati.asp"
document.ordine.StatoScelto.value = document.ordine.select1.value

if (document.ordine.radio1(3).checked == true)
{
document.ordine.CContrassegno.value="VERO"
document.ordine.MetodoContr.value="SI"
}
else
{
document.ordine.CContrassegno.value="FALSO"
document.ordine.MetodoContr.value="NO"
}



if (document.ordine.radio2(0).checked == true)
{
document.ordine.action="Utentiregistrati.asp"
document.ordine.CRaccomandata.value = "VERO"
document.ordine.CPostaCelere.value = "FALSO"
document.ordine.MetodoSped.value="Raccomandata"
}
if (document.ordine.radio2(1).checked == true)
{

document.ordine.action="Utentiregistrati.asp"
document.ordine.CPostaCelere.value = "VERO"
document.ordine.CRaccomandata.value = "FALSO"
document.ordine.MetodoSped.value="Posta Celere"
}


if (document.ordine.radio1(0).checked == true)
{
document.ordine.MetodoPag.value = "Carta di credito"
}

if (document.ordine.radio1(1).checked == true)
{
document.ordine.MetodoPag.value = "Bonifico bancario"
}

if (document.ordine.radio1(2).checked == true)
{
document.ordine.MetodoPag.value = "Vaglia postale"
}

if (document.ordine.radio1(3).checked == true)
{
document.ordine.MetodoPag.value = "Contrassegno"
}


document.ordine.submit()
}

function radio1_onclick()
{
document.ordine.action="Utentiregistrati.asp"
document.ordine.StatoScelto.value = document.ordine.select1.value
if (document.ordine.radio2(0).checked == true)
{
document.ordine.action="Utentiregistrati.asp"
document.ordine.CRaccomandata.value = "VERO"
document.ordine.CPostaCelere.value = "FALSO"
document.ordine.MetodoSped.value="Raccomandata"
}
if (document.ordine.radio2(1).checked == true)
{

document.ordine.action="Utentiregistrati.asp"
document.ordine.CPostaCelere.value = "VERO"
document.ordine.CRaccomandata.value = "FALSO"
document.ordine.MetodoSped.value="Posta Celere"
}

if (document.ordine.radio1(0).checked == true)
{
document.ordine.MetodoPag.value = "Carta di credito"
}

if (document.ordine.radio1(1).checked == true)
{
document.ordine.MetodoPag.value = "Bonifico bancario"
}

if (document.ordine.radio1(2).checked == true)
{
document.ordine.MetodoPag.value = "Vaglia postale"
}

if (document.ordine.radio1(3).checked == true)
{
document.ordine.MetodoPag.value = "Contrassegno"
}


if (document.ordine.radio1(3).checked == true)
{
document.ordine.CContrassegno.value="VERO"
document.ordine.MetodoContr.value="SI"
}
else
{
document.ordine.CContrassegno.value="FALSO"
document.ordine.MetodoContr.value="NO"
}

document.ordine.submit()
}



function radio2_onclick() {
document.ordine.StatoScelto.value = document.ordine.select1.value

if (document.ordine.radio1(3).checked == true)
{
document.ordine.CContrassegno.value="VERO"
document.ordine.MetodoContr.value="SI"
}
else
{
document.ordine.CContrassegno.value="FALSO"
document.ordine.MetodoContr.value="NO"
}

if (document.ordine.radio1(0).checked == true)
{
document.ordine.MetodoPag.value = "Carta di credito"
}

if (document.ordine.radio1(1).checked == true)
{
document.ordine.MetodoPag.value = "Bonifico bancario"
}

if (document.ordine.radio1(2).checked == true)
{
document.ordine.MetodoPag.value = "Vaglia postale"
}

if (document.ordine.radio1(3).checked == true)
{
document.ordine.MetodoPag.value = "Contrassegno"
}



if (document.ordine.radio2(0).checked == true)
{
document.ordine.action="Utentiregistrati.asp"
document.ordine.CRaccomandata.value = "VERO"
document.ordine.CPostaCelere.value = "FALSO"
document.ordine.MetodoSped.value="Raccomandata"
document.ordine.submit()
}

if (document.ordine.radio2(1).checked == true)
{

document.ordine.action="Utentiregistrati.asp"
document.ordine.CPostaCelere.value = "VERO"
document.ordine.CRaccomandata.value = "FALSO"
document.ordine.MetodoSped.value="Posta Celere"
document.ordine.submit()
}
}







// -->
