// JavaScript Document
var ans;

function calConcrete(form)
{
if (!form.iof[1].checked)
{
 ans = Math.round((form.w.value * form.l.value * (form.t.value / 12) / 27) * 100000)/ 100000;
}
else
{
 ans = Math.round((form.w.value * form.l.value * form.t.value / 27) * 100000)/ 100000;
}
form.a.value=writeAns(ans);
}

function calWall(form)
{
if (!form.iof[1].checked)
{
 ans = Math.round((form.h.value * form.l.value * .32 / 27) * 100000)/ 100000;
}
else
{
 ans = Math.round((form.h.value * form.l.value * .51 / 27) * 100000)/ 100000;
}
form.a.value=writeAns(ans);
}
function calCol(form)
{
ans = Math.round(((form.d.value/24)*(form.d.value/24) * form.h.value * Math.PI / 27) * 100000)/ 100000;
form.a.value=writeAns(ans);
}
function writeAns(ans)
{
if (isNaN(ans) || ans <= 0 )
{
window.alert("Please enter a positive number in the fields..");
 return "";
}
else
{
 return ans;
}
}
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}