for (a=0;a<fld.length;a++){ for (i=0;i<fld[a].length;i++){ if (fld[a].charAt(i)=="0"){document.write("<img src=sea.gif>")} else if (fld[a].charAt(i)=="1"){document.write("<img src=fl.gif>")} else if (fld[a].charAt(i)=="2"){document.write("<img src=wd.gif>")} else if (fld[a].charAt(i)=="b"){document.write("<br>")} } }
document.write("<nobr>"); for (a=0;a<fld.length;a++){ for (i=0;i<fld[a].length;i++){ if (fld[a].charAt(i)=="0"){document.write("<img class=fl style='top:"+a*32+";left:"+i*32+"' src=sea.gif>")} else if (fld[a].charAt(i)=="1"){document.write("<img class=fl style='top:"+a*32+";left:"+i*32+"'src=fl.gif>")} else if (fld[a].charAt(i)=="2"){document.write("<img class=fl style='top:"+a*32+";left:"+i*32+"' src=wd.gif>")} else if (fld[a].charAt(i)=="b"){document.write("<br>")}