0.0) { if ($minval == 0.0 || $minval > $outs) $minval=$outs; if ($maxval == 0.0 || $maxval < $outs) $maxval=$outs; } if ($xrange == "") { if (isset($_GET['min']) && isset($_GET['max'])) { $xrange=" (" . $_GET['min'] . " <= " . $reportmode . " <= " . $_GET['max'] . ")"; } else if (isset($_GET['min'])) { $xrange=" (" . $_GET['min'] . " <= " . $reportmode . ")"; } else if (isset($_GET['max'])) { $xrange=" (" . $reportmode . " <= " . $_GET['max'] . ")"; } } if (isset($_GET['min']) && isset($_GET['max'])) { if ($thisyear != $oneyear) { //$firstyear <= 0) { if (str_replace("," . $thisc . ",","","," . $okvaluelist . ",") != "," . $okvaluelist . ",") { return $outs; } else { $othercnt+=$outs; return "0"; } } if ($outs < $_GET['min'] || $outs > $_GET['max']) { $othercnt+=$outs; return "0"; } else if ($thisyear == $oneyear && $valuelist != "") { $vls=explode(",",$valuelist); if (str_replace("," . $vls[0] . ",","","," . $okvaluelist . ",") == "," . $okvaluelist . ",") { if ($okvaluelist == "") { $okvaluelist=$vls[0]; } else { $prevok=$okvaluelist; $okvaluelist=$vls[0] . "," . $prevok; } } } } else if (isset($_GET['min'])) { if ($thisyear != $oneyear) { //$firstyear <= 0) { if (str_replace("," . $thisc . ",","","," . $okvaluelist . ",") != "," . $okvaluelist . ",") { return $outs; } else { $othercnt+=$outs; return "0"; } } if ($outs < $_GET['min']) { $othercnt+=$outs; return "0"; } else if ($thisyear == $oneyear && $valuelist != "") { $vls=explode(",",$valuelist); if (str_replace("," . $vls[0] . ",","","," . $okvaluelist . ",") == "," . $okvaluelist . ",") { if ($okvaluelist == "") { $okvaluelist=$vls[0]; } else { $prevok=$okvaluelist; $okvaluelist=$vls[0] . "," . $prevok; } } } } else if (isset($_GET['max'])) { if ($thisyear != $oneyear) { //$firstyear <= 0) { if (str_replace("," . $thisc . ",","","," . $okvaluelist . ",") != "," . $okvaluelist . ",") { return $outs; } else { $othercnt+=$outs; // if ($thisc != "China") { // echo ""; // exit; // } return "0"; } } if ($outs > $_GET['max']) { $othercnt+=$outs; return "0"; } else if ($thisyear == $oneyear && $valuelist != "") { $vls=explode(",",$valuelist); if (str_replace("," . $vls[0] . ",","","," . $okvaluelist . ",") == "," . $okvaluelist . ",") { if ($okvaluelist == "") { $okvaluelist=$vls[0]; } else { $prevok=$okvaluelist; $okvaluelist=$vls[0] . "," . $prevok; } } } } return $outs; } function rangeget($basis) { global $reportmode, $diffctrylst, $fyearis; $cookie_name = "Worldbank_" . str_replace(" ","_",str_replace("(","_",str_replace(")","_",str_replace("%","_",str_replace(",","_",$reportmode))))) . "_" . $basis; if (isset($_COOKIE[$cookie_name])) { return $_COOKIE[$cookie_name]; } return 0.0; } function rangeset($basis, $val) { global $reportmode, $startswith, $diffctrylst, $fyearis; if ($startswith == "") { $cookie_name = "Worldbank_" . str_replace(" ","_",str_replace("(","_",str_replace(")","_",str_replace("%","_",str_replace(",","_",$reportmode))))) . "_" . $basis; $cookie_value = $val; setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/PHP/"); // 86400 = 1 day return $val; } return rangeget($basis); } function noe($inn) { $zeroes=""; $neg=""; $zinn=$inn; if (substr($inn,0,1) == '-') { $neg="-"; $zinn=substr($inn,1); } $ninn=explode("E",$zinn); if (sizeof($ninn) == 2) { $qd=explode(".",$ninn[0]); $hm=str_replace("+","",$ninn[1]); if (sizeof($qd) == 1) { for ($ii=1; $ii<=abs($hm); $ii++) { $zeroes.="0"; } if ($hm >= 0) { return $neg . $qd[0] . $zeroes; } else { return $neg . "0." . $zeroes . $qd[0]; } } else { if ($hm >= 0) { for ($ii=1; $ii<=(abs($hm) - strlen($qd[1])); $ii++) { $zeroes.="0"; } return $neg . $qd[0] . $qd[1] . $zeroes; } else { for ($ii=1; $ii<=(abs($hm) - strlen($qd[0])); $ii++) { $zeroes.="0"; } return $neg . "0." . $zeroes . $qd[0] . $qd[1]; } } } return $inn; } function thesmallest($y1, $y2) { if (strpos($y2, "-") !== false) { return min($y1, -$y2); } else if ($y2 != "") { return $y1; //min($y1, $y2); } return $y1; } function thebiggest($y1, $y2) { if (strpos($y2, "-") !== false) { return max($y1, -$y2); } else if ($y2 != "") { return $y1; //max($y1, $y2); } return $y1; } function andto($y1, $y2, $otheridea) { global $xrange, $diffctrylst, $fyearis; if (thebiggest($y1, $y2) != thesmallest($y1, $y2)) { if (strpos($y2, "-") !== false) { return thesmallest($y1, $y2) . " to " . thebiggest($y1, $y2) . $xrange; } else { return $y2 . " and " . $y1 . $xrange; } } return str_replace("%2d","",str_replace("%2D","",str_replace("-","",str_replace($y1 . " and " . $y2,$y2 . " and " . $y1,str_replace($y1 . "%20and%20" . $y2,$y2 . "%20and%20" . $y1,$otheridea))))); } $minval=0.0; $maxval=0.0; $thisc=""; $xrange=""; $lookforis="Population, tot"; $reportmode="Population"; $reportmode2="Population"; $indicator="SP.POP.TOTL"; $cn="Pie Chart"; $idata2=""; $udiff=""; $ddiff=""; $page=1; $valuelist=""; $okvaluelist=""; $firstyear=-1; $oneyear=0; $thisyear=0; $valuedelim=""; $othercnt=0; $pagecontent="', '0.0',$entries[$i]); if ($lookingfor != "") { if (str_replace($lookingfor, '', $entries[$i]) != $entries[$i]) $lookingfor=""; } if ($lookingfor == "" && strpos($entries[$i], $ddelim) !== false) { $pentries=explode($ddelim, $entries[$i]); //if (!file_exists('xxxx.xxxx')) { // file_put_contents('xxxx.xxxx', $pagecontent . "\n\n\n" . $entries[$i] . "\n\n\nddelim=" . $ddelim . "\n\n" . " zero (country?) is " . $zero . " vs " . $pentries[$zero] . " one (decimal) is " . $one . " vs " . $pentries[$one] . " eight (year?) is " . $eight . " vs " . $pentries[$eight]); //} $regexpok=1; if (isset($_GET['regex'])) { $thisc=str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero])))); $regexp="/" . urldecode($_GET['regex']) . "/i"; //echo $regexp . " " . $thisc . " " . preg_match($regexp,$thisc) . " " . preg_match($regexp,urldecode($thisc)); //$regexpok=1; //if ($regexpok != 0) echo " xxxx"; //exit; $regexpok=preg_match($regexp,$thisc); //if (preg_match($regexp,$thisc)) $regexpok=preg_match($regexp,$thisc); } else if (isset($_POST['regex'])) { $thisc=str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero])))); $regexp="/" . urldecode($_POST['regex']) . "/i"; $regexpok=preg_match($regexp,$thisc); //if (preg_match($regexp,$thisc)) $regexpok=preg_match($regexp,$thisc); } if (substr($entries[$i],2,2) == '">') { $subi=4; } $aswell=true; if ($startswith != '') { if (strpos($entries[$i], "<") !== false) { $aswell=false; if (strpos(explode('<', $entries[$i])[0], '>' . strtoupper($startswith)) !== false) { $aswell=true; } } } if ($regexpok != 0 && $aswell && (strpos('*' . explode("<", str_replace('">', '', substr($entries[$i],$subi)))[0], '*' . $startswith) !== false || strpos('*' . $pentries[$zero], '*' . $startswith) !== false)) { if ($idelim == $lookforis) { if (strpos($yearvs, "-") !== false) { $prevc="," . $valuelist . ","; $thisc=retflagflag(str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero]))))); if (strpos($prevc, "," . retflagflag(str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero]))))) . ",") === false) { $prevc=$valuelist; $valuelist=retflagflag(str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero]))))) . $valuedelim . $prevc; $valuedelim=","; //echo $valuelist; } //else { //echo str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero])))) . " vs " . $prevc; //} if (strpos($entries[$i], '') !== false) { $thisyear=explode('', $entries[$i])[1])[0]; } else if ($pentries[$one] == "decimal") { $thisyear=$pentries[6 + $one]; } else { $thisyear=$pentries[$eight]; } if ($firstyear < 0) { $firstyear=$thisyear; $oneyear=$thisyear; } else if ($thisyear != $oneyear) { $firstyear=0; } if ($poplist == "") { for ($jy=$tso; $jy<=$tbo; $jy++) { //if ($poplist != '') { $fyearis=false; } $poplist.=$popdelim . "[~" . $jy . "~]"; } } if (strpos($poplist, "~" . $thisyear . "~") !== false) { if ($regexpok != 0) { if (strpos($entries[$i], '', '0.0',$entries[$i]); } if (strpos($entries[$i], '') === false) { if ($fyearis && strpos("," . trim($diffctrylst) . ",", "," . explode('"', $entries[$i])[0] . ",") === false) { if ($diffctrylst == '') { $diffctrylst=' ' . explode('"', $entries[$i])[0]; } else { $diffctrylst.=',' . explode('"', $entries[$i])[0]; } } $poplist=str_replace("[~" . $thisyear . "~", "[~" . $thisyear . "~," . explode('', $entries[$i])[1])[0], $poplist); } } else { //if (!file_exists('xx5xx.xx5xx')) { file_put_contents('xx5xx.xx5xx', $entries[$i]); } $poplist=str_replace("[~" . $thisyear . "~", "[~" . $thisyear . "~," . our_str_replace("decimal","0",explode($cdelim, $pentries[$one])[0]), $poplist); } } } else { $prevc=$poplist; if ($regexpok != 0) { if (strpos($entries[$i], '', '0.0',$entries[$i]); } if (strpos($entries[$i], '') === false) { if ($fyearis && strpos("," . trim($diffctrylst) . ",", "," . explode('"', $entries[$i])[0] . ",") === false) { if ($diffctrylst == '') { $diffctrylst=' ' . explode('"', $entries[$i])[0]; } else { $diffctrylst.=',' . explode('"', $entries[$i])[0]; } } $poplist=$popdelim . "[~" . $thisyear . "~," . explode('', $entries[$i])[1])[0] . "]" . $prevc; } } else { //if (!file_exists('xx6xx.xx6xx')) { file_put_contents('xx6xx.xx6xx', $entries[$i]); } $poplist=$popdelim . "[~" . $thisyear . "~," . our_str_replace("decimal","0",explode($cdelim, $pentries[$one])[0]) . "]" . $prevc; } } } } else { if ($regexpok != 0) { //echo "2 " . $regexpok . " ... " . $regexp . " " . $thisc . " " . str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero])))); //exit; if (strpos($entries[$i], '') === false) { $enick=str_replace("'Ivoire", "`Ivoire", $entries[$i]); $poplist.=$popdelim . "[~" . explode('>', explode('', $enick)[0])[-1 + sizeof(explode('>', explode('', $enick)[0]))] . '~,' . explode('', $entries[$i])[1])[0] . "]"; } } else { $poplist.=$popdelim . "[~" . retflagflag(str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero]))))) . "~," . our_str_replace("decimal","0",$pentries[$one]) . "]"; } } } } else { if (strpos($yearvs, "-") !== false) { $prevc="," . $valuelist . ","; $thisc=retflagflag(str_replace("%27","",str_replace(".","",str_replace("+","%20",explode('"', explode($cdelim, str_replace('">', '', urlencode($entries[$i])))[$zero])[0])))); $regexpok=1; if (isset($_GET['regex'])) { $thisc=retflagflag(str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero]))))); //new $regexp="/" . urldecode($_GET['regex']) . "/i"; //echo $regexp . " " . $thisc . " " . preg_match($regexp,$thisc) . " " . preg_match($regexp,urldecode($thisc)); //exit; $regexpok=preg_match($regexp,$thisc); //if (preg_match($regexp,$thisc)) $regexpok=preg_match($regexp,$thisc); } else if (isset($_POST['regex'])) { $thisc=retflagflag(str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero]))))); // new $regexp="/" . urldecode($_POST['regex']) . "/i"; $regexpok=preg_match($regexp,$thisc); //if (preg_match($regexp,$thisc)) $regexpok=preg_match($regexp,$thisc); } if (strpos($prevc, "," . retflagflag(str_replace("%27","",str_replace(".","",str_replace("+","%20",explode('"', explode($cdelim, str_replace('">', '', urlencode($entries[$i])))[$zero])[0])))) . ",") === false) { $prevc=$valuelist; $valuelist=retflagflag(str_replace("%27","",str_replace(".","",str_replace("+","%20",explode('"', explode($cdelim, str_replace('">', '', urlencode($entries[$i])))[$zero])[0])))) . $valuedelim . $prevc; $valuedelim=","; //echo $valuelist; } //else { //echo str_replace("%27","",str_replace(".","",str_replace("+","%20",explode('"', explode($cdelim, str_replace('">', '', urlencode($entries[$i])))[$zero])[0]))) . " vs " . $prevc; //} if (strpos($entries[$i], '') !== false) { $thisyear=explode('', $entries[$i])[1])[0]; } else if ($pentries[$one] == "decimal") { $thisyear=$pentries[6 + $one]; } else { $thisyear=$pentries[$eight]; } if ($firstyear < 0) { $firstyear=$thisyear; $oneyear=$thisyear; } else if ($thisyear != $oneyear) { $firstyear=0; } if ($poplist == "") { for ($jy=$tso; $jy<=$tbo; $jy++) { //if ($poplist != '') { $fyearis=false; } $poplist.=$popdelim . "[~" . $jy . "~]"; } } if (strpos($poplist, "~" . $thisyear . "~") !== false) { if ($regexpok != 0) { if (strpos($entries[$i], '', '0.0',$entries[$i]); } if (strpos($entries[$i], '') === false) { if ($fyearis && strpos("," . trim($diffctrylst) . ",", "," . explode('"', $entries[$i])[0] . ",") === false) { if ($diffctrylst == '') { $diffctrylst=' ' . explode('"', $entries[$i])[0]; } else { $diffctrylst.=',' . explode('"', $entries[$i])[0]; } } $poplist=str_replace("[~" . $thisyear . "~", "[~" . $thisyear . "~," . explode('', $entries[$i])[1])[0], $poplist); } } else { //if (!file_exists('xx7xx.xx7xx')) { file_put_contents('xx7xx.xx7xx', $entries[$i]); } $poplist=str_replace("[~" . $thisyear . "~", "[~" . $thisyear . "~," . our_str_replace("decimal","0",explode($cdelim, $pentries[$one])[0]), $poplist); } } } else { $prevc=$poplist; if ($regexpok != 0) { if (strpos($entries[$i], '', '0.0',$entries[$i]); } if (strpos($entries[$i], '') === false) { if ($fyearis && strpos("," . trim($diffctrylst) . ",", "," . explode('"', $entries[$i])[0] . ",") === false) { if ($diffctrylst == '') { $diffctrylst=' ' . explode('"', $entries[$i])[0]; } else { $diffctrylst.=',' . explode('"', $entries[$i])[0]; } } $poplist=$popdelim . "[~" . $thisyear . "~," . explode('', $entries[$i])[1])[0] . "]" . $prevc; } } else { //if (!file_exists('xx8xx.xx8xx')) { file_put_contents('xx8xx.xx8xx', $entries[$i]); } $poplist=$popdelim . "[~" . $thisyear . "~," . our_str_replace("decimal","0",explode($cdelim, $pentries[$one])[0]) . "]" . $prevc; } } } } else { if ($regexpok != 0) { //echo "1 " . $thisc; //exit; //if (!file_exists('xx.xx')) { //file_put_contents('xx.xx', ' ' . $poplist . ' ' . str_replace("%27","",str_replace(".","",str_replace("+","%20",explode('"', explode($cdelim, str_replace('">', '', urlencode($entries[$i])))[$zero])[0])))); //'" . str_replace('&value=&','&value=' . str_replace('%2c','',str_replace('%2C','',str_replace("%09","%20",$valuelist))) . '&',explode("&data=",$url)[0]) . "&data=' + url + '" . $urlextra . "'); //} if (strpos($entries[$i], '') === false) { $enick=str_replace("'Ivoire", "`Ivoire", $entries[$i]); $poplist.=$popdelim . "[~" . explode('>', explode('', $enick)[0])[-1 + sizeof(explode('>', explode('', $enick)[0]))] . '~,' . explode('', $entries[$i])[1])[0] . "]"; } } else { $poplist.=$popdelim . "[~" . retflagflag(str_replace("%27","",str_replace(".","",str_replace("+","%20",explode('"', explode($cdelim, str_replace('">', '', urlencode($entries[$i])))[$zero])[0])))) . "~," . our_str_replace("decimal","0",explode($cdelim, $pentries[$one])[0]) . "]"; } } } } $popdelim=",%20"; } else if (strpos($yearvs, "-") === false) { if ($idelim == $lookforis) { $othercnt+=str_replace("decimal","0",$pentries[$one]); } else { $othercnt+=str_replace("decimal","0",explode($cdelim, $pentries[$one])[0]); } } } } $pagecontent=$origpc; //" 0 && !isset($_GET['justletters']) && !isset($_POST['justletters'])) { $url.=ourfilter($poplist) . $popdelim . "[~Non-" . $startswith . "~," . noe($othercnt) . "]"; } else { $url.=ourfilter($poplist); } if (strpos($yearvs, "-") !== false) $yearvs=""; $page=1; $pagecontent=$origpc; //"', '0.0',$entries[$i]); if ($lookingfor != "") { if (str_replace($lookingfor, '', $entries[$i]) != $entries[$i]) $lookingfor=""; } if ($lookingfor == "" && strpos($entries[$i], $ddelim) !== false) { $pentries=explode($ddelim, $entries[$i]); $regexpok=1; if (isset($_GET['regex'])) { $thisc=str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero])))); $regexp="/" . urldecode($_GET['regex']) . "/i"; //echo $regexp . " " . $thisc . " " . preg_match($regexp,$thisc) . " " . preg_match($regexp,urldecode($thisc)); //$regexpok=1; //if ($regexpok != 0) echo " xxxx"; //exit; $regexpok=preg_match($regexp,$thisc); //if (preg_match($regexp,$thisc)) $regexpok=preg_match($regexp,$thisc); } else if (isset($_POST['regex'])) { $thisc=str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero])))); $regexp="/" . urldecode($_POST['regex']) . "/i"; $regexpok=preg_match($regexp,$thisc); //if (preg_match($regexp,$thisc)) $regexpok=preg_match($regexp,$thisc); } if (substr($entries[$i],2,2) == '">') { $subi=4; } $aswell=true; if ($startswith != '') { if (strpos($entries[$i], "<") !== false) { $aswell=false; if (strpos(explode('<', $entries[$i])[0], '>' . strtoupper($startswith)) !== false) { $aswell=true; } } } if ($regexpok != 0 && $aswell && (strpos('*' . explode("<", str_replace('">', '', substr($entries[$i],$subi)))[0], '*' . $startswith) !== false || strpos('*' . $pentries[$zero], '*' . $startswith) !== false)) { if ($idelim == $lookforis) { if ($regexpok != 0) { if (strpos($entries[$i], '') === false) { $enick=str_replace("'Ivoire", "`Ivoire", $entries[$i]); $poplist.=$popdelim . "[~" . explode('>', explode('', $enick)[0])[-1 + sizeof(explode('>', explode('', $enick)[0]))] . '~,' . explode('', $entries[$i])[1])[0] . "]"; } } else { $poplist.=$popdelim . "[~" . retflagflag(str_replace("%27","",str_replace(".","",str_replace("+","%20",urlencode($pentries[$zero]))))) . "~," . our_str_replace("decimal","0",$pentries[$one]) . "]"; } } } else { if ($regexpok != 0) { if (strpos($entries[$i], '') === false) { $enick=str_replace("'Ivoire", "`Ivoire", $entries[$i]); $poplist.=$popdelim . "[~" . explode('>', explode('', $enick)[0])[-1 + sizeof(explode('>', explode('', $enick)[0]))] . '~,' . explode('', $entries[$i])[1])[0] . "]"; } } else { $poplist.=$popdelim . "[~" . retflagflag(str_replace("%27","",str_replace(".","",str_replace("+","%20",explode('"', explode($cdelim, str_replace('">', '', urlencode($entries[$i])))[$zero])[0])))) . "~," . our_str_replace("decimal","0",explode($cdelim, $pentries[$one])[0]) . "]"; } } } $popdelim=",%20"; } else { if ($idelim == $lookforis) { $othercnt+=str_replace("decimal","0",$pentries[$one]); } else { $othercnt+=str_replace("decimal","0",explode($cdelim, $pentries[$one])[0]); } } } } $pagecontent=$origpc; //""; // exit; $valuelist=$okvaluelist; $poplist=str_replace(",0","",$poplist); $urlextra=str_replace(",0","",$urlextra); $url=str_replace(",0","",$url); } if ($othercnt > 0 && !isset($_GET['justletters']) && !isset($_POST['justletters'])) { $urlextra.=$poplist . $popdelim . "[~Non-" . $startswith . "~," . $othercnt . "]"; $idata2=""; } else if ($poplist != "") { $urlextra.=$poplist; $idata2=""; } echo "World Bank API " . $reportmode . " Data Google Chart " . $cn . " - RJM Programming - February, 2016 var butis='mysubmit'; var repj=\"" . $reportmode . "\"; var repfrom=' action=\"//www.'; var diffcountrylist=\"" . $diffctrylst . "\"; diffcountrylist=lorflags(diffcountrylist); var difffirsttcountrylist=(diffcountrylist.split(',')[0] + '~').trim().replace('~',' '); var repto=' action=\"https://www.'; var url='" . explode("&data=",$url)[1] . "'; var urlextra=\"" . str_replace('"','" + String.fromCharCode(34) + "',$urlextra) . "\"; function lorflags(thiscclist) { var isos=thiscclist.trim().split(','); for (var jsa=0; jsa 750) { document.getElementById('myiframe').style.display='block'; document.getElementById('data').value=decodeURIComponent(url); document.getElementById('mysubmit').click(); } else if (url != '') { document.getElementById('myiframe').style.display='block'; document.body.style.cursor='progress'; document.getElementById('myiframe').src='" . str_replace('&value=&','&value=' . str_replace('%2c','',str_replace('%2C','',str_replace("%09","%20",$valuelist))) . '&',explode("&data=",$url)[0]) . "&data=' + url + '" . $urlextra . "'; } return true; } function shareviasms() { var prefix=document.getElementById('aemail').href.split('body='); if (('' + prefix[0] + 'body=' + encodeURIComponent(document.URL)).length <= 750) { document.getElementById('aemail').href=prefix[0].replace('mailto:','sms:') + 'body=' + encodeURIComponent(document.URL); document.getElementById('aemail').click(); } else { var huhemail=prompt('Please enter email address to send email to', ''); if (huhemail == null) { huhemail=''; } if (huhemail.indexOf('@') != -1) { document.getElementById('tdto').value=huhemail; document.getElementById('tdhuhta').value='' + document.body.innerHTML.replace(' onsubmit=', ' data-onsubmit=').replace(repfrom,repto) + ''; document.getElementById('fsubm').click(); } } } function shareviaemail() { var prefix=document.getElementById('aemail').href.split('body='); if (('' + prefix[0] + 'body=' + encodeURIComponent(document.URL)).length <= 750) { document.getElementById('aemail').href=prefix[0].replace('sms:','mailto:') + 'body=' + encodeURIComponent(document.URL); document.getElementById('aemail').click(); } else { var huhemail=prompt('Please enter email address to send email to', ''); if (huhemail == null) { huhemail=''; } if (huhemail.indexOf('@') != -1) { document.getElementById('tdto').value=huhemail; document.getElementById('tdhuhta').value='' + document.body.innerHTML.replace(' onsubmit=', ' data-onsubmit=').replace(repfrom,repto) + ''; document.getElementById('fsubm').click(); } } }

World Bank API " . $reportmode . " Data Google Chart " . $cn . " 📧 📟

RJM Programming - February, 2016

Thanks to World Bank API

"; ?>