var rnd = 0;
var num = 1;

if (document.location.search.length > 0) {

  var searchString = document.location.search;
  var array1 = searchString.split("&");
  var array2 = array1[0].split("=");
  var array3 = array1[1].split("=");

  rnd = array2[1];
  num = array3[1];

}

if (Math.sqrt(rnd) == num) {

  var email = new String("cumanntra");
  email += "enach@hot";
  email += "mail.com?subject=fintownrailway";
  document.write("By Email: <a href=\"mai" + "lto:" + email + "\">" + email + "</a>");

} else {

  document.write("               <table border=\"0\" align=\"center\">");
  document.write("                    <tr>");
  document.write("                        <td><p align=\"center\"><font");
  document.write("                        <p align=\"center\"><font size=\"2\"");
  document.write("                        face=\"Arial\">In order to reduce the");
  document.write("                        number of un-solicited emails we receive,");
  document.write("                        our email address is hidden from robots");
  document.write("                        and crawlers. Please enter the 4 digit");
  document.write("                        number shown below into the textbox and");
  document.write("                        click submit:</font></p>");
  document.write("                        <p align=\"center\"><p align=\"center\"><font face=\"Courier\" size=\"6\">");
  
  rnd = Math.round((Math.random() * 9000) + 1000);
  document.write(rnd);
  rnd = Math.pow(rnd, 2);

  document.write("                        </font></p></p><p align=\"center\">");
  document.write("                        <form action=\"contact.html\" method=\"GET\">");
  document.write("                            <input type=\"hidden\" name=\"rn\"");
  document.write("                            value=\"");
  document.write(rnd + "\"><p><font");
  document.write("                            size=\"2\" face=\"Arial\">Enter the");
  document.write("                            number shown above:</font><input");
  document.write("                            type=\"text\" size=\"6\" name=\"nm\"> <input");
  document.write("                            type=\"submit\" value=\"Submit\"></p>");
  document.write("                        </form></p>");
  document.write("");
  document.write("                        <p></p>");
  document.write("                        </td>");
  document.write("                    </tr>");
  document.write("                </table>");
}
