<!doctype html>
<html>
<head>
<title>Dams in United States of America - RJM Programming - February, 2017</title>
<script type='text/javascript'>
var maptext="", timelinetext="", ismap=true;
var iois=null, first_try=true, zero=0, bignumber=99700000000.0;
var cnt=0, dcnt=1, pbarv=0, last_state='', oktodo=true, oktoshow=true, youtubeinit=true;
var dam_data='', dam_data_arr=[]; // lots of 22
var dam_name_etc=[];
var dam_drain_area=[], dam_surface_area=[], dam_normal_storage=[], dam_maximum_storage=[], dam_nid_height=[];
var debug_block = (location.search.split('debug=')[1] ? location.search.split('debug=')[1].split('&')[0] : 'none');
var more_time = (location.search.split('more=')[1] ? location.search.split('more=')[1].split('&')[0] : '0');
var state_lu=["Puerto Rico","PR","Virgin Islands","VI",
"Alabama",
"AL",
"Missouri",
"MO",
"Alaska",
"AK",
"Montana",
"MT",
"Arizona",
"AZ",
"Nebraska",
"NE",
"Arkansas",
"AR",
"Nevada",
"NV",
"California",
"CA",
"New Hampshire",
"NH",
"Colorado",
"CO",
"New Jersey",
"NJ",
"Connecticut",
"CT",
"New Mexico",
"NM",
"Delaware",
"DE",
"New York",
"NY",
"District of Columbia",
"DC",
"North Carolina",
"NC",
"Florida",
"FL",
"North Dakota",
"ND",
"Georgia",
"GA",
"Ohio",
"OH",
"Hawaii",
"HI",
"Oklahoma",
"OK",
"Idaho",
"ID",
"Oregon",
"OR",
"Illinois",
"IL",
"Pennsylvania",
"PA",
"Indiana",
"IN",
"Rhode Island",
"RI",
"Iowa",
"IA",
"South Carolina",
"SC",
"Kansas",
"KS",
"South Dakota",
"SD",
"Kentucky",
"KY",
"Tennessee",
"TN",
"Louisiana",
"LA",
"Texas",
"TX",
"Maine",
"ME",
"Utah",
"UT",
"Maryland",
"MD",
"Vermont",
"VT",
"Massachusetts",
"MA",
"Virginia",
"VA",
"Michigan",
"MI",
"Washington",
"WA",
"Minnesota",
"MN",
"West Virginia",
"WV",
"Mississippi",
"MS",
"Wisconsin",
"WI",
"Wyoming",
"WY"];
function inarr(what) {
for (var kj=zero; kj<eval(dam_data_arr.length); kj++) {
if (dam_data_arr[kj] == what) {
zero=kj;
return kj;
}
}
return -1;
}
function examine_dam_data() {
var ij=0,lastij=13,twenty=20,kk,five=5,four=4,prevl=-1,dofirst=true;
if (first_try) {
//alert(decodeURIComponent("~KY%2CHAMILTON%201%20%22SLURRY%22%2C%C2%A0%09%2C%C2%A0%09%2CUNIONTOWN%2CUNION%2C60.00000000000%2C480.00000000000%2C0.00000000000%2C0.00000000000%2C0.11000000000%2C%C2%A0%09%2CT%2C%C2%A0%09~]"));
first_try=false;
if (eval(more_time) > 0) {
var hlis=((eval(document.getElementById('pbar').max) / 1) * 1000) - 4000;
//alert(document.getElementById('pbar').max + ' ... ' + hlis);
setTimeout(examine_dam_data, hlis);
} else {
setTimeout(examine_dam_data, 60000);
}
return;
}
if (iois != null) {
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var at=false;
if (aconto.textContent) at=true;
if (aconto.body.innerHTML.length == 0 && !at) {
cnt++;
iois=document.getElementById('myiframe');
//document.title=aconto.body.innerHTML.length + ' ... ' + cnt + ' ... ' + aconto.body.innerText.substring(0,100);
setTimeout(examine_dam_data, 2000);
} else {
//alert('abi=' + aconto.body.innerHTML.length);
if (document.body.innerText) {
if (aconto.body.innerText.indexOf(String.fromCharCode(10)) != -1) {
//alert('abit=' + aconto.body.innerText.length);
dam_data_arr=aconto.body.innerText.split(String.fromCharCode(10));
//alert('cnt=' + dam_data_arr.length + ' ' + dam_data_arr[0].substring(0,100));
} else {
//alert('zzabt=' + aconto.body.innerHTML.replace(/\<\/td\>/gi,"\n").replace(/(<([^>]+)>)/gi, "").length);
//dam_data_arr=aconto.body.innerHTML.replace(/\<br\>/gi,"\n").replace(/(<([^>]+)>)/gi, "").split(String.fromCharCode(10));
dam_data_arr=aconto.body.innerHTML.replace(/\<\/td\>/gi,"\n").replace(/(<([^>]+)>)/gi, "").split(String.fromCharCode(10));
//alert('zcnt=' + dam_data_arr.length + ' ' + dam_data_arr[0].substring(0,100));
}
} else {
//alert('nextabi=' + aconto.body.innerHTML.length);
if (aconto.textContent) {
//alert('abt=' + aconto.textContent.length);
dam_data_arr=aconto.textContent.split(String.fromCharCode(10));
} else { // thanks to http://www.davidtong.me/innerhtml-innertext-textcontent-html-and-text/
//alert('zabt=' + aconto.body.innerHTML.replace(/\<br\>/gi,"\n").replace(/(<([^>]+)>)/gi, "").length);
dam_data_arr=aconto.body.innerHTML.replace(/\<br\>/gi,"\n").replace(/(<([^>]+)>)/gi, "").split(String.fromCharCode(10));
}
}
document.getElementById('myiframe').src="about:blank"; // memory clear attempts
//alert(aconto.body.innerText.substring(0,2600));
//alert(dam_data_arr[22]);
//alert('667 at ' + inarr('667'));
for (var kj=22; kj<eval(dam_data_arr.length); kj+=22) {
if (eval(lastij) > eval(dam_data_arr.length) && prevl >= 0) {
ij=prevl;
} else {
ij=lastij; //eval(-8 + kj); //Math.max(eval(lastij + 1),kj);
}
//if (dcnt >= 666) alert(ij + ' before: ' + dcnt + ' ... ' + lastij + ' vs ' + dam_data_arr.length + ' ___ ' + prevl + ' ' + kj);
//if (dcnt == 914) alert(dcnt + ' ...before... ' + ij + ' ... ' + dam_data_arr.length);
if (eval(2 + ij) < eval(dam_data_arr.length)) {
while (('*' + dam_data_arr[ij].trim() + '*').indexOf('*' + dcnt + '*') == -1 && eval(2 + ij) < eval(dam_data_arr.length)) {
//if (dcnt >= 666) alert(ij + ' *' + dam_data_arr[ij].trim() + '* vs *' + dcnt + '*');
ij++;
}
//if (dcnt >= 666) alert(ij + ' andthenbefore: ' + dcnt + ' ... ' + lastij + ' vs ' + dam_data_arr.length + ' ___ ' + prevl);
}
//if (dcnt == 914) alert(dcnt + ' ... ' + ij + ' ... ' + dam_data_arr.length);
lastij=eval(10 + ij);
//if (dcnt >= 666) alert(dcnt + ' .+. ' + lastij + ' vs ' + dam_data_arr.length + ' ___ ' + prevl + ' ' + inarr('' + dcnt));
if (lastij < eval(dam_data_arr.length)) {
prevl=lastij;
} else if (inarr('' + dcnt) != -1) {
ij=inarr('' + dcnt);
}
twenty=20;
for (kk=lastij; kk<=eval(80 + ij); kk++) {
if (kk >= 3 && kk < eval(dam_data_arr.length)) {
if (dam_data_arr[eval(-3 + kk)].indexOf('.') != -1 && dam_data_arr[eval(-3 + kk)].indexOf('0') != -1 && dam_data_arr[eval(-2 + kk)].indexOf('.') != -1 && dam_data_arr[eval(-2 + kk)].indexOf('0') != -1 && dam_data_arr[eval(-1 + kk)].length == 1 && dam_data_arr[kk].length == 2) {
if (dam_data_arr[kk].substring(0,1) >= 'A' && dam_data_arr[kk].substring(0,1) <= 'Z') {
if (dam_data_arr[kk].substring(1,2) >= 'A' && dam_data_arr[kk].substring(1,2) <= 'Z') {
twenty=eval(kk - ij);
}
}
}
}
}
if (eval(twenty + ij) < eval(dam_data_arr.length)) {
//if (eval(dam_data_arr[eval(0 + ij)]) == 980) alert(dam_data_arr[eval(2 + twenty + ij)] + ' ... ' + ij + ' (' + eval(twenty + ij) + ') ' + eval(dam_data_arr.length) + ' ... ' + dam_data_arr[eval(0 + ij)] + ' ... vs ... ' + dam_data_arr[eval(20 + ij)]);
if (dam_data_arr[eval(twenty + ij)].length == 2) {
if (dam_data_arr[eval(5 + ij)].indexOf("-") != -1 && dam_data_arr[eval(5 + ij)].indexOf(".") != -1) {
five=6;
four=5;
} else if (dam_data_arr[eval(3 + ij)].indexOf("-") != -1 && dam_data_arr[eval(3 + ij)].indexOf(".") != -1) {
five=4;
four=3;
} else {
five=5;
four=4;
}
if (dam_data_arr[eval(four + ij)].indexOf("-") != -1 && dam_data_arr[eval(four + ij)].indexOf(".") != -1 && dam_data_arr[eval(five + ij)].indexOf(".") != -1) {
if (dam_data_arr[eval(3 + ij)].substring(0,2).indexOf("-") != -1 || dam_data_arr[eval(3 + ij)].substring(0,2) == "FO") {
dam_name_etc.push((dam_data_arr[eval(twenty + ij)] + ';' + dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(five + ij)] + ',' + dam_data_arr[eval(four + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)] + ';' + dam_data_arr[eval(twenty + ij)]).replace(/\'/g,'`').replace(/gfdgfdgf\//g,'-').replace(/\&\;/g,'and').replace(/ \& /g,' and ').replace(/bfghgfdhg\#/g,'Number').replace(/\"/g,'`').replace(/\.00000000000/g,'.0').replace(/0000000000;/g,';'));
// memory usage mitigation attempts below
dam_drain_area.push(('' + (bignumber - dam_data_arr[eval(-2 + twenty + ij)]) + ';' + dam_data_arr[eval(twenty + ij)] + ';' + eval(-1 + dam_name_etc.length))); //dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(five + ij)] + ',' + dam_data_arr[eval(four + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)] + ';' + dam_data_arr[eval(twenty + ij)]).replace(/\'/g,'`').replace(/\"/g,'`').replace(/\.00000000000/g,'.0').replace(/0000000000;/g,';'));
dam_surface_area.push(('' + (bignumber - dam_data_arr[eval(-3 + twenty + ij)]) + ';' + dam_data_arr[eval(twenty + ij)] + ';' + + eval(-1 + dam_name_etc.length))); //dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(five + ij)] + ',' + dam_data_arr[eval(four + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)] + ';' + dam_data_arr[eval(twenty + ij)]).replace(/\'/g,'`').replace(/\"/g,'`').replace(/\.00000000000/g,'.0').replace(/0000000000;/g,';'));
dam_normal_storage.push(('' + (bignumber - dam_data_arr[eval(-4 + twenty + ij)]) + ';' + dam_data_arr[eval(twenty + ij)] + ';' + + eval(-1 + dam_name_etc.length))); //dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(five + ij)] + ',' + dam_data_arr[eval(four + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)] + ';' + dam_data_arr[eval(twenty + ij)]).replace(/\'/g,'`').replace(/\"/g,'`').replace(/\.00000000000/g,'.0').replace(/0000000000;/g,';'));
dam_maximum_storage.push(('' + (bignumber - dam_data_arr[eval(-5 + twenty + ij)]) + ';' + dam_data_arr[eval(twenty + ij)] + ';' + + eval(-1 + dam_name_etc.length))); //dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(five + ij)] + ',' + dam_data_arr[eval(four + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)] + ';' + dam_data_arr[eval(twenty + ij)]).replace(/\'/g,'`').replace(/\"/g,'`').replace(/\.00000000000/g,'.0').replace(/0000000000;/g,';'));
dam_nid_height.push(('' + (bignumber - dam_data_arr[eval(-6 + twenty + ij)]) + ';' + dam_data_arr[eval(twenty + ij)] + ';' + + eval(-1 + dam_name_etc.length))); //dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(five + ij)] + ',' + dam_data_arr[eval(four + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)] + ';' + dam_data_arr[eval(twenty + ij)]).replace(/\'/g,'`').replace(/\"/g,'`').replace(/\.00000000000/g,'.0').replace(/0000000000;/g,';'));
} else {
dam_name_etc.push((dam_data_arr[eval(3 + ij)].substring(0,2) + ';' + dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(five + ij)] + ',' + dam_data_arr[eval(four + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)] + ';' + dam_data_arr[eval(3 + ij)].substring(0,2)).replace(/\'/g,'`').replace(/gfdgfdgf\//g,'-').replace(/\&\;/g,'and').replace(/ \& /g,' and ').replace(/bfghgfdhg\#/g,'Number').replace(/\"/g,'`').replace(/\.00000000000/g,'.0').replace(/0000000000;/g,';'));
// memory usage mitigation attempts below
if (dam_data_arr[eval(20 + ij)] == dam_data_arr[eval(3 + ij)].substring(0,2)) {
dam_drain_area.push(('' + (bignumber - dam_data_arr[eval(18 + ij)]) + ';' + dam_data_arr[eval(3 + ij)].substring(0,2) + ';' + + eval(-1 + dam_name_etc.length))); //dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(five + ij)] + ',' + dam_data_arr[eval(four + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)] + ';' + dam_data_arr[eval(3 + ij)].substring(0,2)).replace(/\'/g,'`').replace(/\"/g,'`').replace(/\.00000000000/g,'.0').replace(/0000000000;/g,';'));
dam_surface_area.push(('' + (bignumber - dam_data_arr[eval(17 + ij)]) + ';' + dam_data_arr[eval(3 + ij)].substring(0,2) + ';' + + eval(-1 + dam_name_etc.length))); //dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(five + ij)] + ',' + dam_data_arr[eval(four + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)] + ';' + dam_data_arr[eval(3 + ij)].substring(0,2)).replace(/\'/g,'`').replace(/\"/g,'`').replace(/\.00000000000/g,'.0').replace(/0000000000;/g,';'));
dam_normal_storage.push(('' + (bignumber - dam_data_arr[eval(16 + ij)]) + ';' + dam_data_arr[eval(3 + ij)].substring(0,2) + ';' + + eval(-1 + dam_name_etc.length))); //dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(five + ij)] + ',' + dam_data_arr[eval(four + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)] + ';' + dam_data_arr[eval(3 + ij)].substring(0,2)).replace(/\'/g,'`').replace(/\"/g,'`').replace(/\.00000000000/g,'.0').replace(/0000000000;/g,';'));
dam_maximum_storage.push(('' + (bignumber - dam_data_arr[eval(15 + ij)]) + ';' + dam_data_arr[eval(3 + ij)].substring(0,2) + ';' + + eval(-1 + dam_name_etc.length))); //dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(five + ij)] + ',' + dam_data_arr[eval(four + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)] + ';' + dam_data_arr[eval(3 + ij)].substring(0,2)).replace(/\'/g,'`').replace(/\"/g,'`').replace(/\.00000000000/g,'.0').replace(/0000000000;/g,';'));
dam_nid_height.push(('' + (bignumber - dam_data_arr[eval(14 + ij)]) + ';' + dam_data_arr[eval(3 + ij)].substring(0,2) + ';' + + eval(-1 + dam_name_etc.length))); //dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(five + ij)] + ',' + dam_data_arr[eval(four + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)] + ';' + dam_data_arr[eval(3 + ij)].substring(0,2)).replace(/\'/g,'`').replace(/\"/g,'`').replace(/\.00000000000/g,'.0').replace(/0000000000;/g,';'));
}
}
}
//if (eval(22 + ij) < eval(dam_data_arr.length) && eval(dam_data_arr[eval(22 + ij)]) > 0 && dam_data_arr[eval(22 + ij)].indexOf('.') == -1) dcnt=eval(-1 + eval(dam_data_arr[eval(22 + ij)]));
} //else {
//alert((dam_data_arr[eval(twenty + ij)] + ';' + dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(5 + ij)] + ',' + dam_data_arr[eval(4 + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)]));
//}
//} else {
//alert(dcnt + ' ... ' + ij + ' huh');
}
dcnt++;
//if (dcnt == 914) alert(dcnt + ' ...Before... ' + ij + ' ... ' + dam_data_arr.length);
}
//alert(dcnt + ' ... ' + eval(dam_name_etc.length) + ' ... ' + eval(dam_data_arr.length / 22) + ' ... ' + dam_name_etc[0]);
//document.getElementById('myiframe').src="about:blank"; // memory clear attempts
dam_data_arr=[]; // memory clear attempts
//dam_name_etc.sort(); // change needed RE memory recoding
dam_drain_area.sort();
dam_surface_area.sort();
dam_normal_storage.sort();
dam_maximum_storage.sort();
dam_nid_height.sort();
//alert(dam_drain_area[0]);
//alert(dam_surface_area[0]);
//alert(dam_normal_storage[0]);
//alert(dam_maximum_storage[0]);
//alert(dam_nid_height[0]);
//alert(dcnt + ' ... ' + eval(dam_name_etc.length) + ' ... ' + eval(dam_data_arr.length / 22) + ' ... ' + dam_name_etc[0]);
var lastc='', lastclist=';', uss=[];
for (kk=0; kk<dam_name_etc.length; kk++) {
if (dam_name_etc[kk].split(';')[0] != lastc) {
lastc=dam_name_etc[kk].split(';')[0];
if (lastclist.indexOf(';' + lastc + ';') == -1) {
lastclist+=lastc + ';';
uss.push("<option value='" + lastc + "'>" + givencodereturnname(lastc) + "</option>");
} //else {
//document.getElementById('us_state').innerHTML+="<option value='" + lastc + "'>" + givencodereturnname(lastc) + "</option>";
//}
}
}
uss.sort();
document.getElementById('us_state').innerHTML=document.getElementById('us_state').innerHTML.split(' ... ')[0] + '</option>';
for (kk=0; kk<uss.length; kk++) {
document.getElementById('us_state').innerHTML+=uss[kk];
}
populate_div_lists();
}
}
}
} else {
iois=document.getElementById('myiframe');
setTimeout(examine_dam_data, 2000);
}
}
function givencodereturnname(inc) {
if (state_lu.indexOf(inc) != -1) return state_lu[eval(-1 + state_lu.indexOf(inc))];
//alert(inc);
return '';
}
function append_to_data(vtv,altvtv) {
if (last_state != "") {
document.getElementById('title').value=givencodereturnname(last_state) + " Dams";
} else {
document.getElementById('title').value="Dams";
}
//alert(vtv);
//alert(decodeURIComponent(vtv));
//alert(decodeURIComponent(vtv).split("~")[1].split("~")[0].split(';')[0].replace(/\"/g,'`').replace(/\'/g,'`'));
//alert(decodeURIComponent(vtv).split("~")[1].split("~")[0].split(';')[1].replace(/\"/g,'`').replace(/\'/g,'`'));
var bits=decodeURIComponent(vtv).split("~")[1].split("~")[0].replace(/;/g,' ').split(',');
document.getElementById('youtubea').href='http://www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?emoji=on&nokaraoke=y&youtubeid=' + encodeURIComponent(' ' + (decodeURIComponent(vtv).split("~")[1].split("~")[0].split(",")[0] + " DAM").replace(" DAM DAM"," DAM").replace(',' + bits[eval(-1 + bits.length)],'').replace(/;/g,' '));
document.getElementById('youtubea').title=decodeURIComponent(vtv).split("~")[1].split("~")[0].replace(/\"/g,'`').replace(/\'/g,'`');
document.getElementById('youtubea').innerHTML="YouTube search for " + decodeURIComponent(vtv).split("~")[1].split("~")[0];
document.getElementById('youtubed').style.display='block';
document.getElementById('youtubes').style.display='none';
document.getElementById('youtubea').style.display='block';
if (eval(document.getElementById('kmf').value) > 0.0) {
document.getElementById('blat').value=vtv.split("[")[1].split(',')[0];
document.getElementById('blong').value=vtv.split(",")[2];
//alert('2 ' + document.getElementById('kmf').value);
filterit(document.getElementById('kmf').value,document.getElementById('blat').value,document.getElementById('blong').value);
//alert('3 ' + document.getElementById('kmf').value);
document.getElementById('blat').value=0.0;
document.getElementById('blong').value=0.0;
} else if (ismap) {
document.getElementById('data').value+=vtv;
} else if (document.getElementById('data').value == '' && altvtv.indexOf('[') != -1) {
document.getElementById('data').value+=altvtv.substring(altvtv.indexOf('['));
} else if (altvtv.indexOf('[') != -1) {
document.getElementById('data').value+=',' + altvtv.substring(altvtv.indexOf('['));
}
//alert(document.getElementById('data').value.substring(0,234));
document.getElementById('smapif').click();
}
function appendto(arris,indexis) {
var smallvar=arris[indexis], jindexis=indexis;
jindexis=eval(smallvar.split(';')[2]);
var bigvar=dam_name_etc[jindexis].replace(/\ \;/g, '');
var bigvars=bigvar.split(';');
//if (oktoshow) alert(smallvar + ' became ' + smallvar.replace(";" + jindexis, bigvar.replace(bigvars[0],"")) + ' via ' + bigvar);
oktoshow=false;
return smallvar.replace(";" + jindexis, bigvar.replace(bigvars[0],""));
}
function realt(inv) {
var outv=inv;
if (inv.split(',11,31)')[0].split('(')[1].length != 4) return '';
return outv;
}
function populate_div_lists() {
var icnt, kcnt=0, xthings, statebit='', atlbit='', atldelim='';
document.getElementById('filters').style.display='block';
if (last_state != "") {
statebit=' ' + givencodereturnname(last_state);
}
var sdam_drain_area='<select style="background-color:silver;" size=11 id="sdam_drain_area" onchange="append_to_data(this.value,this.options[this.selectedIndex].title);"><option value="" selected>Top 10' + statebit + ' Drain Areas below ...</option></select>';
var sdam_surface_area='<select style="background-color:lighgray;" size=11 id="sdam_surface_area" onchange="append_to_data(this.value,this.options[this.selectedIndex].title);"><option value="" selected>Top 10' + statebit + ' Surface Areas below ...</option></select>';
var sdam_normal_storage='<select style="background-color:lightblue;" size=11 id="sdam_normal_storage" onchange="append_to_data(this.value,this.options[this.selectedIndex].title);"><option value="" selected>Top 10' + statebit + ' Normal Storage below ...</option></select>';
var sdam_maximum_storage='<select style="background-color:lightgreen;" size=11 id="sdam_maximum_storage" onchange="append_to_data(this.value,this.options[this.selectedIndex].title);"><option value="" selected>Top 10' + statebit + ' Maximum Storage below ...</option></select>';
var sdam_nid_height='<select style="background-color:cyan;" size=11 id="sdam_nid_height" onchange="append_to_data(this.value,this.options[this.selectedIndex].title);"><option value="" selected>Top 10' + statebit + ' Dam Height below ...</option></select>';
if (last_state == "") {
kcnt=0;
icnt=0;
atldelim='';
while (kcnt < 10 && icnt < dam_nid_height.length) {
xthings=appendto(dam_nid_height,icnt).split(';');
if ((xthings[2].trim() + " ").substring(0,1) >= "A") {
atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~Height%20' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~Surface%20Area%20' + xthings[eval(-6 + xthings.length)] + '~,~Drainage%20Area%20' + xthings[eval(-5 + xthings.length)] + '~]');
sdam_nid_height=sdam_nid_height.replace('</select>','<option title="' + atlbit + '" value=",[' + xthings[4] + ',~' + encodeURIComponent((xthings[2] + ', ' + xthings[3] + ', ' + givencodereturnname(xthings[1])).replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ')).replace(/\'/g,'`').replace(/gfdgfdgf\//g,'-').replace(/\&\;/g,'and').replace(/ \& /g,' and ').replace(/bfghgfdhg\#/g,'Number').replace(/\"/g,'`') + '~]">' + (xthings[2] + ', ' + xthings[3] + ', ').replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ') + givencodereturnname(xthings[1]) + ' ... ' + eval(bignumber - eval(xthings[0])) + '</option></select>');
kcnt++;
if (atlbit != '') atldelim=',';
}
icnt++;
}
kcnt=0;
icnt=0;
atldelim='';
while (kcnt < 10 && icnt < dam_maximum_storage.length) {
xthings=appendto(dam_maximum_storage,icnt).split(';');
if ((xthings[2].trim() + " ").substring(0,1) >= "A") {
//atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~' + xthings[eval(-6 + xthings.length)] + '~,~' + xthings[eval(-5 + xthings.length)] + '~]');
atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~Height%20' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~Surface%20Area%20' + xthings[eval(-6 + xthings.length)] + '~,~Drainage%20Area%20' + xthings[eval(-5 + xthings.length)] + '~]');
sdam_maximum_storage=sdam_maximum_storage.replace('</select>','<option title="' + atlbit + '" value=",[' + xthings[4] + ',~' + encodeURIComponent((xthings[2] + ', ' + xthings[3] + ', ' + givencodereturnname(xthings[1])).replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ')).replace(/\'/g,'`').replace(/gfdgfdgf\//g,'-').replace(/\&\;/g,'and').replace(/ \& /g,' and ').replace(/bfghgfdhg\#/g,'Number').replace(/\"/g,'`') + '~]">' + (xthings[2] + ', ' + xthings[3] + ', ').replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ') + givencodereturnname(xthings[1]) + ' ... ' + eval(bignumber - eval(xthings[0])) + '</option></select>');
kcnt++;
if (atlbit != '') atldelim=',';
}
icnt++;
}
kcnt=0;
icnt=0;
atldelim='';
while (kcnt < 10 && icnt < dam_normal_storage.length) {
xthings=appendto(dam_normal_storage,icnt).split(';');
if ((xthings[2].trim() + " ").substring(0,1) >= "A") {
//atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~' + xthings[eval(-6 + xthings.length)] + '~,~' + xthings[eval(-5 + xthings.length)] + '~]');
atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~Height%20' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~Surface%20Area%20' + xthings[eval(-6 + xthings.length)] + '~,~Drainage%20Area%20' + xthings[eval(-5 + xthings.length)] + '~]');
sdam_normal_storage=sdam_normal_storage.replace('</select>','<option title="' + atlbit + '" value=",[' + xthings[4] + ',~' + encodeURIComponent((xthings[2] + ', ' + xthings[3] + ', ' + givencodereturnname(xthings[1])).replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ')).replace(/\'/g,'`').replace(/gfdgfdgf\//g,'-').replace(/\&\;/g,'and').replace(/ \& /g,' and ').replace(/bfghgfdhg\#/g,'Number').replace(/\"/g,'`') + '~]">' + (xthings[2] + ', ' + xthings[3] + ', ').replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ') + givencodereturnname(xthings[1]) + ' ... ' + eval(bignumber - eval(xthings[0])) + '</option></select>');
kcnt++;
if (atlbit != '') atldelim=',';
}
icnt++;
}
kcnt=0;
icnt=0;
atldelim='';
while (kcnt < 10 && icnt < dam_drain_area.length) {
xthings=appendto(dam_drain_area,icnt).split(';');
if ((xthings[2].trim() + " ").substring(0,1) >= "A") {
//atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~' + xthings[eval(-6 + xthings.length)] + '~,~' + xthings[eval(-5 + xthings.length)] + '~]');
atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~Height%20' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~Surface%20Area%20' + xthings[eval(-6 + xthings.length)] + '~,~Drainage%20Area%20' + xthings[eval(-5 + xthings.length)] + '~]');
sdam_drain_area=sdam_drain_area.replace('</select>','<option title="' + atlbit + '" value=",[' + xthings[4] + ',~' + encodeURIComponent((xthings[2] + ', ' + xthings[3] + ', ' + givencodereturnname(xthings[1])).replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ')).replace(/\'/g,'`').replace(/gfdgfdgf\//g,'-').replace(/\&\;/g,'and').replace(/ \& /g,' and ').replace(/bfghgfdhg\#/g,'Number').replace(/\"/g,'`') + '~]">' + (xthings[2] + ', ' + xthings[3] + ', ').replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ') + givencodereturnname(xthings[1]) + ' ... ' + eval(bignumber - eval(xthings[0])) + '</option></select>');
kcnt++;
if (atlbit != '') atldelim=',';
}
icnt++;
}
kcnt=0;
icnt=0;
atldelim='';
while (kcnt < 10 && icnt < dam_surface_area.length) {
xthings=appendto(dam_surface_area,icnt).split(';');
if ((xthings[2].trim() + " ").substring(0,1) >= "A") {
//atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~' + xthings[eval(-6 + xthings.length)] + '~,~' + xthings[eval(-5 + xthings.length)] + '~]');
atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~Height%20' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~Surface%20Area%20' + xthings[eval(-6 + xthings.length)] + '~,~Drainage%20Area%20' + xthings[eval(-5 + xthings.length)] + '~]');
sdam_surface_area=sdam_surface_area.replace('</select>','<option title="' + atlbit + '" value=",[' + xthings[4] + ',~' + encodeURIComponent((xthings[2] + ', ' + xthings[3] + ', ' + givencodereturnname(xthings[1])).replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ')).replace(/\'/g,'`').replace(/gfdgfdgf\//g,'-').replace(/\&\;/g,'and').replace(/ \& /g,' and ').replace(/bfghgfdhg\#/g,'Number').replace(/\"/g,'`') + '~]">' + (xthings[2] + ', ' + xthings[3] + ', ').replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ') + givencodereturnname(xthings[1]) + ' ... ' + eval(bignumber - eval(xthings[0])) + '</option></select>');
kcnt++;
if (atlbit != '') atldelim=',';
}
icnt++;
}
} else {
kcnt=0;
icnt=0;
atldelim='';
while (kcnt < 10 && icnt < dam_nid_height.length) {
xthings=appendto(dam_nid_height,icnt).split(';');
if (xthings[1] == last_state && (xthings[2].trim() + " ").substring(0,1) >= "A") {
//atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~' + xthings[eval(-6 + xthings.length)] + '~,~' + xthings[eval(-5 + xthings.length)] + '~]');
atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~Height%20' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~Surface%20Area%20' + xthings[eval(-6 + xthings.length)] + '~,~Drainage%20Area%20' + xthings[eval(-5 + xthings.length)] + '~]');
sdam_nid_height=sdam_nid_height.replace('</select>','<option title="' + atlbit + '" value=",[' + xthings[4] + ',~' + encodeURIComponent((xthings[2] + ', ' + xthings[3] + ', ' + givencodereturnname(xthings[1])).replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ')).replace(/\'/g,'`').replace(/gfdgfdgf\//g,'-').replace(/\&\;/g,'and').replace(/ \& /g,' and ').replace(/bfghgfdhg\#/g,'Number').replace(/\"/g,'`') + '~]">' + (xthings[2] + ', ' + xthings[3] + ', ').replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ') + givencodereturnname(xthings[1]) + ' ... ' + eval(bignumber - eval(xthings[0])) + '</option></select>');
kcnt++;
if (atlbit != '') atldelim=',';
}
icnt++;
}
kcnt=0;
icnt=0;
atldelim='';
while (kcnt < 10 && icnt < dam_maximum_storage.length) {
xthings=appendto(dam_maximum_storage,icnt).split(';');
if (xthings[1] == last_state && (xthings[2].trim() + " ").substring(0,1) >= "A") {
//atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~' + xthings[eval(-6 + xthings.length)] + '~,~' + xthings[eval(-5 + xthings.length)] + '~]');
atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~Height%20' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~Surface%20Area%20' + xthings[eval(-6 + xthings.length)] + '~,~Drainage%20Area%20' + xthings[eval(-5 + xthings.length)] + '~]');
sdam_maximum_storage=sdam_maximum_storage.replace('</select>','<option title="' + atlbit + '" value=",[' + xthings[4] + ',~' + encodeURIComponent((xthings[2] + ', ' + xthings[3] + ', ' + givencodereturnname(xthings[1])).replace(' ','').replace('\t', ' ').replace(', , ',', ')).replace(/\'/g,'`').replace(/gfdgfdgf\//g,'-').replace(/\&\;/g,'and').replace(/ \& /g,' and ').replace(/bfghgfdhg\#/g,'Number').replace(/\"/g,'`') + '~]">' + (xthings[2] + ', ' + xthings[3] + ', ').replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ') + givencodereturnname(xthings[1]) + ' ... ' + eval(bignumber - eval(xthings[0])) + '</option></select>');
kcnt++;
if (atlbit != '') atldelim=',';
}
icnt++;
}
kcnt=0;
icnt=0;
atldelim='';
while (kcnt < 10 && icnt < dam_normal_storage.length) {
xthings=appendto(dam_normal_storage,icnt).split(';');
if (xthings[1] == last_state && (xthings[2].trim() + " ").substring(0,1) >= "A") {
//atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~' + xthings[eval(-6 + xthings.length)] + '~,~' + xthings[eval(-5 + xthings.length)] + '~]');
atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~Height%20' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~Surface%20Area%20' + xthings[eval(-6 + xthings.length)] + '~,~Drainage%20Area%20' + xthings[eval(-5 + xthings.length)] + '~]');
sdam_normal_storage=sdam_normal_storage.replace('</select>','<option title="' + atlbit + '" value=",[' + xthings[4] + ',~' + encodeURIComponent((xthings[2] + ', ' + xthings[3] + ', ' + givencodereturnname(xthings[1])).replace(' ','').replace('\t', ' ').replace(', , ',', ')).replace(/\'/g,'`').replace(/gfdgfdgf\//g,'-').replace(/\&\;/g,'and').replace(/ \& /g,' and ').replace(/bfghgfdhg\#/g,'Number').replace(/\"/g,'`') + '~]">' + (xthings[2] + ', ' + xthings[3] + ', ').replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ') + givencodereturnname(xthings[1]) + ' ... ' + eval(bignumber - eval(xthings[0])) + '</option></select>');
kcnt++;
if (atlbit != '') atldelim=',';
}
icnt++;
}
kcnt=0;
icnt=0;
atldelim='';
while (kcnt < 10 && icnt < dam_drain_area.length) {
xthings=appendto(dam_drain_area,icnt).split(';');
if (xthings[1] == last_state && (xthings[2].trim() + " ").substring(0,1) >= "A") {
//atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~' + xthings[eval(-6 + xthings.length)] + '~,~' + xthings[eval(-5 + xthings.length)] + '~]');
atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~Height%20' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~Surface%20Area%20' + xthings[eval(-6 + xthings.length)] + '~,~Drainage%20Area%20' + xthings[eval(-5 + xthings.length)] + '~]');
sdam_drain_area=sdam_drain_area.replace('</select>','<option title="' + atlbit + '" value=",[' + xthings[4] + ',~' + encodeURIComponent((xthings[2] + ', ' + xthings[3] + ', ' + givencodereturnname(xthings[1])).replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ')).replace(/\'/g,'`').replace(/gfdgfdgf\//g,'-').replace(/\&\;/g,'and').replace(/ \& /g,' and ').replace(/bfghgfdhg\#/g,'Number').replace(/\"/g,'`') + '~]">' + (xthings[2] + ', ' + xthings[3] + ', ').replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ') + givencodereturnname(xthings[1]) + ' ... ' + eval(bignumber - eval(xthings[0])) + '</option></select>');
kcnt++;
if (atlbit != '') atldelim=',';
}
icnt++;
}
kcnt=0;
icnt=0;
atldelim='';
while (kcnt < 10 && icnt < dam_surface_area.length) {
xthings=appendto(dam_surface_area,icnt).split(';');
if (xthings[1] == last_state && (xthings[2].trim() + " ").substring(0,1) >= "A") {
//atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~' + xthings[eval(-6 + xthings.length)] + '~,~' + xthings[eval(-5 + xthings.length)] + '~]');
atlbit=realt(atldelim + '[newDate(' + xthings[eval(-2 + xthings.length)] + ',11,31),' + xthings[eval(-7 + xthings.length)] + ',~' + encodeURIComponent(xthings[2]) + ',' + encodeURIComponent(xthings[3]) + ',' + encodeURIComponent(givencodereturnname(xthings[eval(-3 + xthings.length)])) + '~,~Height%20' + xthings[eval(-9 + xthings.length)] + '~,' + xthings[eval(-8 + xthings.length)] + ',~Surface%20Area%20' + xthings[eval(-6 + xthings.length)] + '~,~Drainage%20Area%20' + xthings[eval(-5 + xthings.length)] + '~]');
sdam_surface_area=sdam_surface_area.replace('</select>','<option title="' + atlbit + '" value=",[' + xthings[4] + ',~' + encodeURIComponent((xthings[2] + ', ' + xthings[3] + ', ' + givencodereturnname(xthings[1])).replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ')).replace(/\'/g,'`').replace(/gfdgfdgf\//g,'-').replace(/\&\;/g,'and').replace(/ \& /g,' and ').replace(/bfghgfdhg\#/g,'Number').replace(/\"/g,'`') + '~]">' + (xthings[2] + ', ' + xthings[3] + ', ').replace(' ','').replace('\t', ' ').replace(', , ',', ').replace(', , ',', ') + givencodereturnname(xthings[1]) + ' ... ' + eval(bignumber - eval(xthings[0])) + '</option></select>');
kcnt++;
if (atlbit != '') atldelim=',';
}
icnt++;
}
}
if (youtubeinit) {
youtubeinit=false;
document.getElementById('youtubed').style.display='block';
document.getElementById('youtubes').style.display='block';
}
document.getElementById('lists').innerHTML=sdam_nid_height + '<br>' + sdam_maximum_storage + '<br>' + sdam_normal_storage + '<br>' + sdam_surface_area + '<br>' + sdam_drain_area + '<br>';
}
function cstate(tv) {
//alert(tv);
var atl, datah='', things, vsihm=0, toihm=-1, show=true;
last_state=tv;
if (tv != '') {
oktodo=true;
if (document.getElementById('ihm').value != '') toihm=eval(document.getElementById('ihm').value);
for (var kk=0; kk<dam_name_etc.length; kk++) {
if (dam_name_etc[kk].split(';')[0] == tv) {
if (toihm < 0 || vsihm < toihm) {
things=dam_name_etc[kk].split(';');
if (!ismap && show) alert(dam_name_etc[kk]);
show=false;
//atl=realt('[newDate(' + things[eval(-2 + things.length)] + ',11,31),' + things[eval(-7 + things.length)] + ',~' + encodeURIComponent(things[1]) + ',' + encodeURIComponent(things[2]) + ',' + encodeURIComponent(givencodereturnname(things[0])) + '~,~' + things[eval(-9 + things.length)] + '~,' + things[eval(-8 + things.length)] + ',~' + things[eval(-6 + things.length)] + '~,~' + things[eval(-5 + things.length)] + '~]');
atl=realt('[newDate(' + things[eval(-2 + things.length)] + ',11,31),' + things[eval(-7 + things.length)] + ',~' + encodeURIComponent(things[1]) + ',' + encodeURIComponent(things[2]) + ',' + encodeURIComponent(givencodereturnname(things[0])) + '~,~Height%20' + things[eval(-9 + things.length)] + '~,' + things[eval(-8 + things.length)] + ',~Surface%20Area%20' + things[eval(-6 + things.length)] + '~,~Drainage%20Area%20' + things[eval(-5 + things.length)] + '~]');
//18 is drain_area 17 is surface_area 16 is normal storage 15 is maximum storage 14 is nid height
//dam_name_etc.push((dam_data_arr[eval(twenty + ij)] + ';' + dam_data_arr[eval(1 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(2 + ij)].replace(/;/g,' ') + ';' + dam_data_arr[eval(5 + ij)] + ',' + dam_data_arr[eval(4 + ij)] + ';' + dam_data_arr[eval(7 + ij)] + ';' + dam_data_arr[eval(8 + ij)] + ';' + dam_data_arr[eval(6 + ij)] + ';' + dam_data_arr[eval(14 + ij)] + ';' + dam_data_arr[eval(15 + ij)] + ';' + dam_data_arr[eval(16 + ij)] + ';' + dam_data_arr[eval(17 + ij)] + ';' + dam_data_arr[eval(18 + ij)] + ';' + dam_data_arr[eval(11 + ij)] + ';' + dam_data_arr[eval(12 + ij)] + ';' + dam_data_arr[eval(13 + ij)]));
if (things[3].indexOf(",") != -1 && things[3].indexOf(".") != -1 && things[3].indexOf("-") != -1) {
datah+=datahis(datah,atl,",[" + (things[3] + ",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",") + "~" + encodeURIComponent(dam_name_etc[kk].substring(3).replace(";" + things[3],"").replace(/;/g,",").replace(/\.00000000000/g,'.0')) + "~]");
}
}
vsihm++;
}
}
//alert(datah);
document.getElementById('prefix').innerHTML=givencodereturnname(tv) + " ";
document.getElementById('title').value=givencodereturnname(tv) + " Dams";
document.getElementById('data').value=datah;
//alert(document.getElementById('data').value.substring(0,234));
document.getElementById('smapif').click();
} else {
document.getElementById('prefix').innerHTML="";
}
populate_div_lists();
}
function repbarv() {
if (pbarv == 0 && eval(more_time) > 0) {
document.getElementById('us_state').innerHTML=document.getElementById('us_state').innerHTML.replace(" two ", " " + eval(eval(120 + eval(more_time) * 60) / 60) + " ");
document.getElementById('pbar').max=Math.floor(eval(120 + eval(more_time) * 60));
}
pbarv++;
if (pbarv < eval(document.getElementById('pbar').max)) {
setTimeout(repbarv,1000);
} else {
document.getElementById('more').style.display='block';
}
document.getElementById('pbar').value=pbarv;
}
function clearit() {
if (oktodo) document.getElementById('data').value='';
oktodo=false;
}
function great_circle_distance(talis, gnolis, latis, longis) {
var ourdist=0.0;
var rgnol=eval((gnolis) * Math.PI / 180.0);
var rtal=eval((talis) * Math.PI / 180.0);
var rlong=eval((longis) * Math.PI / 180.0);
var rlat=eval((latis) * Math.PI / 180.0);
var deltalong = Math.abs(eval(((gnolis)-(longis)) * Math.PI / 180.0));
var acof = eval(Math.sin(rtal) * Math.sin(rlat)) + (Math.cos(rtal) * Math.cos(rlat) * Math.cos(deltalong)); // via http://en.wikipedia.org/wiki/Great-circle_distance ... thanks
ourdist = eval(Math.round((Math.acos(acof) * 6371000.0) + 0.00001) * 100) / 100;
return eval(ourdist / 1000.0);
}
function datahis(prevdatah, altplus, defplus) {
if (ismap) {
return defplus;
} else if (prevdatah == '') {
return altplus;
} else {
return ',' + altplus;
}
}
function filterit(viakm,vialat,vialong) {
var atl='', atldelim='', thisval, rangeok=true, dist, kk, things, datah='', str, str2, patt=null, sc=document.getElementById('us_state').value;
if (document.getElementById('dnr').value != '' || (eval(viakm) > 0.0 && (eval(vialat) != 0.0 || eval(vialong) != 0.0)) || (document.getElementById('fsel').value != '' && (eval(document.getElementById('minv').value) != 0.0 || eval(document.getElementById('maxv').value) != 0.0))) {
document.getElementById('data').value='';
if (document.getElementById('dnr').value != '') patt = new RegExp(document.getElementById('dnr').value.toLowerCase());
for (kk=0; kk<dam_name_etc.length; kk++) {
things=dam_name_etc[kk].split(';');
//atl=realt('[newDate(' + things[eval(-10 + things.length)] + ',11,31),' + things[eval(-7 + things.length)] + ',~' + encodeURIComponent(things[1]) + ',' + encodeURIComponent(things[2]) + ',' + encodeURIComponent(givencodereturnname(things[0])) + '~,~Height%20' + things[eval(-9 + things.length)] + '~,' + things[eval(-8 + things.length)] + ',~Surface%20Area%20' + things[eval(-6 + things.length)] + '~,~Drainage%20Area%20' + things[eval(-5 + things.length)] + '~]');
atl=realt('[newDate(' + things[eval(-2 + things.length)] + ',11,31),' + things[eval(-7 + things.length)] + ',~' + encodeURIComponent(things[1]) + ',' + encodeURIComponent(things[2]) + ',' + encodeURIComponent(givencodereturnname(things[0])) + '~,~Height%20' + things[eval(-9 + things.length)] + '~,' + things[eval(-8 + things.length)] + ',~Surface%20Area%20' + things[eval(-6 + things.length)] + '~,~Drainage%20Area%20' + things[eval(-5 + things.length)] + '~]');
if (things.length > 3 && (sc == '' || things[0] == sc)) {
if (document.getElementById('fsel').value != '' && (eval(document.getElementById('minv').value) != 0.0 || eval(document.getElementById('maxv').value) != 0.0)) {
rangeok=false;
if (document.getElementById('fsel').value.toLowerCase().indexOf('height') != -1) {
//alert("starting at -1 to -8 " + things[eval(-1 + things.length)] + " " + things[eval(-2 + things.length)] + " " + things[eval(-3 + things.length)] + " " + things[eval(-4 + things.length)] + " " + things[eval(-5 + things.length)] + " " + things[eval(-6 + things.length)] + " " + things[eval(-7 + things.length)] + " " + things[eval(-8 + things.length)]);
thisval=(things[eval(-9 + things.length)]);
if (thisval.indexOf('.') != -1) {
if (eval(thisval) >= eval(document.getElementById('minv').value) && eval(thisval) <= eval(document.getElementById('maxv').value)) {
rangeok=true;
}
}
} else if (document.getElementById('fsel').value.toLowerCase().indexOf('surface') != -1) {
thisval=(things[eval(-6 + things.length)]);
if (thisval.indexOf('.') != -1) {
if (eval(thisval) >= eval(document.getElementById('minv').value) && eval(thisval) <= eval(document.getElementById('maxv').value)) {
rangeok=true;
}
}
} else if (document.getElementById('fsel').value.toLowerCase().indexOf('maximum') != -1) {
thisval=(things[eval(-8 + things.length)]);
if (thisval.indexOf('.') != -1) {
if (eval(thisval) >= eval(document.getElementById('minv').value) && eval(thisval) <= eval(document.getElementById('maxv').value)) {
rangeok=true;
}
}
} else if (document.getElementById('fsel').value.toLowerCase().indexOf('normal') != -1) {
thisval=(things[eval(-7 + things.length)]);
if (thisval.indexOf('.') != -1) {
if (eval(thisval) >= eval(document.getElementById('minv').value) && eval(thisval) <= eval(document.getElementById('maxv').value)) {
rangeok=true;
}
}
} else if (document.getElementById('fsel').value.toLowerCase().indexOf('drain') != -1) {
thisval=(things[eval(-5 + things.length)]);
if (thisval.indexOf('.') != -1) {
if (eval(thisval) >= eval(document.getElementById('minv').value) && eval(thisval) <= eval(document.getElementById('maxv').value)) {
rangeok=true;
}
}
}
if (rangeok && patt == null && eval(viakm) == 0.0) datah+=datahis(datah,atl,",[" + (things[3] + ",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",") + "~" + encodeURIComponent(dam_name_etc[kk].substring(3).replace(";" + things[3],"").replace(/;/g,",").replace(/\.00000000000/g,'.0')) + "~]");
}
str=things[1].toLowerCase();
str2=things[2].toLowerCase();
//if (kk < 10) alert(things[1]);
if (str.trim() != '' || patt == null || eval(viakm) > 0.0) {
if (patt == null || eval(viakm) > 0.0) {
//alert(eval(vialat) + " then " + eval(vialong) + " vs " + eval(things[3].split(',')[0]) + " and " + eval(things[3].split(',')[1]) + " next is " + dam_name_etc[eval(1 + kk)]);
try {
dist=great_circle_distance(eval(vialat), eval(vialong), eval(things[3].split(',')[0]), eval(things[3].split(',')[1]));
} catch(exc) {
if (1 == 5) alert('oops ' + eval(vialat) + " then " + eval(vialong) + " vs " + eval(things[3].split(',')[0]) + " and " + eval(things[3].split(',')[1]));
}
if (('' + dist + ' ').substring(0,1) >= '0' && ('' + dist + ' ').substring(0,1) <= '9') {
if (eval(dist) <= eval(viakm)) {
if (patt == null) {
if (rangeok) datah+=datahis(datah,atl,",[" + (things[3] + ",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",") + "~" + encodeURIComponent(dam_name_etc[kk].substring(3).replace(";" + things[3],"").replace(/;/g,",").replace(/\.00000000000/g,'.0')) + "~]");
//alert(things[3] + " then " + things[4] + " vs " + datah);
} else {
if (rangeok && patt.test(str) || (things[2].trim() != '' && patt.test(things[2].toLowerCase())) || patt.test(str + ' ' + str2)) datah+=datahis(datah,atl,",[" + (things[3] + ",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",") + "~" + encodeURIComponent(dam_name_etc[kk].substring(3).replace(";" + things[3],"").replace(/;/g,",").replace(/\.00000000000/g,'.0')) + "~]");
}
}
}
} else {
if (rangeok && patt.test(str) || (things[2].trim() != '' && patt.test(things[2].toLowerCase())) || patt.test(str + ' ' + str2)) datah+=datahis(datah,atl,",[" + (things[3] + ",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",") + "~" + encodeURIComponent(dam_name_etc[kk].substring(3).replace(";" + things[3],"").replace(/;/g,",").replace(/\.00000000000/g,'.0')) + "~]");
} //else if (patt.test(str + ' ' + str2)) {
// datah+=",[" + (things[3] + ",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",") + "~" + encodeURIComponent(dam_name_etc[kk].substring(3).replace(";" + things[3],"").replace(/;/g,",").replace(/\.00000000000/g,'.0')) + "~]";
//} //else if (things[2].trim() != '' && patt.test(things[2].toLowerCase())) {
// datah+=",[" + (things[3] + ",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",") + "~" + encodeURIComponent(dam_name_etc[kk].substring(3).replace(";" + things[3],"").replace(/;/g,",").replace(/\.00000000000/g,'.0')) + "~]"; }
//}
} else {
str=things[2];
if (str.trim() != '') {
if (patt.test(str)) {
if (rangeok) datah+=datahis(datah,atl,",[" + (things[3] + ",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",").replace(/0\,/g,",") + "~" + encodeURIComponent(dam_name_etc[kk].substring(3).replace(";" + things[3],"").replace(/;/g,",").replace(/\.00000000000/g,'.0')) + "~]");
}
}
}
}
}
if (sc != '') {
document.getElementById('title').value=givencodereturnname(sc) + " " + document.getElementById('dnr').value + " Dams";
} else {
document.getElementById('title').value=document.getElementById('dnr').value + " Dams";
}
document.getElementById('dnr').value='';
document.getElementById('data').value=datah;
document.getElementById('smapif').click();
}
}
function formaction() {
if (ismap) {
document.getElementById('myform').action='http://www.rjmprogramming.com.au/PHP/Map/map.php';
} else {
document.getElementById('myform').action='http://www.rjmprogramming.com.au/PHP/AnnotatedTimelineChart/annotatedtimeline_chart.php';
}
}
</script>
</head>
<body style="background-color:yellow;" onload="document.getElementById('ihm').style.display=debug_block; repbarv(); document.getElementById('myiframe').src=document.URL.split('dams_usa.')[0] + 'dams00x020.html'; examine_dam_data();">
<table border=20 cellpadding=10 cellspacing=10>
<tbody>
<tr><td style='vertical-align:top;'>
<h1>Dams in United States of America</h1>
<h3>RJM Programming - February, 2017 <progress id='pbar' value="0" max="120"></progress> <select style='display:none;' id='more' onchange=" location.href=(document.URL.split('#')[0].replace('more=','moxre=') + '&more=' + this.value).replace('.html&','.html?').replace('.htm&','.htm?'); "><option value=0>Optionally add minutes below to (default 2 minute) loading time (for more data) ...</option><option value=1>1</option><option value=2>2</option><option value=3>3</option><option value=4>4</option><option value=5>5</option><option value=6>6</option><option value=7>7</option><option value=8>8</option><option value=9>9</option></select></h3>
<h3>Thanks to: DATA.GOV <a target=_blank title='' href='https://catalog.data.gov/dataset?metadata_type=geospatial&page=13'>Major Dams of the United States - Direct Download</a><br>
Originator: National Atlas of the United States<br>
Publication_Date: 200603<br>
Title: Major Dams of the United States</h3>
<form id="myform" onsubmit="document.getElementById('mapif').style.display='block'; setTimeout(clearit,2000); return true;" style="display:none;" target="mapif" action="http://www.rjmprogramming.com.au/PHP/Map/map.php" method="POST">
<input type="hidden" value="Dams" id="title" name="title"></input>
<input type="hidden" value="['Lat'," name="label"></input>
<input type="hidden" value="'Lon','Name']" name="value"></input>
<input type='hidden' name='wellinever' id='wellinever' value=''></input>
<input type="hidden" value="" id="data" name="data"></input>
<input type="hidden" value="y" name="onclick"></input>
<input type="hidden" name="desc1" value="Normal Storage"></input>
<input type="hidden" name="title1" value="Dam Name"></input>
<input type="hidden" name="text1" value="Dam Height"></input>
<input type="hidden" name="desc2" value="Maximum Storage"></input>
<input type="hidden" name="title2" value="Surface Area"></input>
<input type="hidden" name="text2" value="Drainage Area"></input>
<input id="smapif" type="submit" value="Show" style="display:none;"></input>
</form>
<iframe style='display:none;width:600px;height:900px;' id='youtubeif' name='youtubeif' src='about:blank'></iframe>
<iframe style='display:none;width:600px;height:500px;' id='mapif' name='mapif' src='about:blank'></iframe>
</td><td style='vertical-align:top;'>
<input style='display:none;' id='ihm' value='-1' type='number' step=1></input><!--br-->
<select size=53 id='us_state' onchange='cstate(this.value);'><option value='' selected>Please select US state of interest regarding its dams ... in about two minutes</option></select>
</td><td style='vertical-align:top;'>
<div id='filters' style='display:none;'><span id='prefix'></span>Dam Name (<a target=_blank title='Javascript regex' href='http://www.w3schools.com/jsref/jsref_obj_regexp.asp'>RegEx</a>): <input style='width:120px;' id='dnr' type='text' value=''></input></br>Kilometers From Dams Selected Below: <input style='width:60px;' id='kmf' value='0' type='number' step=1></input></br> ... or from Latitude: <input style='width:80px;' id='blat' value='0.0000000' type='number' step='0.0000001'></input> Longitude: <input style='width:80px;' id='blong' value='0.0000000' type='number' step='0.0000001'></input><br><select id='fsel'><option value=''>No</option><option value='Dam Height' selected>Dam Height</option><option value='Maximum Storage'>Maximum Storage</option><option value='Normal Storage'>Normal Storage</option><option value='Surface Area'>Surface Area</option><option value='Drainage Area'>Drainage Area</option></select> value range Low: <input id='minv' style='width:120px;' type=number value=0 step=1></input> High: <input id='maxv' style='width:120px;' type=number value=0 step=1></input><br><br><input onclick="filterit(document.getElementById('kmf').value,document.getElementById('blat').value,document.getElementById('blong').value);" type=button value=Display></input><br><br></div>
<div id='youtubed' style='display:none;'><hr>Map Chart (versus Annotated Timeline Chart): <input onchange="document.getElementById('data').value=''; ismap=this.checked; formaction();" type='checkbox' checked></input><br><span id='youtubes' style='display:none;'>YouTube Search Goes Here (via clicks below)</span><a onclick="document.getElementById('youtubeif').style.display='block'; document.getElementById('youtubeif').src=this.href; " target='youtubeif' id='youtubea' style='display:none;' href='#youtubeif'></a><hr></div>
<div id='lists'></div>
</td></tr>
</tbody>
</table>
<iframe style='display:none;' id='myiframe' href='about:blank'></iframe>
</body>
</html>