function product(prezzo, prezzo2, euro, name, location, id) 
{
   this.prezzo = prezzo; 
   this.prezzo2 = prezzo2; 
   this.euro = euro;
   this.name = name;
   this.location = location;
   this.id = id;
}
SMT12BN = new product(83.85, 83.85, 83.85, "Monitor 12 pollici bianco nero","monitorcrt.html", "SMT12BN");
SMT14BN = new product(100.62, 100.62, 100.62, "Monitor 14 pollici bianco nero","monitorcrt.html", "SMT14BN");
SMT9BN = new product(81.06, 81.06, 81.06, "Monitor 9 pollici bianco nero","monitorcrt.html", "SMT9BN");
SMT10COL = new product(236.05, 236.05, 236.05, "Monitor 10 pollici colori","monitorcrt.html", "SMT10COL");
SMT14COL = new product(233.12, 233.12, 233.12, "Monitor 14 pollici colori","monitorcrt.html", "SMT14COL");
SMT20COL = new product(345.12, 345.12, 345.12, "Monitor 20 pollici colori","monitorcrt.html", "SMT20COL");

SB28M = new product(7.31, 7.31, 7.31, "Micro lente 2,8 mm","obmicro.html", "SB28M");
SB40M = new product(4.08, 4.08, 4.08, "Micro lente 4 mm","obmicro.html", "SB40M");
SB60M = new product(7.09, 7.09, 7.09, "Micro lente 6 mm","obmicro.html", "SB60M");
SB80M = new product(7.09, 7.09, 7.09, "Micro lente 8 mm","obmicro.html", "SB80M");
SB12M = new product(6.80, 6.80, 6.80, "Micro lente 12 mm","obmicro.html", "SB12M");
SB16M = new product(9.32, 9.32, 9.32, "Micro lente 16 mm","obmicro.html", "SB16M");

SB0615AI = new product(44.01, 44.01, 44.01, "Obiettivo varifocal 6-15 mm autoiris","obautoiris.html", "SB0615AI");
SB0550AI = new product(62.21, 62.21, 62.21, "Obiettivo varifocal 5-50 mm autoiris","obautoiris.html", "SB0550AI");
SB0660AI = new product(62.21, 62.21, 62.21, "Obiettivo varifocal 6-60 mm autoiris","obautoiris.html", "SB0660AI");
SB2812AI = new product(46.15, 46.15, 46.15, "Obiettivo varifocal 2,8-12 mm autoiris","obautoiris.html", "SB2812AI");
SB5100AI = new product(94.60, 94.60, 94.60, "Obiettivo varifocal 5-100 mm autoiris","obautoiris.html", "SB5100AI");
SB2810AI = new product(51.27, 51.27, 51.27, "Obiettivo varifocal Prof.2,8-10mm autoiris","obautoiris.html", "SB2810AI");
SB416AI = new product(53.21, 53.21, 53.21, "Obiettivo varifocal Prof.4-16mm autoiris","obautoiris.html", "SB416AI");
SB55014AI = new product(73.53, 73.53, 73.53, "Obiettivo varifocal Prof.5-50mm autoiris","obautoiris.html", "SB55014AI");

SB0358M = new product(19.23, 19.23, 19.23, "Obiettivo man.varifocal 3-8mm autoiris","obmanuali.html", "SB0358M");
SB0615M = new product(19.84, 19.84, 19.84, "Obiettivo man.varifocal 6-15mm autoiris","obmanuali.html", "SB0615M");
SB0358MM = new product(15.99, 15.99, 15.99, "Obiettivo man.varifocal 3,5-8mm autoiris","obmanuali.html", "SB0358MM");
SB2812M = new product(30.10, 30.10, 30.10, "Obiettivo man.varifocal 2,8-12mm autoiris","obmanuali.html", "SB2812M");

SB358D = new product(29.81, 29.81, 29.81, "Obiettivo varifocal autoiris D&N 3,5-8mm","obd&n.html", "SB358D");
SB35810D = new product(43.15, 43.15, 43.15, "Obiettivo var. autoiris D&N 3,5-8mm","obd&n.html", "SB35810D");
SB358DD = new product(57.12, 57.12, 57.12, "Obiettivo varifocal autoiris D&N 3,5 - 8mm","obd&n.html", "SB358DD");
SB42155D = new product(56.11, 56.11, 56.11, "Obiettivo var. autoiris D&N 4,2-15,5mm","obd&n.html", "SB42155D");
SB550D = new product(87.07, 87.07, 87.07, "Obiettivo varifocal autoiris D&N 5-50mm","obd&n.html", "SB550D");

SB2812A = new product(57.08, 57.08, 57.08, "Obiettivo varifocal autoiris 2,8-12mm","obasferici.html", "SB2812A");
SB550A = new product(98.92, 98.92, 98.92, "Obiettivo varifocal autoiris 5-50mm","obasferici.html", "SB550A");

ST233 = new product(98.92, 98.92, 98.92, "telecamera nascosta","tcnasc.html", "ST233");
ST474 = new product(98.92, 98.92, 98.92, "telecamera nascosta colore","tcnasc.html", "ST474");
ST474BN = new product(57.08, 57.08, 57.08, "telecamera nascosta b/n","tcnasc.html", "ST474BN");

CONVVGA = new product(55.90, 55.90, 55.90, "Convertitore video composito > vga","convertitorivideo.html", "CONV-VGA");

SC7284 = new product(50.17, 50.17, 50.17, "Selettore ciclico 4 ingressi","ciclici.html", "SC728-4");
SC7288 = new product(56.19, 56.19, 56.19, "Selettore ciclico 8 ingressi","ciclici.html", "SC728-8");

SC727 = new product(122.62, 122.62, 122.62, "Quadrivisore","quad.html", "SC727");

SW2231 = new product( 456.50, 456.50, 456.50, "Web server","webserver.html", "SW2231");
SW2231L = new product( 326.07, 326.07, 326.07, "Web server lite","webserver.html", "SW2231L");

SS363E = new product(1015.46, 1015.46, 1015.46, "Speed dome per esterno","speeddome.html", "SW2231");
SS363I = new product(885.03, 885.03, 885.03, "Speed dome per interno","speeddome.html", "SW2231L");
SC378 = new product(386.98, 386.98, 386.98, "Consolle per speed dome","speeddome.html", "SC378");

ST303DN230 = new product(173.58, 173.58, 173.58, "Telecamera day and night 230 volt","tcdn.html", "ST303DN230");
ST303DN12 = new product(152.79, 152.79, 152.79, "Telecamera day and night 12 volt","tcdn.html", "ST303DN12");
ST523 = new product(309.58, 309.58, 309.58, "Telecamera day and night alta luminosità","tcdn.html", "ST523");

SO326 = new product(46.15, 46.15, 46.15, "Telecamera dome per interno","dome.html", "SO326");
SO22 = new product(111.80, 111.80, 111.80, " Telecamera dome per interno","dome.html", "SO22");
SO22X = new product(145.12, 145.12, 145.12, "Telecamera dome con ccd sony ex view","dome.html", "SO22X");
SO223IR = new product(129.64, 129.64, 129.64, "Telecamera dome con illuminatore IR","dome.html", "SO223IR");
SO2238 = new product(77.40, 77.40, 77.40, "Telecamera dome per esterno","dome.html", "SO2238");
SO228 = new product(121.11, 121.11, 121.11, "Telecamera dome per esterno antivandalica ","dome.html", "SO228");

SG729 = new product(18.56, 18.56, 18.56, "Staffa in acciaio per custodia","cust_staffe.html", "SG729");
SG729S = new product(4.45, 4.45, 4.45, "Custodia per telecamera estrena","cust_staffe.html", "SG729S");
STAFFA01 = new product(2.37, 2.37, 2.37, "Staffa per telecamera interna","cust_staffe.html", "STAFFA01");

SM741 = new product(305.50, 305.50, 305.50, "Monitor 17 pollici LCD","monitorlcd.html", "SM741");
SM941 = new product(366.60, 366.60, 366.60, "Monitor 19 pollici LCD","monitorlcd.html", "SM941");

SWISEDOME = new product(328.24, 328.24, 328.24, "Kit Rokonet via radio","offrokonet.html", "SWISEDOME");

ST85312 = new product(54.03, 54.03, 54.03, "Telecamera standard 12 volt","tcstd.html", "ST85312");
ST853230 = new product(55.90, 55.90, 55.90, "Telecamera standard 230n volt","tcstd.html", "ST853230");
ST69812 = new product(48.15, 48.15, 48.15, "Telecamera standard 0,05 lux 12 volt","tcstd.html", "ST69812");
ST698230 = new product(58.19, 58.19, 58.19, "Telecamera standard 0,05 lux 230 volt","tcstd.html", "ST698230");
ST05312 = new product(88.28, 88.28, 88.28, "Telecamera 600 linee tv 12 volt","tcstd.html", "ST05312");
ST053230 = new product(93.16, 93.16, 93.16, "Telecamera 600 linee tv 230 volt","tcstd.html", "ST053230");
ST09012 = new product(72.67, 72.67, 72.67, "Telecamera standard 420 linee 12 volt","tcstd.html", "ST09012");
ST090230 = new product(74.53, 74.53, 74.53, "Telecamera standard 420 linee 230 volt","tcstd.html", "ST090230");
ST283X = new product(183.82, 183.82, 183.82, "Telecamera alta risoluzione","tcstd.html", "ST283X");

SIC8 = new product(59.98, 59.98, 59.98, "Centrale antif. 8 zone con tast LCD","centraliall.html", "SIC8");
PROSYS16 = new product(194.42, 194.42, 194.42, "Centrale rokonet 8 zone esp.16","centraliall.html", "PROSYS16");
PROSYS40 = new product(228.09, 228.09, 228.09, "Centrale rokonet 8 zone esp.40","centraliall.html", "PROSYS40");
PROSYS128 = new product(278.59, 278.59, 278.59, "Centrale rokonet 8 zone esp.128","centraliall.html", "PROSYS128");
SAL2 = new product(54.03, 54.03, 54.03, "Centrale d'allarme 2 zone","centraliall.html", "SAL2");
SAL06 = new product(79.26, 79.26, 79.26, "Centrale d'allarme 6 zone","centraliall.html", "SAL06");
SAL48 = new product(83.85, 83.85, 83.85, "Centrale d'allarme 4 zone espandibile","centraliall.html", "SAL48");

SIR12 = new product(22.80, 22.80, 22.80, "Rivelatore infrarosso","", "SIR12");
SIR12DT = new product(50.60, 50.60, 50.60, "Rivelatore doppia tecnologia","", "SIR12DT");
SEST = new product(67.80, 67.80, 67.80, "Sirena per esterni autoalimentata","", "SEST");
SIGSM = new product(312.00, 312.00, 312.00, "Combinatore gsm","", "SIGSM");
SIPSTN = new product(108.00, 108.00, 108.00, "Combinatore pstn","", "SIPSTN");
S24 = new product(51.00, 51.00, 51.00, "Cavo 2x0,22 + 4x0,22 (100 metri)","", "S24");
S12A7 = new product(15.20, 15.20, 15.20, "Batteria per centrale allarme","", "S12A7");
S12A2 = new product(8.80, 8.80, 8.80, "Batteria per sirena","", "S12A2");

SX300 = new product(8.61, 8.61, 8.61, "Coppia tx rx 300 metri","trasmvideo.html", "SX300");
SX400 = new product(23.41, 23.41, 23.41, "Coppia tx rx 400 metri","trasmvideo.html", "SX400");
SX1500 = new product(99.75, 99.75, 99.75, "Coppia tx rx 1500","trasmvideo.html", "SX1500");

SR10 = new product(32.25, 32.25, 32.25, "Illuminatore infrarosso portata 10 metri","illir.html", "SR10");
SR30 = new product(81.69, 81.69, 81.69, "Illuminatore infrarosso portata 30 metri","illir.html", "SR30");
SR50 = new product(86.00, 86.00, 86.00, "Illuminatore infrarosso portata 50 metri","illir.html", "SR50");

SA14 = new product(64.21, 64.21, 64.21, "Distributore video 1 in 4 out","ss606_4.html", "SA14");
SA48 = new product(64.21, 64.21, 64.21, "Distributore video 4 in 8 out","ss60648.html", "SA48");
SA18 = new product(59.19, 59.19, 59.19, "Distributore video 1 in 8 out","ss6068.html", "SA18");
SA11 = new product(47.15, 47.15, 47.15, "Amplificatore video 1 in 1 out","ss607.html", "SA11");

SCT16 = new product(175.50, 175.50, 175.50, "centralino telefonico 1 lu 6 derivati","A195.html", "SCT16");
SCT28 = new product(224.90, 224.90, 224.90, "centralino telefonico 2 lu 8 derivati","A200.html", "SCT28");
SCT312 = new product(297.83, 297.83, 297.83, "centralino telefonico 3 lu 12 derivati","A312.html", "SCT312");
SCT28E = new product(338.20, 338.20, 338.20, "Centralino telefonico 2 lu 8 derivati","A400.html", "SCT28E");

SCTS14 = new product(125.35, 125.35, 125.35, "espansione 1 linea 4 interni","schedetel.html", "SCTS14");
SCTS28 = new product(185.25, 185.25, 185.25, "espansione 2 linee 8 interni","schedetel.html", "SCTS28");
SCTSCIT = new product(67.93, 67.93, 67.93, "scheda citofonica","schedetel.html", "SCTSCIT");
SCTSR = new product(92.63, 92.63, 92.63, "scheda risponditore","schedetel.html", "SCTSR");
SCTSISDN = new product(185.25, 185.25, 185.25, "scheda espansione ISDN","schedetel.html", "SCTSISDN");
SCTSBUF = new product(80.28, 80.28, 80.28, "scheda buffer di stampa","schedetel.html", "SCTSBUF");
SCTSM = new product(111.15, 111.15, 111.15, "scheda multifunzione","schedetel.html", "SCTSM");

SCTT0 = new product(173.99, 173.99, 173.99, "Telefono di sistema","telefoni.html", "SCTT0");
SCTT3 = new product(242.01, 242.01, 242.01, "telefono di sistema","telefoni.html", "SCTT3");
SCTT4 = new product(34.48, 34.48, 34.48, "Telefono bca","telefoni.html", "SCTT4");
SCTT9 = new product(32.37, 32.37, 32.37, "telefono bca","telefoni.html", "SCTT9");

SD6244 = new product( 279.49, 279.49, 279.49, "Videoregistratore 4 ingressi digitale", "sd624-4.html", "sd624-4");
SD6288 = new product(660.15, 660.15, 660.15, "Videoregistratore 8 ingressi digitale", "sd628-8.html", "sd628-8");
SD62016 = new product(921.01, 921.01, 921.01, "Videoregistratore 16 ingressi digitale", "sd620-16.html", "sd620-16");
SD5429 = new product(406.19, 406.19, 406.19, "Videoregistratore 9 ingressi digitale", "sd542-9.html", "sd542-9");
SD6844 = new product(279.49, 279.49, 279.49, "Videoregistratore 4 ingressi dgt MPEG4", "sd684-4.html", "sd684-4");
SD20004 = new product(399.88, 399.88, 399.88, "Videoregistratore 4 ingressi JPEG 2000", "sd2000-4.html", "sd2000-4");
SD20008 = new product(458.06, 458.06, 458.06, "Videoregistratore 8 ingressi JPEG 2000", "sd2000-8.html", "sd2000-8");
SD200016 = new product(643.53, 643.53, 643.53, "Videoregistratore 16 ingressi JPEG 2000", "sd2000-16.html", "sd2000-16");
SD52644 = new product(280.92, 280.92, 280.92, "Videoregistratore 4 ingressi dgt veicolare", "sd5264-4.html", "sd5264-4");
SD2274 = new product(227.89, 227.89, 227.89, "Videoregistratore 4 ingressi senza lan", "sd2274.html", "sd227-4");

RG59 = new product(19.27, 19.27, 19.27, "Cavo coassiale","cavitvcc.html", "RG59");
RG174 = new product(28.68, 28.68, 28.68, "Cavo coassiale micro","cavitvcc.html", "RG174");
RG1742 = new product(66.05, 66.05, 66.05, "Cavo microcoax","cavitvcc.html", "RG1742");
RG1744 = new product(68.67, 68.67, 68.67, "Cavo microcoassiale","cavitvcc.html", "RG1744");
RG1742F = new product(75.62, 75.62, 75.62, "Cavo  microcoassiale","cavitvcc.html", "RG1742F");



BNC174 = new product(0.69, 0.69, 0.69, "Connettore per segnale videocomposito micro","connettvcc.html", "BNC174");
BNC59 = new product(0.35, 0.35, 0.35, "Connettore per segnale videocomposito","connettvcc.html", "BNC59");
BNCRCA = new product(0.53, 0.53, 0.53, "Adattatore RCA femmina - BNC maschio","connettvcc.html", "BNCRCA");
BNC58 = new product(0.44, 0.44, 0.44, "Connettore per segnale videocomposito","connettvcc.html", "BNC58");
BNCG90 = new product(1.01, 1.01, 1.01, "Connettore per segnale video a 90°","connettvcc.html", "BNCG90");
BNCLNK = new product(0.44, 0.44, 0.44, "Giunto femmina femmina bnc","connettvcc.html", "BNCLNK");
BNCPAN = new product(0.64, 0.64, 0.64, "Presa bnc da pannello","connettvcc.html", "BNCPAN");
BNCT = new product(1.14, 1.14, 1.14, "adattatore bnc maschio doppia femm.","connettvcc.html", "BNCT");
BNCTF = new product(0.64, 0.64, 0.64, "adattatore bnc tripla femmina","connettvcc.html", "BNCTF");
BNCS = new product(0.82, 0.82, 0.82, "connettore bnc a saldare","connettvcc.html", "BNCS");
RCA = new product(0.08, 0.08, 0.08, "connettore RCA","connettvcc.html", "RCA");
SPIN = new product(0.10, 0.10, 0.10, "presa volante a saldare","connettvcc.html", "SPIN");
RCABNC = new product(0.57, 0.57, 0.57, "adattatore RCA maschio bnc femmina","connettvcc.html", "RCABNC");
PZ14 = new product(24.44, 24.44, 24.44, "Pinza per crimpare","connettvcc.html", "PZ14");
PZ15 = new product(24.44, 24.44, 24.44, "pinza per crimpare","connettvcc.html", "PZ15");

AA12 = new product(8.02, 8.02, 8.02, "Alimentatore stabilizzato 12 volt","varietvcc.html", "AA12");
SA225 = new product(11.47, 11.47, 11.47, "Telecamera finta","varietvcc.html", "SA225");
HDD250 = new product(62.00, 62.00, 62.00, "Hard disk drive","varietvcc.html", "HD225");

SB3242 = new product(43.20, 43.20, 43.20, "Telecamera bullet b/n","bulletbn.html", "SB3242");

SB804 = new product(76.39, 76.39, 76.39, "Telecamera bullet colori","bulletcol.html", "SB804");
SB3355 = new product(93.16, 93.16, 93.16, "Telecamera bullet colori SB3355","bulletcol.html", "SB3355");
SB3260 = new product(81.26, 81.26, 81.26, "Telecamera bullet colori SB3260","bulletcol.html", "SB3260");
SB3269 = new product(81.26, 81.26, 81.26, "Telecamera bullet colori SB3269","bulletcol.html", "SB3269");
SB3269X = new product(126.13, 126.13, 126.13, "Telecamera bullet colori SB3269X","bulletcol.html", "SB3269x");
SB42VIR = new product(134.16, 134.16, 134.16, "Telecamera bullet colori SB42VIR","bulletcol.html", "SB42VIR");
SB038IR = new product(80.12, 80.12, 80.12, "Telecamera bullet colori SB038IR","bulletcol.html", "SB038IR");
SB3353IR = new product(112.23, 112.23, 112.23, "Telecamera bullet colori SB3353IR","bulletcol.html", "SB3353IR");

SB42X = new product(160.60, 160.60, 160.60, "Telecamera bullet colori professionali SB42X","bulletprof.html", "SB42X");
SB62V = new product(242.87, 242.87, 242.87, "Telecamera bullet colori professionali SB62V","bulletprof.html", "SB62V");
SB723 = new product(251.54, 251.54, 251.54, "Telecamera bullet colori professionali SB723","bulletprof.html", "SB723");

SM265 = new product(36.34, 36.34, 36.34, "Microcamera per interno SM265","microcamere.html", "SM265");
SM265PH = new product(36.34, 36.34, 36.34, "Microcamera per interno SM265PH","microcamere.html", "SM265PH");
SM3239 = new product(37.27, 37.27, 37.27, "Microcamera per interno SM3239","microcamere.html", "SM3239");
SM3239X = new product(87.07, 87.07, 87.07, "Microcamera per interno SM3239X","microcamere.html", "SM3239X");
SM464 = new product(72.24, 72.24, 72.24, "Microcamera per interno SM464","microcamere.html", "SM464");
SM464PH = new product(72.24, 72.24, 72.24, "Microcamera per interno8","microcamere.html", "SM464PH");
SM4 = new product(40.99, 40.99, 40.99, "Microcamera per interno SM4","microcamere.html", "SM4");
SM62 = new product(56.11, 56.11, 56.11, "Microcamera per interno SM62","microcamere.html", "SM62");
SM623 = new product(75.47, 75.47, 75.47, "Microcamera per interno SM623","microcamere.html", "SM623");
SM62PH = new product(56.11, 56.11, 56.11, "Microcamera per interno SM62PH","microcamere.html", "SM62PH");
SM67 = new product(37.27, 37.27, 37.27, "Microcamera per interno SM67","microcamere.html", "SM67");
SM365PH = new product(67.08, 67.08, 67.08, "Microcamera per interno SM365PH","microcamere.html", "SM365PH");

postage = 15.00;
function setCookie(name, value)
{
document.cookie = name + "=" + escape(value);
}


function getCookie(name){
var Search = name + "=";
if (document.cookie.length > 0) {
	offset = document.cookie.indexOf(Search)
	if (offset != -1) {
		offset += Search.length;
		end = document.cookie.indexOf(";", offset);
		if (end == -1)
			end = document.cookie.length;
		return unescape(document.cookie.substring(offset, end));
		}
	}
}


function roundToCents(n)
{
cents = n * 100;
cents = Math.round(cents);
strCents = "" + cents;
len = strCents.length;
	
first = strCents.substring(0, len - 2) + ".";
last = strCents.substring(len - 2, len);
	
	if (first == "."){
	   first = "0.";
  	}
	
	if (last.length == 1){
	   last += "0";
	}
	
return first+last;
}
/* -------------------------------------------------------------------------------------*/
function checkrequired(which)
{
var pass=true
if (document.images)
	{
	for (b=0;b<which.length;b++)
		{
		var tempobj=which.elements[b]
		if (tempobj.name.substring(0,8)=="required")
			{
			if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1))
				{
				pass=false
				break
				}
			}
		}
	}
	if (!pass)
	{
	alert("Non hai inserito tutti i dati richiesti. Clicca su OK, verifica e completa il form.")
	return false
	}
	else
	return true
}


function printLine(pr)
{

product = parent.getCookie(pr.name);
if (product > 0){
prodtotal = product * pr.prezzo2;
quantity = 'quantity' + 3;

document.write("<table border='1' width='620' align='left' bgcolor='#f8f8ff'>")
document.write("<tr>")
document.write("<td width='13%' align=left><font face='verdana' size='2'>")
document.write( pr.id);
document.write("<INPUT TYPE='hidden' SIZE='7' NAME=productid", i, " VALUE=", pr.id, ">");
document.write("</td>")
document.write("<td width='12%' align=right><font face='verdana' size='2'>")
document.write( product);
document.write("<INPUT TYPE='hidden' SIZE='7' NAME=quantity", i, " VALUE=", product, ">");
document.write("</td>")
document.write("<td width='13%' align=right><font face='verdana' size='2'>")
document.write(pr.prezzo2);
document.write("<INPUT TYPE='hidden' SIZE='7' NAME=price", i, " VALUE=", 'EUR' + pr.prezzo2, ">");
document.write("</td>")
document.write("<td width='14%' align=right><font face='verdana' size='2'>")
document.write( prodtotal);
document.write("<INPUT TYPE='hidden' SIZE='7' NAME=total", i, " VALUE=",'EUR' + prodtotal, ">");
document.write("</td>")
document.write("<td width='44%' align=left><font face='verdana' size='2'>")
document.write(" <a href=", pr.location, ">", pr.name, "</a>");

document.write("</td>")
document.write("</font> </tr>")
document.write("</table>")
document.write("<br> <br>")

calculateTotal(prodtotal);
i++;
}
}

   
function calculateTotal(num)
{
	grandtotal += num;
	return grandtotal;
}


function getInitialValue(name)
{
v = parent.getCookie(name);
if (v > 0){
initial = v;
}
else {
initial = 0;
}
return initial;
}
