var g,w,h,my={}
function calcsegmentMain(mode){my.version='0.50';w=300;h=380;var id="rect";var s="";s+='
';s+='
';s+='

';my.flds=[{id:'rad',title:'Radius r',lt:165,tp:22,clr:'#ff6600',fn:chgRad},{id:'height',title:'Height h',lt:165,tp:200,clr:'#3465a4',fn:chgHt},{id:'length',title:'Length',lt:10,tp:200,clr:'black',fn:chgLen},{id:'area',title:'Area',lt:165,tp:250,clr:'#ce5c00',fn:chgNot},{id:'pct',title:'% Full',lt:10,tp:305,clr:'#666666',fn:chgNot},{id:'vol',title:'Volume',lt:165,tp:305,clr:'#ce0000',fn:chgNot},]
for(var i=0;i
'+fld.title+': ';s+='