<?php

$lastgo = "";

function server_remote_addr($inst) {
    global $lastgo;
    $rma = $_SERVER['REMOTE_ADDR'];
    $ua = strtolower($_SERVER['HTTP_USER_AGENT']);
    // you can add different browsers with the same way ..
    if(preg_match('/(chromium)[ \/]([\w.]+)/', $ua))
            $rma = '000000'.$rma;
    elseif(preg_match('/(chrome)[ \/]([\w.]+)/', $ua))
            $rma = '00000'.$rma;
    elseif(preg_match('/(safari)[ \/]([\w.]+)/', $ua))
            $rma = '0000'.$rma;
    elseif(preg_match('/(opera)[ \/]([\w.]+)/', $ua))
            $rma = '000'.$rma;
    elseif(preg_match('/(msie)[ \/]([\w.]+)/', $ua))
            $rma = '00'.$rma;
    elseif(preg_match('/(mozilla)[ \/]([\w.]+)/', $ua))
            $rma = '0'.$rma;
    if (isset($_GET['population'])) {
      $file_handle = fopen("TestIntensityChart_" . $rma . ".html", "w");
      fwrite($file_handle, $_SERVER['REQUEST_URI']);
      fclose($file_handle);
      $timesuff = date("Y-m-d-H-i-s");
      while (file_exists("IntensityChart_" . $rma . "_" . $timesuff . ".html")) {
       $timesuff = date("Y-m-d-H-i-s");
      }
      $file_handle = fopen("IntensityChart_" . $timesuff . ".html", "w");
      fwrite($file_handle, '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <script type="text/javascript" src="http://www.rjmprogramming.com.au/gchartgen.js"></script><meta http-equiv="Refresh" content="5;url=' . $_SERVER['REQUEST_URI'] . '"><meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=4, user-scalable=yes" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /><script src="http://code.jquery.com/jquery-1.8.2.min.js"></script><script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script></head><body> <div data-role="page"></div><!-- /page --></body></html>');
      fclose($file_handle);
      if (file_exists("../GeoChart/geo_chart.php")) {
      $file_handle = fopen("../GeoChart/GeoChart_" . $timesuff . ".html", "w");
      fwrite($file_handle, '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <script type="text/javascript" src="http://www.rjmprogramming.com.au/gchartgen.js"></script><meta http-equiv="Refresh" content="5;url=' . $_SERVER['REQUEST_URI'] . '"><meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=4, user-scalable=yes" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /><script src="http://code.jquery.com/jquery-1.8.2.min.js"></script><script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script></head><body> <div data-role="page"></div><!-- /page --></body></html>');
      fclose($file_handle);
      }
      $lastgo = "&nbsp;&nbsp;&nbsp;<a target=_blank title='Last Intensity Map' href='" . $_SERVER['REQUEST_URI'] . "'>Last</a>" . "&nbsp;&nbsp;<a href='mailto:rmetcalfe15@gmail.com?subject=Email Last Intensity Map link to " . $_GET['title'] . " http://www.rjmprogramming.com.au/PHP/IntensityChart/IntensityChart_" . $timesuff . ".html" . "&body=Change Email Address then Email Last Intensity Map link to " . $_GET['title'] . " http://www.rjmprogramming.com.au/PHP/IntensityChart/IntensityChart_" . $timesuff . ".html&cc=&bcc='>Email</a>&nbsp;&nbsp;<a style='display:none;' onclick='var qqq=document.getElementById(" . '"' . "ourw" . '"' . "); qqq.style.display=" . '"' . "block" . '";' . "' title='Width?' href='#'>W?</a>&nbsp;&nbsp;<a style='display:none;' onclick='var qqq=document.getElementById(" . '"' . "ourh" . '"' . "); qqq.style.display=" . '"' . "block" . '";' . "' title='Height?' href='#'>H?</a>&nbsp;&nbsp;<a title='Geo Map?' href='../GeoChart/geo_chart.php?isMobile=y'>-</a>";
      if (isset($_GET['isMobile'])) {
      $lastgo .= '&nbsp;&nbsp;<a title="Another Intensity Map" href="./intensity_chart.php?isMobile=y">&nbsp;Another?</a>' . $lastgo . "\n";
      } else {
      $lastgo .= '&nbsp;&nbsp;<a title="Another Intensity Map" href="./intensity_chart.php">&nbsp;Another?</a>';
      }
    } else if (strlen($inst) > 0 && file_exists("TestIntensityChart_" . $rma . ".url")) {
      $file_handle = fopen("TestIntensityChart_" . $rma . ".url", "r");
      $rma=fgets($file_handle);
      fclose($file_handle);
      $timesuff = date("Y-m-d-H-i-s");
      while (file_exists("IntensityChart_" . $rma . "_" . $timesuff . ".html")) {
       $timesuff = date("Y-m-d-H-i-s");
      }
      $file_handle = fopen("IntensityChart_" . $timesuff . ".html", "w");
      fwrite($file_handle, '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <script type="text/javascript" src="http://www.rjmprogramming.com.au/gchartgen.js"></script><meta http-equiv="Refresh" content="5;url=' . $rma . '"><meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=4, user-scalable=yes" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /><script src="http://code.jquery.com/jquery-1.8.2.min.js"></script><script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script></head><body> <div data-role="page"></div><!-- /page --></body></html>');
      fclose($file_handle);
      if (file_exists("../GeoChart/geo_chart.php")) {
      $file_handle = fopen("../GeoChart/GeoChart_" . $timesuff . ".html", "w");
      fwrite($file_handle, '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <script type="text/javascript" src="http://www.rjmprogramming.com.au/gchartgen.js"></script><meta http-equiv="Refresh" content="5;url=' . $rma . '"><meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=4, user-scalable=yes" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /><script src="http://code.jquery.com/jquery-1.8.2.min.js"></script><script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script></head><body> <div data-role="page"></div><!-- /page --></body></html>');
      fclose($file_handle);
      }
      $rma = "&nbsp;&nbsp;&nbsp;<a target=_blank title='Last Intensity Map' href='" . $rma . "'>Last</a>" . "&nbsp;&nbsp;<a href='mailto:rmetcalfe15@gmail.com?subject=Email Last Intensity Map link to http://www.rjmprogramming.com.au/PHP/IntensityChart/IntensityChart_" . $timesuff . ".html" . "&body=Change Email Address then Email Last Intensity Map link to http://www.rjmprogramming.com.au/PHP/IntensityChart/IntensityChart_" . $timesuff . ".html&cc=&bcc='>Email</a>&nbsp;&nbsp;<a style='display:none;' onclick='var qqq=document.getElementById(" . '"' . "ourw" . '"' . "); qqq.style.display=" . '"' . "block" . '";' . "' title='Width?' href='#'>W?</a>&nbsp;&nbsp;<a style='display:none;' onclick='var qqq=document.getElementById(" . '"' . "ourh" . '"' . "); qqq.style.display=" . '"' . "block" . '";' . "' title='Height?' href='#'>H?</a>";
      if (isset($_GET['isMobile'])) {
      $rma .= '<br><br>&nbsp;&nbsp;<a title="Another Intensity Map" href="./intensity_chart.php?isMobile=y">&nbsp;Another?</a>' . $lastgo . "\n";
      } else {
      $rma .= '<br><br>&nbsp;&nbsp;<a title="Another Intensity Map" href="./intensity_chart.php">&nbsp;Another?</a>';
      }
      $lastgo = $rma;
    }
    return $rma;
}

  function retval($inv) {
    if (strpos($inv, "E-") !== false) return "0";
    return $inv;
  }

    echo '<!dovtype html><html>' . "\n";
    echo '<head> <script type="text/javascript" src="http://www.rjmprogramming.com.au/gchartgen.js"></script>' . "\n";
    echo '<title>Intensity Map - RJM Programming - http://www.rjmprogramming.com.au (Copyright &copy; 2013 rjmprogramming.com.au all rights reserved.)</title>' . "\n";
    echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">' . "\n";
    echo '<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=4, user-scalable=yes" />' . "\n";
    echo '<script type="text/javascript" src="https://www.google.com/jsapi"></script>' . "\n";
    echo '<script type="text/javascript">' . "\n";

      if (isset($_GET['population'])) server_remote_addr("");
      $GETtitle = "My World Population and Area Map";
      $GETcountry = "Country";
      $GETpopulation = "Population (mil)";
      $GETarea = "Area (km2)";      
      $GETdata = ",['CN',1324,9640821],['IN',1133,3287263],['US',304,9629091],['ID',232,1904569],['BR',187,8514877]";
      if (isset($_GET['isMobile']) || strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'mobile') || strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'android')) {
      $GETwidth = "300"; //"305";
      $GETheight = "300"; //"190";
      } else {
      $GETwidth = "300"; //"556";
      $GETheight = "300"; //"347";
      }
      if (isset($_GET['population'])) {
       $GETtitle = $_GET['title'];
       $GETcountry = $_GET['country'];
       $GETpopulation = $_GET['population'];
       $GETarea = $_GET['area'];
       $GETdata = strtoupper($_GET['data']);
       $GETwidth = $_GET['width'];
       $GETheight = $_GET['height'];
      }
      
      echo ' google.load("visualization", "1", {packages:["intensitymap"]}); ' . "\n";
      echo ' google.setOnLoadCallback(drawChart); ' . "\n";
      echo ' function drawChart() { ' . "\n";
      echo ' var data = google.visualization.arrayToDataTable([ ' . "\n";
      echo " ['" . $GETcountry . "','" . $GETpopulation . "','" . $GETarea . "'] \n";
      echo str_replace("~,", "',", str_replace("[~", "['", str_replace(",]", ",0]", str_replace(",]", ",0]", str_replace(",]", ",0]", $GETdata)))));
      echo "        ]);\n";

      echo " var chart = new google.visualization.IntensityMap(document.getElementById('chart_div')); \n";
      echo " chart.draw(data, null); /" . "/ {width: " . $GETwidth . ", height: " . $GETheight . "}); \n } \n";
      
      echo " </script> \n";
      echo ' <!--meta name="viewport" content="width=device-width, initial-scale=0.75"--> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /><script src="http://code.jquery.com/jquery-1.8.2.min.js"></script><script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script></head>' . " \n";
      //echo " <body onload='setTimeout(prelater, 2 * 1000);'> \n";
      echo " <body style='background-color:lightgray;'><div data-role='page'><div data-role='header'> \n";
      if (isset($_GET['isMobile'])) {
      echo " <h2>" . $GETtitle . " Intensity Map</h2></div><!-- /header --><div data-role='content'> \n";
      } else {
      echo " <h1>" . $GETtitle . " Intensity Map</h1></div><!-- /header --><div data-role='content'> \n";
      }
      if (!isset($_GET['isMobile']) || isset($_GET['population'])) {
      echo '<div id="chart_div"></div>' . "\n";
      if (isset($_GET['isMobile'])) {
       echo '<a title="Another Intensity Map" href="./intensity_chart.php?isMobile=y">&nbsp;Another intensity map?</a>' . $lastgo . "\n";
      } else {
       echo '<a title="Another Intensity Map" href="./intensity_chart.php">&nbsp;Another intensity map?</a>' . $lastgo . "\n";
      }
      }
      if (!isset($_GET['population'])) {
      
        if (isset($_GET['isMobile'])) {
      echo '<div id="chart_div" style="width: ' . $GETwidth . 'px; height: ' . $GETheight . 'px;"></div>' . "\n";
         echo '<form style="margin-top:-10px;" action="./intensity_chart.php" method="GET">' . "\n";
         echo '<input name="isMobile" type="hidden" value="y"></input><br>' . "\n";
         echo '<table cellpadding=0 style="background-color:pink;"><tr><td>Title</td><td><input onclick=' . "'" . 'this.style.backgroundColor = "white"; ' . "'" . ' style="background-color:yellow;" id="title" name="title" type="text" value="' . $GETtitle . '"></input></td></tr>' . "\n";
         echo '<tr id="ourw" style="display:none;"><td>Width</td><td><input onclick=' . "'" . 'this.style.backgroundColor = "white"; ' . "'" . ' style="background-color:white;" id="width" name="width" type="text" value="' . $GETwidth . '"></input></td></tr>' . "\n";
         echo '<tr id="ourh" style="display:none;"><td>Height</td><td><input style="background-color:white;" id="height" name="height" type="text" value="' . $GETheight . '"></input></td></tr>' . "\n";
         echo '<tr><td>Via</td><td><input onclick=' . "'" . 'this.style.backgroundColor = "white"; ' . "'" . '  style="background-color:yellow;" id="country" name="country" type="text" value="' . $GETcountry . '"></input></td></tr>' . "\n";
         echo '<tr><td>Basis1</td><td><input onclick=' . "'" . 'this.style.backgroundColor = "white"; ' . "'" . '  style="background-color:yellow;" id="population" name="population" type="text" value="' . $GETpopulation . '"></input></td></tr>' . "\n";
         echo '<tr><td>Basis2</td><td><input onclick=' . "'" . 'this.style.backgroundColor = "white"; ' . "'" . '  style="background-color:yellow;" id="area" name="area" type="text" value="' . $GETarea . '"></input></td></tr>' . "\n";
         echo '<tr><td><input style="background-color:yellow;" type="button" onclick=' . "'" . 'later(document.getElementById("title").value,document.getElementById("width").value,document.getElementById("height").value,document.getElementById("country").value,document.getElementById("population").value,document.getElementById("area").value,"&amp;isMobile=y");' . "'" . ' value="Data"></input></td><td><input onclick=' . "'" . 'this.style.backgroundColor = "white"; ' . "'" . ' style="width:240px;font-size:6px;background-color:yellow;" id="data" name="data" type="text" value="' . $GETdata . '"></input></td></tr>' . "\n";     
         echo '<tr><td><input style="background-color:green;" id="submit" type="submit" value="Show"></input></td><td><input style="background-color:yellow;" id="clear" type="button" value="Clear" onclick="clearit();"></input>' . server_remote_addr('1') . '</td></tr></table>' . "\n";
         echo '</form></div><!-- /content -->' . "\n";
      //echo '<div id="chart_div"></div>' . "\n";
      if (strpos($lastgo, "Another") === false) {
      if (isset($_GET['isMobile'])) {
       echo '<a title="Another Intensity Map" href="./intensity_chart.php?isMobile=y">&nbsp;Another intensity map?</a>' . $lastgo . "\n";
      } else {
       echo '<a title="Another Intensity Map" href="./intensity_chart.php">&nbsp;Another intensity map?</a>' . $lastgo . "\n";
      }
      }
        }
      
        echo '<' . 'script' . ' type="text/javascript">' . "\n ";
          if (!isset($_GET['isMobile'])) {
   //echo '<' . 'script type="text/javascript">' . "\n";
   echo ' setTimeout(prelater, 2 * 1000);' . "\n";
   //echo '<' . '/' . 'script>' . "\n";
  }

        echo ' function clearit() {  ' . "\n" . ' if (document.getElementById("data").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("data").value=""; ' . "\n";
        echo ' if (document.getElementById("title").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("title").value=""; ' . "\n";
        echo ' if (document.getElementById("width").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("width").value=""; ' . "\n";
        echo ' if (document.getElementById("height").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("height").value=""; ' . "\n";
        echo ' if (document.getElementById("country").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("country").value=""; ' . "\n";
        echo ' if (document.getElementById("population").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("population").value=""; ' . "\n";
        echo ' if (document.getElementById("area").style.backgroundColor.indexOf("yellow") != (0 - 1)) document.getElementById("area").value=""; ' . "\n" . ' }  ' . "\n";

        echo "function prelater() { \n later('','','','','','',''); \n } \n function later(t,w,h,c,p,a,m) { \n" . ' var datalineprefix = " "; ' . "\n";
        echo ' var datalinesuffix = ""; ' . "\n";
        echo ' var extra = ""; ' . "\n";
        echo ' var thisline = 1; ' . "\n";
        echo ' var totalleft = 100.0; ' . "\n";
        echo ' var title = ""; ' . "\n";
        echo ' var width = "' . $GETwidth . '"; ' . "\n";
        echo ' var height = "' . $GETheight . '"; ' . "\n";
        echo ' var country = ""; ' . "\n";
        echo ' var population = ""; ' . "\n";
        echo ' var area = ""; ' . "\n";
        echo ' if ((t.length + w.length + h.length + c.length + p.length + a.length) == 0) { ' . "\n";
        echo '   title = prompt("Enter Intensity Map Title", "' . $GETtitle . '"); ' . "\n";
        echo ' }  ' . "\n";
        echo ' if ((t.length + w.length + h.length + c.length + p.length + a.length) != 0) { ' . "\n";
        echo ' title = t; ' . "\n";
        echo ' width = w; ' . "\n";
        echo ' height = h; ' . "\n";
        echo ' country = c; ' . "\n";
        echo ' population = p; ' . "\n";
        echo ' area = a; ' . "\n";
        echo ' } else if (title != null) { ' . "\n";
        echo ' if (1 == 2) { ' . "\n";
        echo ' width = prompt("Enter Intensity Map Width", "' . $GETwidth . '"); ' . "\n";
        echo ' height = prompt("Enter Intensity Map Height", "' . $GETheight . '"); ' . "\n";
        echo ' }  ' . "\n";
        echo ' country = prompt("Enter Country Label", "' . $GETcountry . '"); ' . "\n";
        echo ' population = prompt("Enter " + country + " first Measure", "' . $GETpopulation . '"); ' . "\n";
        echo ' area = prompt("Enter " + country + " second Measure", "' . $GETarea . '"); ' . "\n";
        echo ' }  ' . "\n";
        echo ' var datac = ""; ' . "\n";
        echo ' var sq = "' . "'" . '"; ' . "\n";
        echo ' datalineprefix = prompt("Enter " + country + " Name " + thisline, ""); if (datalineprefix == null) { datalineprefix=""; } ' . "\n";
        echo ' while (datalineprefix.length != 0 && (population.indexOf("ercent") == (0 - 1) || population.indexOf("  ercent ") != (0 - 1) || (population.indexOf("ercent") != (0 - 1) && totalleft > 0))) { ' . "\n";
        echo ' if (datalinesuffix.length != 0) datalineprefix = prompt("Enter " + country + " Name " + thisline + " (for no more hit Cancel button)", ""); ' . "\n";
        echo ' if (datalineprefix == null) { ' . "\n";
        echo '     datalineprefix = ""; ' . "\n";
        echo '     totalleft = 0; ' . "\n";
        echo ' } else if (datalineprefix.length != 0) { ' . "\n";
        echo '     extra = "";  ' . "\n";
        echo '     if (population.indexOf("ercent") != (0 - 1) && population.indexOf("  ercent ") == (0 - 1)) extra = " (for " + totalleft + " enter nothing or hit Cancel button)";  ' . "\n";
        echo '     datalinesuffix = prompt("Enter " + population.replace("  ercent ", "") + "," + area.replace("  ercent ", "") + " " + thisline + extra, "0,0"); ' . "\n";
        echo '     if (datalinesuffix == null && population.indexOf("ercent") != (0 - 1) && population.indexOf("  ercent ") == (0 - 1)) datalinesuffix = totalleft; ' . "\n";
        echo '     if (datalinesuffix == null) datalinesuffix = "0,0"; ' . "\n";
        /*
        echo '     if (datalinesuffix.length == 0) { ' . "\n";
        echo '       datalinesuffix = eval(totalleft); ' . "\n";
        echo '       totalleft = 0; ' . "\n";
        echo '     } else if (eval(totalleft) == eval(datalinesuffix) && population.indexOf("ercent") != (0 - 1) && population.indexOf("  ercent ") == (0 - 1)) { ' . "\n";
        echo '       totalleft = 0; ' . "\n";
        echo '     } else if (eval(datalinesuffix) > eval(totalleft) && population.indexOf("ercent") != (0 - 1) && population.indexOf("  ercent ") == (0 - 1)) { ' . "\n";
        echo '       datalinesuffix = eval(totalleft); ' . "\n";
        echo '       totalleft = 0; ' . "\n";
        echo '     } else if (eval(datalinesuffix) > eval(totalleft) && population.indexOf("ercent") == (0 - 1) && population.indexOf("  ercent ") == (0 - 1)) { ' . "\n";
        echo '       population = population + "  ercent "; ' . "\n";
        echo '     } else { ' . "\n";
        echo '       totalleft = eval(totalleft) - eval(datalinesuffix); ' . "\n";
        echo '     } ' . "\n";
        */
        echo '     datac = datac + ",[~" + datalineprefix + "~," + datalinesuffix + "]"; ' . "\n";
        echo '     thisline++; ' . "\n";
        echo '   } ' . "\n";
        echo ' } ' . "\n";
          if (!isset($_GET['isMobile'])) {
        echo ' window.location = "./intensity_chart.php?title=" + title + m + "&width=" + width + "&height=" + height + "&country=" + country + "&area=" + area.replace("  ercent ", "") + "&population=" + population.replace("  ercent ", "") + "&data=" + datac; ' . "\n";
		  } else {
        echo ' window.location = "./intensity_chart.php?isMobile=y&title=" + title + m + "&width=" + width + "&height=" + height + "&country=" + country + "&area=" + area.replace("  ercent ", "") + "&population=" + population.replace("  ercent ", "") + "&data=" + datac; ' . "\n";
          }
        echo "} \n"; // . "} \n";
        echo '</' . 'script' . '>' . "\n";
      } 
  echo '</div><!-- /page --><a target="top" title="menu" href="http://www.rjmprogramming.com.au/PHP/butsel.php?justmenu=justmenu">Menu</a></body>' . "\n";
  //if (!isset($_GET['isMobile'])) {
  // echo '<' . 'script type="text/javascript">' . "\n";
  // echo 'setTimeout(prelater, 2 * 1000);' . "\n";
  // echo '<' . '/' . 'script>' . "\n";
  //}
    ?>
</html>
