function DrawTank(b,d,c){var a=document.getElementById("cnvsTank");if(a.getContext){var e=a.width;b=e/b;a.setAttribute("height",b);var f=e/2;d=b/d;a=a.getContext("2d");a.beginPath();a.fillStyle=document.all?"#00f":a.createPattern(document.getElementById("imgWater"),"repeat");a.strokeStyle="#000";a.fillRect(0,b-d,e,d);a.fill();a.strokeRect(0,0,e,b);a.stroke();if(c){a.lineWidth=0.6;a.fillStyle="#ff0";a.fillRect(f-4,1,8,b);a.strokeStyle="#f00";a.beginPath();for(c=1;c<b-2;c+=6){a.moveTo(f-4,c);a.lineTo(f+
4,c)}a.stroke()}}};
