var far_msg = "Floor Area Ratio or FAR is the area of occupied floor space" + " of a building divided by the area of the parcel." + " In other words, it is the amount of floor space per unit " + "area of land, a measure of the intensity of land use."; var IL_Cook = new Array("Alsip","Arlington Heights","Barrington","Barrington Hills","Bartlett","Bedford Park","Bellwood","Bensenville","Berkeley","Berwyn","Blue Island","Bridgeview","Broadview","Brookfield","Buffalo Grove","Burbank","Burnham","Burr Ridge","Calumet City","Calumet Park","Chicago","Chicago Heights","Chicago Ridge","Cicero","Country Club Hills","Countryside","Crestwood","Crete","Deer Park","Deerfield","Des Plaines","Dixmoor","Dolton","East Dundee","East Hazel Crest","Elgin","Elk Grove Village","Elmhurst","Elmwood Park","Evanston","Evergreen Park","Flossmoor","Ford Heights","Forest Park","Forest View","Frankfort","Franklin Park","Glencoe","Glenview","Glenwood","Golf","Hanover Park","Harvey","Harwood Heights","Hazel Crest","Hickory Hills","Highland Park","Hillside","Hinsdale","Hodgkins","Hoffman Estates","Homer Glenn","Hometown","Homewood","Indian Head Park","Inverness","Itasca","Justice","Kenilworth","La Grange","La Grange Park","Lansing","Lemont","Lincolnwood","Long Grove","Lynwood","Lyons","Markham","Matteson","Maywood","McCook","Melrose Park","Merrionette Park","Midlothian","Mokena","Morton Grove","Mount Prospect","Niles","Norridge","North Riverside","Northbrook","Northfield","Northlake","Oak Brook","Oak Forest","Oak Lawn","Oak Park","Olympia Fields","Orland Hills","Orland Park","Palatine","Palos Heights","Palos Hills","Palos Park","Park Forest","Park Ridge","Phoenix","Posen","Prospect Heights","Richton Park","River Forest","River Grove","Riverdale","Riverside","Riverwoods","Robbins","Rolling Meadows","Roselle","Rosemont","Sauk Village","Schaumburg","Schiller Park","Skokie","South Barrington","South Chicago Heights","South Holland","Steger","Stickney","Stone Park","Streamwood","Summit","Thornton","Tinley park","University Park","Westchester","Western Springs","Wheeling","Willow Springs","Wilmette","Winnetka","Wood Dale","Woodridge","Worth"); var IL_DuPage = new Array("Addison","Aurora","Bartlett","Batavia","Bensenville","Berkeley","Bloomingdale","Bolingbrook","Burr Ridge","Carol Stream","Chicago","Clarendon Hills","Darien","Downers Grove","Elgin","Elk Grove Village","Elmhurst","Glen Ellyn","Glendale Heights","Hanover Park","Hinsdale","Itasca","Lemont","Lisle","Lombard","Naperville","Northlake","Oak Brook","Oakbrook Terrace","Roselle","Schaumburg","St.Charles","Villa Park","Warrenville","Wayne","West Chicago","Westmont","Wheaton","Willow Springs","Willowbrook","Winfield","Wood Dale","Woodridge"); var IL_Kane = new Array("Algonquin","Aurora","Barrington Hills","Bartlett","Batavia","Big Rock","Burlington","Carpentersville","East Dundee","Elburn","Elgin","Geneva","Gilberts","Hampshire","Hoffman Estates","Huntley","Lily Lake","Maple Park","Montgomery","North Aurora","Pingree Grove","Sleepy Hollow","South Elgin","St. Charles","Sugar Grove","Virgil","Wayne","West Chicago","West Dundee"); var IL_Lake = new Array("Antioch","Arlington Heights","Bannockburn","Barrington","Barrington Hills","Beach Park","Buffalo Grove","Deerfield","Deer Park","Fox Lake","Fox River Grove","Glencoe","Grayslake","Green Oaks","Gurnee","Hainesville","Hawthorn Woods","Highland Park","Highwood","Indian Creek","Island Lake","Kildeer","Lake Barrington","Lake Bluff","Lake Forest","Lake Villa","Lake Zurich","Lakemoor","Libertyville","Lincolnshire","Lindenhurst","Long Grove","Mettawa","Mundelein","North Barrington","North Chicago", "Northbrook","Old Mill Creek","Park City","Port Barrington","Riverwoods","Round Lake","Round Lake Beach","Round Lake Heights","Round Lake Park","Third Lake","Tower Lakes","Vernon Hills","Volo","Wadsworth","Wauconda","Waukegan","Wheeling","Winthrop Harbor","Zion"); var IL_McHenry = new Array("Algonquin","Barrington Hills","Bull Valley","Cary","Crystal Lake","Fox Lake","Fox River Grove","Greenwood","Harvard","Hebron","Holiday Hills","Huntley","Island Lake","Johnsburg","Lake in the Hills","Lakemoor","Lakewood","Marengo","McCullom Lake","McHenry","Oakwood Hills","Port Barrington","Praire Grove","Richmond","Ringwood","Spring Grove","Trout Valley","Union","Wonder Lake","Woodstock"); var IL_Will = new Array("Aurora","Beecher","Bolingbrook","Braidwood","Channahan","Coal City","Crest Hill","Crete","Diamond","Elwood","Frankfort","Godley","Homer Glen","Joliet","Lemont","Lockport","Manhattan","Minooka","Mokena","Monee","Naperville","New Lenox","Orland Park","Park Forest","Peotone","Plainfield","Richton Park","Rockdale","Romeoville","Sauk Village","Shorewood","Steger","Symerton","Tinely Park","University Park","Wilmington","Woodridge"); function saveIndexValue(form) { form.cityIdx.value = form.wd_city.selectedIndex; } function setUnit(form) { form.units.value = form.unit.options[form.unit.selectedIndex].value; } function printUnits(src) { return src.document.getElementById("units").value; } function getCounty(form) { lindex = form.wd_state.selectedIndex; for( var i=0; i< County[lindex].length ;i++) form.wd_county.options[i] = new Option( County[lindex][i]); form.wd_county.options[0].selected = true; form.wd_county.options.length = County[lindex].length; return; } function getCity(form) { cvalue = form.wd_county.options[form.wd_county.selectedIndex].value; if(cvalue == "Cook") { for(var j=0; j < IL_Cook.length; j++) form.wd_city.options[j] = new Option(IL_Cook[j]); form.wd_city.options[0].selected = true; form.wd_city.options.length = IL_Cook.length; } if(cvalue == "DuPage") { for(var j=0; j < IL_DuPage.length; j++) form.wd_city.options[j] = new Option(IL_DuPage[j]); form.wd_city.options[0].selected = true; form.wd_city.options.length = IL_DuPage.length; } if(cvalue == "Kane") { for(var j=0; j < IL_Kane.length; j++) form.wd_city.options[j] = new Option(IL_Kane[j]); form.wd_city.options[0].selected = true; form.wd_city.options.length = IL_Kane.length; } if(cvalue == "Lake") { for(var j=0; j < IL_Lake.length; j++) form.wd_city.options[j] = new Option(IL_Lake[j]); form.wd_city.options[0].selected = true; form.wd_city.options.length = IL_Lake.length; } if(cvalue == "McHenry") { for(var j=0; j < IL_McHenry.length; j++) form.wd_city.options[j] = new Option(IL_McHenry[j]); form.wd_city.options[0].selected = true; form.wd_city.options.length = IL_McHenry.length; } if(cvalue == "Will") { for(var j=0; j < IL_Will.length; j++) form.wd_city.options[j] = new Option(IL_Will[j]); form.wd_city.options[0].selected = true; form.wd_city.options.length = IL_Will.length; } return; } function changepage(form) { var url; var i,j; i = document.myform.wd_state.selectedIndex; j = document.myform.wd_county.selectedIndex; selectedcounty = document.myform.wd_county.options[j].text; selectedstate = document.myform.wd_state.options[i].text; //url = "http://www.ecn.purdue.edu/runoff/lthianew/tool3.htm"; url = "http://cobweb.ecn.purdue.edu/runoff/lthianew/tool3.htm"; url = url+"?"+selectedstate; url = url+"?"+selectedcounty; //url = url+"?"+document.myform.state.selectedIndex; url = url+"?"+"13"; //window.location = url; var nWin = window.open(url); nWin.document.myform.landuse1.selectedIndex = 1; } function CheckisNotEmpty(str) { var inputStr = str; if (inputStr == "" || inputStr == null) { //alert("This field requires an entry."); return false; } return true; } function tab5() { alert("Please generate the results first by clicking either the 'Results' tab or the 'Next' Button"); return false; } function load_state_map(form) { mySoilState=new Array ( "al","al","az","ar","ca","co","newengland","de","md","fl","ga","ga","id","il","in","ia","ks","kt","la","newengland","md","newengland","mi","mn","ms","mo","mt","ne","nv","newengland","nj","nm","ny","nc","nd","oh","ok","or","pa","newengland","sc","sd","tn","tx","ut","newengland","va","wa","wv","wi","wy"); //myStateIndex = form.stateindex.value; myStateIndex = 13; mySoilStateName = mySoilState[myStateIndex] ; if (myStateIndex == 1 || myStateIndex == 11 ){ if (myStateIndex == 1 ){ var inputedData = "Alaska"; } if (myStateIndex == 11 ){ var inputedData = "Hawaii"; } alert ("No Soil Maps Available for "+inputedData+""); return false; } if(myStateIndex >= 0) { stateWin = window.open("http://pasture.ecn.purdue.edu/~jychoi/lthia-gis/runms.cgi?"+mySoilStateName); return false; } } function CheckNumberEntry(str) { var dots = 0; var flag; if (inputStr == "" || inputStr == null) { return true } else{ var inputStr = str for (var i = 0; i < inputStr.length; i++) { var oneChar = inputStr.substring(i, i + 1) flag = true; if (oneChar < "0" || oneChar > "9") { if(oneChar == "."){ dots++; if(dots > 1){ flag = false; } } else{ flag = false; } } if(flag == false){ return false } } return true } return true } function setLandUse(form,num) { eval(" form.landuse"+num+".disabled = false "); } function CheckisNumber(str) { var dots = 0; var flag; if (CheckisNotEmpty(str)) { var inputStr = str for (var i = 0; i < inputStr.length; i++) { var oneChar = inputStr.substring(i, i + 1) flag = true; if (oneChar < "0" || oneChar > "9") { if(oneChar == "."){ dots++; if(dots > 1){ flag = false; } } else{ flag = false; } } if(flag == false){ alert("Please make sure entries are numbers only.") return false } } return true } return false } function clean(str) { var len = str.len; var str1; per = 0; while(true) { per = str.indexOf("%"); if(per >= len) return str; str1 = str.substring(per+3); str = str.substring(0,per) + str1; len = str.length(); } } function TotalRow1(form,field,numlanduse) { num=new Number(0); flag = new Number(0); if(!CheckisNumber(field.value)){ field.value = 0; field.focus(); flag = 1; } if(numlanduse != 10) { eval(" form.landuse"+numlanduse+".disabled = false "); } if( form.yr11.value.length > 0 ) num += parseFloat(form.yr11.value,10); if( form.yr21.value.length > 0 ) num += parseFloat(form.yr21.value,10); if( form.yr31.value.length > 0 ) num += parseFloat(form.yr31.value,10); if( form.yr41.value.length > 0 ) num += parseFloat(form.yr41.value,10); if( form.yr51.value.length > 0 ) num += parseFloat(form.yr51.value,10); if( form.yr61.value.length > 0 ) num += parseFloat(form.yr61.value,10); if( form.yr71.value.length > 0 ) num += parseFloat(form.yr71.value,10); if( form.yr81.value.length > 0 ) num += parseFloat(form.yr81.value,10); if( form.yr91.value.length > 0 ) num += parseFloat(form.yr91.value,10); form.total1.value=num.toString(); if (flag == 1){ return false; } return true } // this functions totals values in a given column /*function popupTotalColumn(form,field,col) { num=new Number(0); flag = new Number(0); if(!CheckisNumber(field.value)){ field.value = 0; field.focus(); flag = 1; } for(i = 1; i <= 8; i++) { var boxname = eval("form."+'box'+i.toString()+col); if( boxname.value.length > 0 ) num += parseFloat(boxname.value,10); } var boxname1 = eval("form."+'box'+i.toString()+col); boxname1.value = num.toString(); if (flag == 1){ return false; } return true }*/ function tempFunction() { return true; } function TotalRow2(form,field,numlanduse) { num=new Number(0); flag = new Number(0); if(!CheckisNumber(field.value)){ field.value = 0; field.focus(); flag = 1; } if(numlanduse != 10) { eval(" form.landuse"+numlanduse+".disabled = false "); } if( form.yr12.value.length > 0 ) num += parseFloat(form.yr12.value,10); if( form.yr22.value.length > 0 ) num += parseFloat(form.yr22.value,10); if( form.yr32.value.length > 0 ) num += parseFloat(form.yr32.value,10); if( form.yr42.value.length > 0 ) num += parseFloat(form.yr42.value,10); if( form.yr52.value.length > 0 ) num += parseFloat(form.yr52.value,10); if( form.yr62.value.length > 0 ) num += parseFloat(form.yr62.value,10); if( form.yr72.value.length > 0 ) num += parseFloat(form.yr72.value,10); if( form.yr82.value.length > 0 ) num += parseFloat(form.yr82.value,10); if( form.yr92.value.length > 0 ) num += parseFloat(form.yr92.value,10); form.total2.value=num.toString(); if (flag == 1){ return false; } return true } function TotalRow3(form,field,numlanduse) { num=new Number(0); flag = new Number(0); if(!CheckisNumber(field.value)){ field.value = 0; field.focus(); flag = 1; } if(numlanduse != 10) { eval(" form.landuse"+numlanduse+".disabled = false "); } if( form.yr13.value.length > 0 ) num += parseFloat(form.yr13.value,10); if( form.yr23.value.length > 0 ) num += parseFloat(form.yr23.value,10); if( form.yr33.value.length > 0 ) num += parseFloat(form.yr33.value,10); if( form.yr43.value.length > 0 ) num += parseFloat(form.yr43.value,10); if( form.yr53.value.length > 0 ) num += parseFloat(form.yr53.value,10); if( form.yr63.value.length > 0 ) num += parseFloat(form.yr63.value,10); if( form.yr73.value.length > 0 ) num += parseFloat(form.yr73.value,10); if( form.yr83.value.length > 0 ) num += parseFloat(form.yr83.value,10); if( form.yr93.value.length > 0 ) num += parseFloat(form.yr93.value,10); form.total3.value=num.toString(); if (flag == 1){ return false; } return true } function showmsgwindow() { for(i=1;i<=9;i++){ eval(" myform.landuse"+i+".disabled = false "); } newindow = window.open("timer_wd.html","Timer","toolbar=no,width=500,height=200,screenX=200,screenY=400"); newindow.focus(); } function showsamplewindow() { popwindow = window.open("popup.htm","Sample","toolbar=yes,width=420,height=500"); popwindow.focus(); } var poptable = new Array(); //prao function popupTable(form,indx,pop) { box = document.getElementById("luse"+indx); document.getElementById("rindex").value = indx; document.getElementById("isPop").value = pop; category = box.options[box.selectedIndex].value; if(category == "Commercial") { poptable[indx-1] = window.open('pop_commercial.htm','name1','scrollbars=yes, height=375,width=400'); //if(poptable.opener == null) poptable.opener = self; }else if(category == "Industrial") { poptable[indx-1] = window.open('pop_industrial.htm','name2','scrollbars=yes, height=500,width=425'); poptable[indx-1].focus(); }else if(category == "Institutional") { poptable[indx-1] = window.open('pop_institutional.htm','name3','scrollbars=yes, height=500,width=425'); poptable[indx-1].focus(); }else if(category == "Single Family Residential") { poptable[indx-1] = window.open('pop_ldhome.htm','name4','scrollbars=yes, resizeable=yes, height=650,width=425'); poptable[indx-1].focus(); }else if(category == "Multi Family Residential") { poptable[indx-1] = window.open('pop_hdhome.htm','name5','scrollbars=yes, resizable=yes, height=550,width=425'); poptable[indx-1].focus(); }else if(category == "Open Space") { poptable[indx-1] = window.open('pop_open.htm','name6','scrollbars=yes, height=350,width=425'); poptable[indx-1].focus(); }else if(category == "Agricultural") { poptable[indx-1] = window.open('pop_ag.htm','name6','scrollbars=yes, height=350,width=425'); poptable[indx-1].focus(); }else { /*document.getElementById("yri"+indx+"1").disabled = false; document.getElementById("yri"+indx+"2").disabled = false; document.getElementById("yri"+indx+"3").disabled = false;*/ return true; } // disable text fields /*document.getElementById("yri"+indx+"1").disabled = true; document.getElementById("yri"+indx+"2").disabled = true; document.getElementById("yri"+indx+"3").disabled = true;*/ return true; } function loadValues(src) { var ispop = src.document.getElementById("isPop").value; var indx = src.document.getElementById("rindex").value; document.getElementById("rowindx").value = src.document.getElementById("rindex").value; if(ispop == "false") return; var k1; var k2; for(k1 = 1; k1 <= 9; k1++) { for(k2 = 2; k2 <= 5; k2++) { var bpop = document.getElementById("b"+k1+k2); bpop.value = src.document.getElementById("box"+indx+k1+k2).value; } } selbox = src.document.getElementById("luse"+indx); if(selbox.options[selbox.selectedIndex].value == "Single Family Residential") { for(k1 = 1; k1 <=3; k1++) { for(k2 = 1; k2<=3; k2++) { var tmp_v = document.getElementById("m"+k1+k2); /*if(ispop == "false") { var inp = dest.document.createElement("input"); inp.setAttribute("type","hidden"); inp.setAttribute("name","cmeasure"+indxr+k1+k2); inp.setAttribute("value",tmp_v.value); dest.document.myform.appendChild(inp); } else {*/ tmp_v.selectedIndex = src.document.getElementById("cmeasure"+indx+k1+k2).value; //} } } } if(selbox.options[selbox.selectedIndex].value == "Multi Family Residential") { for(k1 = 1; k1 <=2; k1++) { for(k2 = 1; k2<=3; k2++) { var tmp_v = document.getElementById("m"+k1+k2); /*if(ispop == "false") { var inp = dest.document.createElement("input"); inp.setAttribute("type","hidden"); inp.setAttribute("name","cmfmeasure"+indxr+k1+k2); inp.setAttribute("value",tmp_v.value); dest.document.myform.appendChild(inp); } else {*/ tmp_v.selectedIndex = src.document.getElementById("cmfmeasure"+indx+k1+k2).value; // } } } } document.getElementById("b102").value = src.document.getElementById("box"+indx+"102").value; document.getElementById("b103").value = src.document.getElementById("box"+indx+"103").value; document.getElementById("b104").value = src.document.getElementById("box"+indx+"104").value; } // prao // this functions totals values in a given column function popupTotalColumn(form,field,col) { num1=new Number(0); flag1 = new Number(0); if(!CheckisNumber(field.value)){ field.value = 0; field.focus(); flag1 = 1; } for(i = 1; i <= 9; i++) { var boxname = eval("form."+'box'+i.toString()+col); if( boxname.value.length > 0 ) num1 += parseFloat(boxname.value,10); } var boxname1 = eval("form."+'box'+i.toString()+col); boxname1.value = num1.toString(); if (flag1 == 1){ return false; } return true } // prao // function to transfer user input from popup window to // the main window function transferData(dest,src) { indxr = dest.document.myform.rowindex.value; var ispop = dest.document.getElementById("isPop").value; eval("dest.document.myform.yr"+indxr+1+".value = src.box102.value"); eval("dest.document.myform.yr"+indxr+2+".value = src.box103.value"); eval("dest.document.myform.yr"+indxr+3+".value = src.box104.value"); var k1; var k2; for(k1 = 1; k1 <= 10; k1++) { for(k2 = 2; k2 <= 5; k2++) { var tmp_box = document.getElementById("b"+k1+k2); dest.document.getElementById("box"+indxr+k1+k2).value = tmp_box.value; } } if(document.getElementById("landusetype").value == "SF Residential") { for(k1 = 1; k1 <=3; k1++) { for(k2 = 1; k2<=3; k2++) { var tmp_v = document.getElementById("m"+k1+k2); dest.document.getElementById("cmeasure"+indxr+k1+k2).value = tmp_v.selectedIndex; } } } if(document.getElementById("landusetype").value == "MF Residential") { for(k1 = 1; k1 <=2; k1++) { for(k2 = 1; k2<=3; k2++) { var tmp_v = document.getElementById("m"+k1+k2); dest.document.getElementById("cmfmeasure"+indxr+k1+k2).value = tmp_v.selectedIndex; //alert("cmfmeasure"+indxr+k1+k2+" ==> "+dest.document.getElementById("cmfmeasure"+indxr+k1+k2).value); } } } //recalculate totals for(k1 = 1; k1 <=3; k1++) { var tot = 0; for(k2 = 1; k2 <=9 ; k2++) { if(dest.document.getElementById("yri"+k2+k1).value != "") { tot += parseFloat(dest.document.getElementById("yri"+k2+k1).value);} } dest.document.getElementById("tot"+k1).value = tot; } } function checkCounty(dest) { if(dest.wd_county.selectedIndex == 0) { alert("Please select county and city to continue"); return false; } } function finalCheck(form) { if(form.wd_county.selectedIndex == 0) { alert("Please select county and city to continue"); return false; } var sum_luse = "" ; //form.previouscounty.value = form.county.selectedIndex; LandUseIndex1 = form.landuse1.selectedIndex ; LandUseIndex2 = form.landuse2.selectedIndex ; LandUseIndex3 = form.landuse3.selectedIndex ; LandUseIndex4 = form.landuse4.selectedIndex ; LandUseIndex5 = form.landuse5.selectedIndex ; LandUseIndex6 = form.landuse6.selectedIndex ; LandUseIndex7 = form.landuse7.selectedIndex ; LandUseIndex8 = form.landuse8.selectedIndex ; LandUseIndex9 = form.landuse9.selectedIndex ; //statecounty = form.county.selectedIndex ; form.browser.value = this.navigator.appName; form.inputtype.value= parseFloat("1") ; year1_1 = parseFloat(form.yr11.value) ; year2_1 = parseFloat(form.yr21.value) ; year3_1 = parseFloat(form.yr31.value) ; year4_1 = parseFloat(form.yr41.value) ; year5_1 = parseFloat(form.yr51.value) ; year6_1 = parseFloat(form.yr61.value) ; year7_1 = parseFloat(form.yr71.value) ; year8_1 = parseFloat(form.yr81.value) ; year9_1 = parseFloat(form.yr91.value) ; year1_2 = parseFloat(form.yr12.value) ; year2_2 = parseFloat(form.yr22.value) ; year3_2 = parseFloat(form.yr32.value) ; year4_2 = parseFloat(form.yr42.value) ; year5_2 = parseFloat(form.yr52.value) ; year6_2 = parseFloat(form.yr62.value) ; year7_2 = parseFloat(form.yr72.value) ; year8_2 = parseFloat(form.yr82.value) ; year9_2 = parseFloat(form.yr92.value) ; year1_3 = parseFloat(form.yr13.value) ; year2_3 = parseFloat(form.yr23.value) ; year3_3 = parseFloat(form.yr33.value) ; year4_3 = parseFloat(form.yr43.value) ; year5_3 = parseFloat(form.yr53.value) ; year6_3 = parseFloat(form.yr63.value) ; year7_3 = parseFloat(form.yr73.value) ; year8_3 = parseFloat(form.yr83.value) ; year9_3 = parseFloat(form.yr93.value) ; if (LandUseIndex1 > 0) { if((!CheckNumberEntry(form.yr11.value)) ||(!CheckNumberEntry(form.yr12.value)) || (!CheckNumberEntry(form.yr13.value)) ){ alert("All landuse values in Row 1 need to be numbers") ; returnfalse ;} } if (LandUseIndex2 > 0) { if((!CheckNumberEntry(form.yr21.value)) ||(!CheckNumberEntry(form.yr22.value)) || (!CheckNumberEntry(form.yr23.value)) ){ alert("All landuse values in Row 2 need to be numbers") ; returnfalse ;} } if (LandUseIndex3 > 0) { if((!CheckNumberEntry(form.yr31.value)) ||(!CheckNumberEntry(form.yr32.value)) || (!CheckNumberEntry(form.yr33.value)) ){ alert("All landuse values in Row 3 need to be numbers") ; returnfalse ;} } if (LandUseIndex4 > 0) { if((!CheckNumberEntry(form.yr41.value)) ||(!CheckNumberEntry(form.yr42.value)) || (!CheckNumberEntry(form.yr43.value)) ){ alert("All landuse values in Row 4 need to be numbers") ; returnfalse ;} } if (LandUseIndex5 > 0) { if((!CheckNumberEntry(form.yr51.value)) ||(!CheckNumberEntry(form.yr52.value)) || (!CheckNumberEntry(form.yr53.value)) ){ alert("All landuse values in Row 5 need to be numbers") ; returnfalse ;} } if (LandUseIndex6 > 0) { if((!CheckNumberEntry(form.yr61.value)) ||(!CheckNumberEntry(form.yr62.value)) || (!CheckNumberEntry(form.yr63.value)) ){ alert("All landuse values in Row 6 need to be numbers") ; returnfalse ;} } if (LandUseIndex7 > 0) { if((!CheckNumberEntry(form.yr71.value)) ||(!CheckNumberEntry(form.yr72.value)) || (!CheckNumberEntry(form.yr73.value)) ){ alert("All landuse values in Row 7 need to be numbers") ; returnfalse ;} } if (LandUseIndex8 > 0) { if((!CheckNumberEntry(form.yr81.value)) ||(!CheckNumberEntry(form.yr82.value)) || (!CheckNumberEntry(form.yr83.value)) ){ alert("All landuse values in Row 8 need to be numbers") ; returnfalse ;} } if (LandUseIndex9 > 0) { if((!CheckNumberEntry(form.yr91.value)) ||(!CheckNumberEntry(form.yr92.value)) || (!CheckNumberEntry(form.yr93.value)) ){ alert("All landuse values in Row 9 need to be numbers") ; returnfalse ;} } if (LandUseIndex1 == 0) { alert("Select land uses starting at the top of the table. Do not skip rows in the table when selecting land uses.") ; return false ; } year1=new Number(parseFloat(form.total1.value,10)); year2=new Number(parseFloat(form.total2.value,10)); form.totalarea=form.total1.value; if( (year1 - year2) == 0) { year3=new Number(parseFloat(form.total3.value,10)); if( year3 == 0 ){ showmsgwindow(); return true; } if( (year1-year3) == 0 ) { showmsgwindow(); return true; } else { alert("The land use doesn't match in Year 3!! "); return false; } } else { year3=new Number(parseFloat(form.total3.value,10)); if( year2 == 0 && year3 == 0 ){ showmsgwindow(); return true; } alert("The land use doesn't match in Year 2!! "+year2+","+year1); return false; } showmsgwindow(); //document.myform.reset(); return true; } function stripblanks(str) { for (i=0;i