function DeterminaEtichettaSpedizione(LocationSelected) { if (LocationSelected ==1) { return('Spedizione (Italia - Posta)');} if (LocationSelected ==3) { return('Spedizione (Italia - Corriere)');} if (LocationSelected ==5) { return('Spedizione (Europa (UE))');} if (LocationSelected ==6) { return('Spedizione (Europa (Extra UE))');} if (LocationSelected ==7) { return('Spedizione (Resto del Mondo)');} if (LocationSelected ==8) { return('Spedizione (Solo Elettronico)');} } function CaricaSpedizioni(LocationValue, TotWeight, fNumItem) { if (LocationValue==1) { if (TotWeight == 0) {return(2);}; return(2);} if (LocationValue==3) { if (TotWeight == 0) {return(14);}; return(14);} if (LocationValue==5) { if (TotWeight == 0) {return(14);}; return(14);} if (LocationValue==6) { if (TotWeight == 0) {return(14);}; return(14);} if (LocationValue==7) { if (TotWeight == 0) {return(61);}; return(61);} if (LocationValue==8) { if (TotWeight == 0) {return(0);}; return(0);}; } function CaricaOpzioniSpedizioni(fWeight, iNumberOrdered, strLocShip) { var strOutput2 = ''; strOutput2 += ''+ strLocShip +''; strOutput2 += ''; strOutput2 += ''; strOutput2 += 'Italia - Posta'; strOutput2 += '
';strOutput2 += ''; strOutput2 += 'Italia - Corriere'; strOutput2 += '
';strOutput2 += ''; strOutput2 += 'Europa (UE)'; strOutput2 += '
';strOutput2 += ''; strOutput2 += 'Europa (Extra UE)'; strOutput2 += '
';strOutput2 += ''; strOutput2 += 'Resto del Mondo'; strOutput2 += '
';strOutput2 += ''; strOutput2 += 'Solo Elettronico'; strOutput2 += ''; strOutput2 += ''; return strOutput2; } function VerificaPesoSpedizione(LocationValue, TotWeight) { if (LocationValue==1) { if (TotWeight >20000) { return(20000); }};if (LocationValue==3) { if (TotWeight >20000) { return(20000); }};if (LocationValue==5) {};if (LocationValue==6) {};if (LocationValue==7) {};if (LocationValue==8) {};return(-1); }