lepenka_v_kyblu_seda_3kg = 16.1
lepenka_v_kyblu_seda_7kg = 26.06
lepenka_v_kyblu_seda_15kg = 54.94
lepenka_v_kyblu_seda_25kg = 90.45
lepenka_v_kyblu_seda_pytel_25kg = 89.46
tesnici_pas_120mm_5m = 15.77
tesnici_pas_120mm_10m = 29.04
tesnici_pas_120mm_50m = 133.11
tesnici_pas_150mm_50m = 0
tesnici_pas_250mm_5m = 29.04
tesnici_pas_250mm_25m = 133.11
roh_140mm_vnitrni = 6.97
roh_140mm_vnejsi = 6.97
pruzny_pruchod_120mm = 4.15
pruzny_pruchod_425mm = 20.75
vodotes_5kg = 5.64
vodotes_25kg = 27.05
strechusprav_7kg = 38.01
strechusprav_14kg = 74.52
strechusprav_25kg = 129.12
strechotex_0_2_50 = 9.1
strechotex_1_10 = 9.1
strechotex_1_50 = 42.92
sprchova_sada = 34.02
stavlep_1l = 6.8
stavlep_5l = 33.36
stavlep_10l = 64.73
spravbeton_5kg = 4.98
spravbeton_25kg = 24.07
spravbetonTH_5kg = 4.98
spravbetonTH_25kg = 24.07
fofrbeton_5kg = 7.3
fofrbeton_25kg = 33.03
stenusprav_1_8kg = 2.32
stenusprav_9kg = 10.12
stenusprav_18kg = 15.6
drztofest_2kg = 3.65
drztofest_5kg = 6.97
drztofest_25kg = 33.03
drztofestTH_2kg = 3.65
drztofestTH_5kg = 6.97
drztofestTH_25kg = 33.03
ochrana_1kg = 13.61
ochrana_5kg = 67.22
ochrana_20kg = 0
odstran_1kg = 21.08
odstran_5kg = 104.56
odstran_20kg = 0
deska_6_1300 = 14.77
deska_10_1300 = 12.27
deska_10_2600 = 30.70
deska_20_1300 = 16.76
deska_20_2600 = 34.20
deska_30_1300 = 18.92
deska_30_2600 = 37.68
deska_40_1300 = 20.58
deska_40_2600 = 41.16
deska_50_1300 = 22.90
deska_50_2600 = 45.64
spojka_20mm = 1
spojka_30mm = 1.16
spojka_40mm = 1.16
spojka_50mm = 1.133
zakryt_150x150_1300 = 13.78
zakryt_150x150_2600 = 27.38
zakryt_200x200_1300 = 19.75
zakryt_200x200_2600 = 39.33
zakryt_200x400_1300 = 24.07
zakryt_200x400_2600 = 47.63
zakryt_300x300_1300 = 24.07
zakryt_300x300_2600 = 47.63
univerzal_silikon = 0
akrylovy_tmel = 0
bila_barva = 13.78
koupelizo_4kg = 17.76
koupelizo_8kg = 34.52
nenasavej_1l = 7.8
nenasavej_5l = 35.35
pustohned = 3.98
pustohnedpet = 3.98
pustohned_5l = 18.42
dlazbulep_5kg = 3.82
dlazbulep_25kg = 13.94
vysuszed = 16.43
chranbeton = 3.88
chranbetonk = 3.88
hassanspric = 11.78
hassanjadro = 23.4
hassanstuk = 17.92
deska = 0
deska120 = 0
deskasifon = 162.65
deska120sifon = 0
profil = 10.46
profil_L = 10.46
profilm = 37.34
profilm_L = 37.34
balkonspojka = 0.4
balkonspojkam = 0.8
balkonkoncovka = 1.26
balkonkoncovkam = 2.82
barvanabeton4kg = 19.09
barvanabeton8kg = 35.35
barvic = 3.15
ttmelkartuse = 7.8
ttmel1kg = 18.09
ttmel5kg = 86.14
tmrizka = 1.29
tzasyp5kg = 1.66
tzasyp25kg = 5.64
tpaska10_15 = 37.68
tpaska150_2 = 13.44
tpaska150_20 = 119.33
tpaska20_15 = 34.02
tpaska20_25 = 49.62
tpaska23_18 = 44.65
nabazeny_sada15kg = 66.22
nabazeny_sada25kg = 0
sparovacka5kg = 4.48
sparovacka20kg = 14.77
benatskystuk3kg = 0
stpas50 = 49.29
stpas100 = 24.63
sanacnikoncentrat = 0
tekutadlazba = 110.37
vsyp = 12.78
tesnicifolie10 = 0
tesnicifolie50 = 0
namazse = 1.23
namazsek = 43.05

function soucet(){
dohromady = Math.round(100*(
              (document.form1.id_1.value * lepenka_v_kyblu_seda_3kg) + 
              (document.form1.id_2.value * lepenka_v_kyblu_seda_7kg) + 
              (document.form1.id_3.value * lepenka_v_kyblu_seda_15kg) + 
              (document.form1.id_4.value * lepenka_v_kyblu_seda_25kg) + 
              (document.form1.id_5.value * lepenka_v_kyblu_seda_pytel_25kg) + 
              (document.form1.id_65.value * tesnici_pas_120mm_5m) + 
              (document.form1.id_6.value * tesnici_pas_120mm_10m) + 
              (document.form1.id_7.value * tesnici_pas_120mm_50m) + 
              (document.form1.id_8.value * tesnici_pas_150mm_50m) + 
              (document.form1.id_9.value * tesnici_pas_250mm_5m) + 
              (document.form1.id_10.value * tesnici_pas_250mm_25m) + 
              (document.form1.id_11.value * roh_140mm_vnitrni) + 
              (document.form1.id_12.value * roh_140mm_vnejsi) + 
              (document.form1.id_13.value * pruzny_pruchod_120mm) + 
              (document.form1.id_14.value * pruzny_pruchod_425mm) + 
              (document.form1.id_15.value * vodotes_5kg) + 
              (document.form1.id_16.value * vodotes_25kg) + 
              (document.form1.id_17.value * strechusprav_7kg) + 
              (document.form1.id_18.value * strechusprav_14kg) + 
              (document.form1.id_19.value * strechusprav_25kg) + 
              (document.form1.id_20.value * strechotex_0_2_50) + 
              (document.form1.id_21.value * strechotex_1_10) + 
              (document.form1.id_22.value * strechotex_1_50) + 
              (document.form1.id_23.value * sprchova_sada) + 
              (document.form1.stavlep_1l.value * stavlep_1l) + 
              (document.form1.stavlep_5l.value * stavlep_5l) + 
              (document.form1.stavlep_10l.value * stavlep_10l) + 
              (document.form1.spravbeton_5kg.value * spravbeton_5kg) + 
              (document.form1.spravbeton_25kg.value * spravbeton_25kg) + 
              (document.form1.spravbetonTH_5kg.value * spravbetonTH_5kg) + 
              (document.form1.spravbetonTH_25kg.value * spravbetonTH_25kg) + 
              (document.form1.fofrbeton_5kg.value * fofrbeton_5kg) + 
              (document.form1.fofrbeton_25kg.value * fofrbeton_25kg) + 
              (document.form1.stenusprav_1_8kg.value * stenusprav_1_8kg) + 
              (document.form1.stenusprav_9kg.value * stenusprav_9kg) + 
              (document.form1.stenusprav_18kg.value * stenusprav_18kg) + 
              (document.form1.drztofest_2kg.value * drztofest_2kg) + 
              (document.form1.drztofest_5kg.value * drztofest_5kg) + 
              (document.form1.drztofest_25kg.value * drztofest_25kg) + 
              (document.form1.drztofestTH_2kg.value * drztofestTH_2kg) + 
              (document.form1.drztofestTH_5kg.value * drztofestTH_5kg) + 
              (document.form1.drztofestTH_25kg.value * drztofestTH_25kg) + 
              (document.form1.ochrana_1kg.value * ochrana_1kg) + 
              (document.form1.ochrana_5kg.value * ochrana_5kg) + 
              (document.form1.odstran_1kg.value * odstran_1kg) + 
              (document.form1.odstran_5kg.value * odstran_5kg) + 
              (document.form1.d_6_1300.value * deska_6_1300) + 
              (document.form1.d_10_1300.value * deska_10_1300) + 
              (document.form1.d_10_2600.value * deska_10_2600) + 
              (document.form1.d_20_1300.value * deska_20_1300) + 
              (document.form1.d_20_2600.value * deska_20_2600) + 
              (document.form1.d_30_1300.value * deska_30_1300) + 
              (document.form1.d_30_2600.value * deska_30_2600) + 
              (document.form1.d_40_1300.value * deska_40_1300) + 
              (document.form1.d_40_2600.value * deska_40_2600) + 
              (document.form1.d_50_1300.value * deska_50_1300) + 
              (document.form1.d_50_2600.value * deska_50_2600) + 
              (document.form1.s_20mm.value * spojka_20mm) + 
              (document.form1.s_30mm.value * spojka_30mm) + 
              (document.form1.s_40mm.value * spojka_40mm) + 
              (document.form1.s_50mm.value * spojka_50mm) + 
              (document.form1.z_150x150_1300.value * zakryt_150x150_1300) + 
              (document.form1.z_150x150_2600.value * zakryt_150x150_2600) + 
              (document.form1.z_200x200_1300.value * zakryt_200x200_1300) + 
              (document.form1.z_200x200_2600.value * zakryt_200x200_2600) + 
              (document.form1.z_200x400_1300.value * zakryt_200x400_1300) + 
              (document.form1.z_200x400_2600.value * zakryt_200x400_2600) + 
              (document.form1.z_300x300_1300.value * zakryt_300x300_1300) + 
              (document.form1.z_300x300_2600.value * zakryt_300x300_2600) + 
              (document.form1.bila_barva.value * bila_barva) + 
              (document.form1.id_24.value * koupelizo_4kg) + 
              (document.form1.id_25.value * koupelizo_8kg) + 
              (document.form1.id_26.value * nenasavej_1l) + 
              (document.form1.id_27.value * nenasavej_5l) + 
              (document.form1.pustohned.value * pustohned) + 
              (document.form1.dlazbulep_5kg.value * dlazbulep_5kg) + 
              (document.form1.dlazbulep_25kg.value * dlazbulep_25kg) + 
              (document.form1.id_28.value * vysuszed) + 
              (document.form1.hassanspric.value * hassanspric) + 
              (document.form1.hassanjadro.value * hassanjadro) + 
              (document.form1.hassanstuk.value * hassanstuk) + 
              (document.form1.doskasifon.value * deskasifon) + 
              (document.form1.doska120sifon.value * deska120sifon) + 
              (document.form1.profilb.value * profil) + 
              (document.form1.profil_Lb.value * profil_L) + 
              (document.form1.profils.value * profil) + 
              (document.form1.profil_Ls.value * profil_L) + 
              (document.form1.profilh.value * profil) + 
              (document.form1.profil_Lh.value * profil_L) + 
              (document.form1.profilm.value * profilm) + 
              (document.form1.profilm_L.value * profilm_L) + 
              (document.form1.balkonspojkab.value * balkonspojka) + 
              (document.form1.balkonspojkah.value * balkonspojka) + 
              (document.form1.balkonspojkas.value * balkonspojka) + 
              (document.form1.balkonspojkam.value * balkonspojkam) + 
              (document.form1.balkonkoncovkab.value * balkonkoncovka) + 
              (document.form1.balkonkoncovkah.value * balkonkoncovka) + 
              (document.form1.balkonkoncovkas.value * balkonkoncovka) + 
              (document.form1.balkonkoncovkam.value * balkonkoncovkam)+ 
              (document.form1.pustohnedpet.value * pustohnedpet) + 
              (document.form1.pustohned_5l.value * pustohned_5l) + 
              (document.form1.barvanabeton4kg.value * barvanabeton4kg) + 
              (document.form1.barvanabeton8kg.value * barvanabeton8kg) + 
              (document.form1.barvicbila.value * barvic) + 
              (document.form1.barviczluta.value * barvic) + 
              (document.form1.barvicoranzova.value * barvic) + 
              (document.form1.barviccervena.value * barvic) + 
              (document.form1.barvicfialova.value * barvic) + 
              (document.form1.barvicmodra.value * barvic) + 
              (document.form1.barviczelena.value * barvic) + 
              (document.form1.barvichneda.value * barvic) + 
              (document.form1.barviccerna.value * barvic) + 
              (document.form1.id_29.value * ttmelkartuse) + 
              (document.form1.id_38.value * tmrizka) + 
              (document.form1.id_39.value * tzasyp5kg) + 
              (document.form1.id_32.value * tpaska10_15) + 
              (document.form1.id_33.value * tpaska150_2) + 
              (document.form1.id_34.value * tpaska150_20) + 
              (document.form1.id_35.value * tpaska20_15) + 
              (document.form1.id_36.value * tpaska20_25) + 
              (document.form1.id_37.value * tpaska23_18) + 
              (document.form1.id_41.value * nabazeny_sada15kg) + 
              (document.form1.sparovacka5kgb.value * sparovacka5kg) + 
              (document.form1.sparovacka20kgb.value * sparovacka20kg) + 
              (document.form1.sparovacka5kgs.value * sparovacka5kg) + 
              (document.form1.sparovacka20kgs.value * sparovacka20kg)+ 
              (document.form1.sparovacka5kgbah.value * sparovacka5kg) + 
              (document.form1.sparovacka20kgbah.value * sparovacka20kg)+ 
              (document.form1.benatskystuk.value * benatskystuk3kg) + 
              (document.form1.id_42.value * stpas50) + 
              (document.form1.id_43.value * stpas100) + 
              (document.form1.sanacnikoncentrat.value * sanacnikoncentrat) + 
              (document.form1.id_44.value * tekutadlazba) + 
              (document.form1.id_45.value * vsyp) + 
	      (document.form1.id_99999.value * namazsek)))/100

/* čárka a mezera za tisíce */
cislice = String(dohromady).split(".");

/*desatina cisla*/
if (cislice[1]>0)
if (cislice[0].length>3)
if (cislice[0].length>4)
if (cislice[0].length>5)
if (cislice[0].length>6)
{
hromada=(cislice[0].slice(0,1) + " " + cislice[0].slice(1,4) + " " + cislice[0].slice(4) + "," + cislice[1] + "0")
}
else
{
hromada=(cislice[0].slice(0,3) + " " + cislice[0].slice(3) + "," + cislice[1] + "0")
}
else
{
hromada=(cislice[0].slice(0,2) + " " + cislice[0].slice(2) + "," + cislice[1] + "0")
}
else
{
hromada=(cislice[0].slice(0,1) + " " + cislice[0].slice(1) + "," + cislice[1] + "0")
}
else
{
hromada=(cislice[0] + "," + cislice[1] + "0")
}
else

/*cela cisla*/
if (cislice[0].length>3)
if (cislice[0].length>4)
if (cislice[0].length>5)
if (cislice[0].length>6)
{
cislice[1]="0"
hromada=(cislice[0].slice(0,1) + " " + cislice[0].slice(1,4) + " " + cislice[0].slice(4) + "," + cislice[1] + "0")
}
else
{
cislice[1]="0"
hromada=(cislice[0].slice(0,3) + " " + cislice[0].slice(3) + "," + cislice[1] + "0")
}
else
{
cislice[1]="0"
hromada=(cislice[0].slice(0,2) + " " + cislice[0].slice(2) + "," + cislice[1] + "0")
}
else
{
cislice[1]="0"
hromada=(cislice[0].slice(0,1) + " " + cislice[0].slice(1) + "," + cislice[1] + "0")
}
else
{
cislice[1]="0"
hromada=(cislice[0] + "," + cislice[1] + "0")
}

document.form1.suma.value=String(hromada)
}

<!-- foto -->
foto1 = new Array(640,480)
foto2 = new Array(640,480)
foto3 = new Array(640,480)
foto4 = new Array(640,480)
foto5 = new Array(640,480)
foto6 = new Array(640,480)
foto7 = new Array(640,480)
foto8 = new Array(640,480)
foto9 = new Array(640,480)
foto10 = new Array(640,480)
foto11 = new Array(480,640)
foto12 = new Array(480,640)
foto13 = new Array(640,480)
foto14 = new Array(640,480)
foto15 = new Array(640,480)
foto16 = new Array(640,480)
foto17 = new Array(480,640)
foto35 = new Array(480,640)
foto36 = new Array(640,480)
foto37 = new Array(640,480)
pozvanka = new Array(800,425)
barvicimg = new Array(173,173)
pf2005 = new Array(389,600)
ilu_tesnic1 = new Array(453,354)
ilu_tesnic2 = new Array(521,414)
ilu_tesnic3 = new Array(518,355)
ilu_tesnic4 = new Array(517,350)
ilu_tesnic5 = new Array(514,352)
ilu_tesnic6 = new Array(517,355)
ilu_tesnic7 = new Array(518,352)
ilu_tesnic8 = new Array(516,349)
ilu_tesnic9 = new Array(518,353)
kd1 = new Array(650,488)
kd2 = new Array(650,488)
kd3 = new Array(650,488)
kd4 = new Array(650,488)
kd5 = new Array(488,650)
kd6 = new Array(488,650)
kd7 = new Array(650,488)
kd8 = new Array(488,650)
kd9 = new Array(650,488)
kd10 = new Array(488,650)
kd11 = new Array(488,650)
kd12 = new Array(650,488)
kd13 = new Array(650,488)
kd14 = new Array(650,488)
kd15 = new Array(650,488)
kd16 = new Array(650,488)
kd17 = new Array(650,488)
kd18 = new Array(650,488)
kd19 = new Array(650,488)
kd20 = new Array(650,488)
kd21 = new Array(650,488)
kd22 = new Array(488,650)
kd23 = new Array(650,488)
kd24 = new Array(488,650)
kd25 = new Array(488,650)
kd26 = new Array(650,488)
kd27 = new Array(488,650)
kd28 = new Array(650,488)
kd29 = new Array(488,650)
kd30 = new Array(488,650)
kd31 = new Array(488,650)
kd32 = new Array(650,488)
kd33 = new Array(650,488)
kd34 = new Array(488,650)
kd35 = new Array(650,488)
kd36 = new Array(650,488)
kd37 = new Array(488,650)
kd38 = new Array(650,488)
kd39 = new Array(488,650)
kd40 = new Array(650,488)
kd41 = new Array(488,650)
kd42 = new Array(650,488)
kd43 = new Array(488,650)
kd44 = new Array(650,488)
kd45 = new Array(650,488)
kd46 = new Array(650,488)
kd47 = new Array(650,488)
kd48 = new Array(650,488)
kd49 = new Array(650,488)
kd50 = new Array(488,650)
kd51 = new Array(650,488)
kd52 = new Array(488,650)
kd53 = new Array(488,650)
kd54 = new Array(488,650)
kd55 = new Array(488,650)
kd56 = new Array(488,650)
kd57 = new Array(488,650)
kd58 = new Array(650,488)
kd59 = new Array(650,488)
kd60 = new Array(650,488)
profilfoto = new Array(650,488)

function openfoto(imgfoto,alt,img) { //v2.0
vyska_ = img[0]+10
sirka_ = img[1]+10
vyska = vyska_+20
sirka = sirka_+20
okno=window.open('','','toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width='+vyska+',height='+sirka)
okno.document.write("<HTML><HEAD><TITLE>HASOFT&nbsp;&ndash;&nbsp;D ě l á m e &nbsp; v ě c i , &nbsp; k t e r é &nbsp; f u n g u j í !</TITLE><META http-equiv='Content-Type' content='text/html;charset=windows-1250'><LINK rel='stylesheet' href='hasoft/foto.css' type='text/css'></HEAD><BODY><table><tr><td>")
okno.document.write("<img src='foto/")
okno.document.write(imgfoto)
okno.document.write("_v.jpg' width='")
okno.document.write(vyska_)
okno.document.write("' height='")
okno.document.write(sirka_)
okno.document.write("' alt='")
okno.document.write(alt)
okno.document.write("' title='")
okno.document.write(alt)
okno.document.write("'>")
okno.document.write("</td></tr></table><SPAN class='end' id='end'><A href='javascript:;'><IMG src='images/end.gif' width='66' height='75' usemap='#end' border='0'></A><MAP name='end'><AREA shape='circle' coords='31,39,29' onClick='window.close()' alt='zavřít okno'></MAP></SPAN></BODY></HTML>")
okno.focus()
}
function windowclose(){
window.close()
}

function openilu(imgfoto,alt,img) { //v2.0
vyska_ = img[0]+10
sirka_ = img[1]+10
vyska = vyska_+20
sirka = sirka_+20
okno=window.open('','','toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width='+vyska+',height='+sirka)
okno.document.write("<HTML><HEAD><TITLE>HASOFT&nbsp;&ndash;&nbsp;D ě l á m e &nbsp; v ě c i , &nbsp; k t e r é &nbsp; f u n g u j í !</TITLE><META http-equiv='Content-Type' content='text/html;charset=windows-1250'><LINK rel='stylesheet' href='../hasoft/foto.css' type='text/css'></HEAD><BODY><table><tr><td>")
okno.document.write("<img src='../images/")
okno.document.write(imgfoto)
okno.document.write(".jpg' width='")
okno.document.write(vyska_)
okno.document.write("' height='")
okno.document.write(sirka_)
okno.document.write("' alt='")
okno.document.write(alt)
okno.document.write("' title='")
okno.document.write(alt)
okno.document.write("'>")
okno.document.write("</td></tr></table><SPAN class='end' id='end'><A href='javascript:;'><IMG src='../images/end.gif' width='66' height='75' usemap='#end' border='0'></A><MAP name='end'><AREA shape='circle' coords='31,39,29' onClick='window.close()' alt='zavřít okno'></MAP></SPAN></BODY></HTML>")
okno.focus()
}
function windowclose(){
window.close()
}

function MM_openBrWindow(theURL,winName,features) {
  okno = window.open(theURL,winName,features);
  okno.focus()
}

function barvic(theURL){
window.open(theURL,'logo','resizable=no,scrollbars=no,status=no,width=200,height=200');
window.focus()
}

function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_validateForm() {
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='zadejte prosím číslo';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('chyba - '+errors);
  document.MM_returnValue = (errors == '');
}

function prevod(typ)
{
cislice = String(typ).split(".");
if (cislice[1]>0)
if (cislice[0].length>3)
{
document.write(cislice[0].slice(0,1) + "&nbsp;" + cislice[0].slice(1) + "," + cislice[1] + "0")
}
else
{
document.write(cislice[0] + "," + cislice[1] + "0")
}
else
if (cislice[0].length>3)
{
cislice[1]="0"
document.write(cislice[0].slice(0,1) + "&nbsp;" + cislice[0].slice(1) + "," + cislice[1] + "0")
}
else
{
cislice[1]="0"
document.write(cislice[0] + "," + cislice[1] + "0")
}
}

function objednavka(adresa){
opener.location = adresa
window.close();
}

