<!-- Original:  Chris Brown  -->
<!-- Web Site:  http://www.geocities.com/BourbonStreet/3843  -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin-->
function circle(form,changed) {
with (Math) {
var deci = form.decimal.value;
var area = form.area.value;
var radius = form.radius.value;
var diameter = form.diameter.value;
var circumference = form.circumference.value;
if (changed == "area") {
var radius = sqrt(area / PI);
diameter = (2 * radius).toFixed(deci);
radius = (diameter / 2).toFixed(deci);
circumference = (PI * diameter).toFixed(deci);
}
if (changed == "radius") {
area = (PI * radius * radius).toFixed(deci);
diameter = radius * 2;
circumference = (PI * diameter).toFixed(deci);
diameter=(radius * 2).toFixed(deci);
}
if (changed == "diameter") {
area = (PI * (diameter / 2) * (diameter / 2)).toFixed(deci);
radius = (diameter/2).toFixed(deci);
circumference = (PI * diameter).toFixed(deci);
}
if (changed == "circumference") {
radius = (circumference / PI / 2).toFixed(deci)
diameter = circumference / PI;
area = (PI * (diameter / 2) * (diameter / 2)).toFixed(deci);
diameter = (circumference / PI).toFixed(deci);
       }
form.area.value = area;
form.radius.value = radius;
form.diameter.value = diameter;
form.circumference.value = circumference;
  }
}

var clockID=0
function UpdateClock()
{
if (clockID)
{clearTimeout(clockID);
clockID = 0;}

var H,M,S,Mth,Day,AMPM,Yr
var tDate = new Date();
Day=tDate.getDate()
if (Day<10)
{Day="0"+Day;}

Mth=tDate.getMonth()+1
if (Mth==1){Mth="Jan"}
if (Mth==2){Mth="Feb"}
if (Mth==3){Mth="Mar"}
if (Mth==4){Mth="Apr"}
if (Mth==5){Mth="May"}
if (Mth==6){Mth="Jun"}
if (Mth==7){Mth="Jul"}
if (Mth==8){Mth="Aug"}
if (Mth==9){Mth="Sep"}
if (Mth==10){Mth="Oct"}
if (Mth==11){Mth="Nov"}
if (Mth==12){Mth="Dec"}

Yr=tDate.getFullYear()

H=tDate.getHours();
if (H>11){AMPM="pm";}
else
{AMPM="am";}

if (H>12){H=H-12;}
if (H<10){H="0"+H;}

M=tDate.getMinutes()
if (M<10){M="0"+M;}

S=tDate.getSeconds()
if (S<10){S="0"+S;}

theTime.innerHTML = Day + " " + Mth + " " + Yr + "::"
+ H + ":" + M + ":" + S + AMPM;
clockID = setTimeout("UpdateClock()",1000);
}

function StartClock() {
clockID = setTimeout("UpdateClock()",500);
}

function KillClock() {
if (clockID)
 {clearTimeout(clockID);
 clockID = 0;}
}

