st=parseInt(r1.text); str=parseInt(r2.text); var w= new Array(st); for (i=0;i<=w.length;i++) {w[i]=new Array(str); }