				
function calcul301_new() {
						var szer;
						var wys;
						var ile;
						var canva;
						
						
						canva = document.devis.co.value;
						
						szer = document.devis.sz.value;
						wys = document.devis.wy.value;
						ile = document.devis.il.value;
						m2 = szer/100*wys/100;
						
						pow = m2 * ile;
						
			if (canva == 'pvc') {
						mini = 53;
						bazowa = 53;
						cena = pow*bazowa;
						if (pow < 2)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (2 <= pow && pow < 3)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.7);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (3 <= pow && pow < 4)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.65);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (4 <= pow && pow < 5 )
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.6);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (5 <= pow && pow < 6)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.58);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (6 <= pow && pow < 7)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.56);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (7 <= pow && pow < 8)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.52);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (8 <= pow && pow < 9)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.51);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (9 <= pow && pow < 10)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.51);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (10 <= pow && pow < 20)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.50);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (20 <= pow && pow < 30)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.45);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (30 <= pow && pow < 40)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.42);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (40 <= pow && pow < 50)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.41);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.4);
						document.devis.prix_total.value = tot;
						}
				}
				else if (canva == 'vb' || canva == 'vt') {
						mini = 95;
						bazowa = 60;
						cena = pow*bazowa;
						if (pow < 2)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (2 <= pow && pow < 3)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (3 <= pow && pow < 4)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.8);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (4 <= pow && pow < 5 )
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.75);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (5 <= pow && pow < 6)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.66);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (6 <= pow && pow < 7)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.65);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (7 <= pow && pow < 8)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.55);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (8 <= pow && pow < 9)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.54);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (9 <= pow && pow < 10)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.52);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (10 <= pow && pow < 15)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.50);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (15 <= pow && pow < 20)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.45);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (20 <= pow && pow < 25)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.42);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (25 <= pow && pow < 30)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.39);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (30 <= pow && pow < 35)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.38);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (35 <= pow && pow < 40)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.37);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (40 <= pow && pow < 45)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.36);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (45 <= pow && pow < 50)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.35);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.35);
						document.devis.prix_total.value = tot;
						}
				}
				else if (canva == 'vm' || canva == 'canvas') {
						mini = 80;
						bazowa = 80;
						cena = pow*bazowa;
						if (pow < 2)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (2 <= pow && pow < 3)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.82);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (3 <= pow && pow < 4)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.75);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (4 <= pow && pow < 5 )
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.7);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (5 <= pow && pow < 6)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.65);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (6 <= pow && pow < 7)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.63);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (7 <= pow && pow < 8)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.62);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (8 <= pow && pow < 9)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.6);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (9 <= pow && pow < 10)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.55);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (10 <= pow && pow < 15)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.50);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (15 <= pow && pow < 20)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.47);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.47);
						document.devis.prix_total.value = tot;
						}
				}
				else if (canva == 'vc') {
						mini = 72;
						bazowa = 72;
						cena = pow*bazowa;
						if (pow < 2)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (2 <= pow && pow < 3)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.82);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (3 <= pow && pow < 4)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.75);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (4 <= pow && pow < 5 )
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.7);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (5 <= pow && pow < 6)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.65);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (6 <= pow && pow < 7)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.63);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (7 <= pow && pow < 8)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.62);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (8 <= pow && pow < 9)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.6);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (9 <= pow && pow < 10)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.55);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (10 <= pow && pow < 15)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.50);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (15 <= pow && pow < 20)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.47);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.47);
						document.devis.prix_total.value = tot;
						}
				}
				else  {
						mini = 95;
						bazowa = 60;
						cena = pow*bazowa;
						if (pow < 2)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (2 <= pow && pow < 3)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (3 <= pow && pow < 4)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.8);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (4 <= pow && pow < 5 )
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.75);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (5 <= pow && pow < 6)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.66);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (6 <= pow && pow < 7)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.65);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (7 <= pow && pow < 8)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.55);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (8 <= pow && pow < 9)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.54);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (9 <= pow && pow < 10)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.52);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (10 <= pow && pow < 15)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.50);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (15 <= pow && pow < 20)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.45);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (20 <= pow && pow < 25)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.42);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (25 <= pow && pow < 30)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.39);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (30 <= pow && pow < 35)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.38);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (35 <= pow && pow < 40)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.37);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (40 <= pow && pow < 45)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.36);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else if (45 <= pow && pow < 50)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.35);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;						
						}
						else
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.35);
						document.devis.prix_total.value = tot;
						}
				}
						
				return false;
			}
						
						
function validation(frm) {
return verifMail(frm.email.value);
}

function verifMail(a) {
testemail = false ;
for (var j=1 ; j<(a.length) ; j++) {
if (a.charAt(j)=='@') {
  if (j<(a.length-4)){
   for (var k=j ; k<(a.length-2) ; k++) {
    if (a.charAt(k)=='.') testemail = true;
    }
   }
  }
}
if (testemail==false){
// ligne suivante non obligatoire
alert('Votre adresse e-mail est incorrecte ou non renseignée.');
}
else {
// ligne suivante non obligatoire
}
return testemail ;
}

noweOkienko=null;
function okno(src, w, h, bars, skalowanie)
  {
   if(window.screen)
        {
        aw = screen.availWidth;
        ah = screen.availHeight;
        }
        else
            {
            aw = 1024;
            ah = 860;
            }
  
  var ustawienia = "left=" + (aw - w)/2 + ","
        + "top=" + (ah - h)/2 + ","
        + "screenX=" + (aw - w)/2 + ","
        + "screenY=" + (ah - h)/2 + ","
        + "width=" + w + ","
        + "height=" + h + ","
        + "innerWidth=" + w + ","
        + "innerHeight=" + h + ","
        + "toolbar=no,"
        + "location=no,"
        + "directories=no,"
        + "status=no,"
        + "menubar=no,"
        + "scrollbars=" + bars + ","
        + "resizable=" + skalowanie ;
if(noweOkienko == null || noweOkienko.closed) {
        	noweOkienko = window.open(src, 'stronka', ustawienia);
        	} else {
		noweOkienko.close();
		noweOkienko = window.open(src, 'stronka', ustawienia);
		}
	noweOkienko.focus();
    }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////

function calcul() {
						var szer;
						var wys;
						var ile;
						var canva;
						
						
						canva = document.devis.co.value;
						szer = document.devis.sz.value;
						wys = document.devis.wy.value;
						ile = document.devis.il.value;
						
						
						
						m2 = szer/100*wys/100;
						pow = m2 * ile;
						
			if (canva == 'pvc') {
						mini = 53;
						bazowa = 53;
						cena = pow*bazowa;
						if (pow < 2)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (2 <= pow && pow < 3)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.7);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (3 <= pow && pow < 4)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.65);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
                        document.form1.cena.value = tot;						
						}
						else if (4 <= pow && pow < 5 )
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.6);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (5 <= pow && pow < 6)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.58);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (6 <= pow && pow < 7)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.56);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (7 <= pow && pow < 8)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.52);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (8 <= pow && pow < 9)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.51);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (9 <= pow && pow < 10)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.51);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (10 <= pow && pow < 20)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.50);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (20 <= pow && pow < 30)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.45);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (30 <= pow && pow < 40)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.42);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (40 <= pow && pow < 50)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.41);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.4);
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
				}
				else if (canva == 'vb' || canva == 'vt') {
						mini = 95;
						bazowa = 60;
						cena = pow*bazowa;
						if (pow < 2)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (2 <= pow && pow < 3)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (3 <= pow && pow < 4)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.8);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
                        document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
                        document.form1.cena.value = tot;						
						}
						else if (4 <= pow && pow < 5 )
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.75);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (5 <= pow && pow < 6)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.66);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (6 <= pow && pow < 7)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.65);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (7 <= pow && pow < 8)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.55);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (8 <= pow && pow < 9)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.54);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (9 <= pow && pow < 10)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.52);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (10 <= pow && pow < 15)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.50);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (15 <= pow && pow < 20)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.45);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (20 <= pow && pow < 25)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.42);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (25 <= pow && pow < 30)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.39);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (30 <= pow && pow < 35)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.38);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (35 <= pow && pow < 40)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.37);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (40 <= pow && pow < 45)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.36);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (45 <= pow && pow < 50)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.35);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.35);
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
				}
				else if (canva == 'vm' || canva == 'canvas') {
						mini = 80;
						bazowa = 80;
						cena = pow*bazowa;
						if (pow < 2)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (2 <= pow && pow < 3)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.82);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (3 <= pow && pow < 4)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.75);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (4 <= pow && pow < 5 )
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.7);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (5 <= pow && pow < 6)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.65);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (6 <= pow && pow < 7)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.63);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (7 <= pow && pow < 8)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.62);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (8 <= pow && pow < 9)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.6);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (9 <= pow && pow < 10)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.55);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (10 <= pow && pow < 15)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.50);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (15 <= pow && pow < 20)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.47);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.47);
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
				}
				else if (canva == 'vc') {
						mini = 72;
						bazowa = 72;
						cena = pow*bazowa;
						if (pow < 2)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (2 <= pow && pow < 3)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.82);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (3 <= pow && pow < 4)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.75);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (4 <= pow && pow < 5 )
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.7);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (5 <= pow && pow < 6)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.65);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (6 <= pow && pow < 7)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.63);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (7 <= pow && pow < 8)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.62);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (8 <= pow && pow < 9)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.6);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (9 <= pow && pow < 10)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.55);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (10 <= pow && pow < 15)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.50);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (15 <= pow && pow < 20)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.47);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.47);
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
				}
				else  {
						mini = 95;
						bazowa = 60;
						cena = pow*bazowa;
						if (pow < 2)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (2 <= pow && pow < 3)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(1);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (3 <= pow && pow < 4)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.8);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (4 <= pow && pow < 5 )
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.75);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (5 <= pow && pow < 6)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.66);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (6 <= pow && pow < 7)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.65);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (7 <= pow && pow < 8)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.55);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (8 <= pow && pow < 9)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.54);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (9 <= pow && pow < 10)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.52);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (10 <= pow && pow < 15)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.50);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (15 <= pow && pow < 20)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.45);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (20 <= pow && pow < 25)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.42);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (25 <= pow && pow < 30)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.39);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (30 <= pow && pow < 35)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.38);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (35 <= pow && pow < 40)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.37);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (40 <= pow && pow < 45)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.36);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else if (45 <= pow && pow < 50)
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.35);
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
						else
						{
						tot = Math.round(cena*100)/100;
						tot = tot*(0.35);
						document.devis.prix_total.value = tot;
						document.form1.support.value = canva;
						document.form1.dlugosc.value = szer;
						document.form1.szerokosc.value = wys;
						document.form1.ilosc.value = ile;
						document.form1.cena.value = tot;
						}
				}
						
				return false;
			}
