function setValues(){

/* steel */
s.setMaximum(70);
s.setMinimum(40);

/* plastics */
p.setMaximum(50);
p.setMinimum(6);

/* wrought alu */
w.setMaximum(20);
w.setMinimum(10);

/* alu cast */
a.setMaximum(15);
a.setMinimum(10);

/* organic non plastics  */
o.setMaximum(10);
o.setMinimum(2);

/* magnesium  */
m.setMaximum(5.5);
m.setMinimum(0.5);

/* glass */
g.setMaximum(5);
g.setMinimum(2);

/* rubber */
r.setMaximum(4);
r.setMinimum(3);

/* copper */
c.setMaximum(4);
c.setMinimum(1);

/* pvc */
v.setMaximum(3.5);
v.setMinimum(1);

/* zinc */
z.setMaximum(0.3);
z.setMinimum(0);

/* other */
t.setMaximum(10);
t.setMinimum(0);


changed=1;
s.setValue(50);
p.setValue(15);
w.setValue(10);
a.setValue(10);
o.setValue(5);
m.setValue(2);
g.setValue(3);
r.setValue(3);
c.setValue(1);
v.setValue(1);
z.setValue(0);
t.setValue(0);
ar2[0]=s.getValue();
ar2[1]=p.getValue();
ar2[2]=w.getValue();
ar2[3]=a.getValue();
ar2[4]=o.getValue();
ar2[5]=m.getValue();
ar2[6]=g.getValue();
ar2[7]=r.getValue();
ar2[8]=c.getValue();
ar2[9]=v.getValue();
ar2[10]=z.getValue();
ar2[11]=t.getValue();
si.value=s.getValue();
pi.value=p.getValue();
wi.value=w.getValue();
ai.value=a.getValue();
oi.value=o.getValue();
mi.value=m.getValue();
gi.value=g.getValue();
ri.value=r.getValue();
ci.value=c.getValue();
vi.value=v.getValue();
zi.value=z.getValue();
ti.value=t.getValue();

changed=0;
}



function funcamount(omaterial,tmaterial,actualvalue){
switch (omaterial)
{
case "steel":

return 1-1/(1+Math.exp((-actualvalue+55)/3));
break;

case "plastics":
return 1-1/(1+Math.exp((-actualvalue+28)/5));

return "plastics";
break;

case "walu":
return 1-1/(1+Math.exp((-actualvalue+15)/2));

return "walu";
break;

}
}
