
//var message="Contents of this website are copyrighted and are not to be //duplicated without express permission of site owner.";
//function click(e) { 
//if (document.all) {
//if (event.button==2||event.button==3) { 
//alert(message);
//return false;} 
//} 
//if (document.layers) {
//if (e.which == 3) {
//alert(message); 
//return false; 
//} 
//} 
//} 
//if (document.layers) {
//document.captureEvents(Event.MOUSEDOWN);
//}document.onmousedown=click; 

// Speaking of Java, this particular script is (C) Copyright 2002 Jim Tucek
// If you wish to use my Email Encryption script, these comments must be left
// alone!  That is all.

// Visit www.jracademy.com/~jtucek/ for script information and a bit of help
// setting it up, or www.jracademy.com/~jtucek/email.html for contact
// information.

// A brief history of this script can be found (and it's rather entertaining)
// at www.jracademy.com/~jtucek/eencrypt.html

function goForth(c,n,d) {
c += ' ';
var length = c.length;
var number = 0;
var bar = 0;
var answer = '';
for(var i = 0; i < length; i++) {
number = 0;
bar = 0;
while(c.charCodeAt(i) != 32) {
number = number * 10;
number = number + c.charCodeAt(i)-48;
i++;
}
answer += String.fromCharCode(decrypt(number,n,d));
}
// Updated security feature
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+answer;
}

function showText(c,n,d) {
c += ' ';
var length = c.length;
var number = 0;
var bar = 0;
var answer = '';
for(var i = 0; i < length; i++) {
number = 0;
bar = 0;
while(c.charCodeAt(i) != 32) {
number = number * 10;
number = number + c.charCodeAt(i)-48;
i++;
}
document.write('&');
document.write('#');
document.write(decrypt(number,n,d));
}
}

function decrypt(c,n,d) {
// Split exponents up
if (d % 2== 0) {
bar = 1;
for(var i = 1; i <= d/2; i++) {
foo = (c*c) % n;
bar = (foo*bar) % n;
}
} else {
bar = c;
for(var i = 1; i <= d/2; i++) {
foo = (c*c) % n;
bar = (foo*bar) % n;
}
}
return bar;
}

function getlastdate(){
	var mydate=new Date()
	var year=mydate.getYear()
	if (year < 1000)
	year+=1900
	var day=mydate.getDay()
	var month=mydate.getMonth()+1
	if (month<10)
	month="0"+month
	var daym=mydate.getDate()
	if (daym<10)
	daym="0"+daym
	var showDate=("<small><font color='000000' face='Arial'><b>"+month+"/"+daym+"/"+year+"</b></font></small>")
   	return(showDate);}


function getcopyrightdate() {
	var mydate=new Date()
	var year=mydate.getYear()
	if (year < 1000)
	year+=1900
	var day=mydate.getDay()
	var month=mydate.getMonth()+1
	if (month<10)
	month="0"+month
	var daym=mydate.getDate()
	if (daym<10)
	daym="0"+daym
	var showDate=("<small><font color='000000' face='Arial'><b>"+year+"</b></font></small>")
   	return(showDate);}

function CAPACITY() {
	this.mLiter=1
	this.mMilliliter=.001
	this.mDrachm=.000281569
	this.uslGallon=3.785
	this.uslQuart=0.94625
	this.uslPint=0.473125
	this.uslFluid_ounce=.0295703
	this.uslFluid_dram=.0036962875
	this.biGallon=4.546
	this.biQuart=1.136
	this.biPint=.56826
	this.cCup=0.2365625
	this.cTable_spoon=0.014785156
	this.cTea_spoon=0.004928385
}

data = new CAPACITY();

function checkNum(str) {
	for (var i=0; i<str.length; i++) {
	var ch = str.substring(i, i + 1)
	if (ch!="." && (ch < "0" || ch > "9")) {
		alert("Please enter a valid number.");
		return false
		}
	}
	return true
}

function rnd(what) {
	what=Math.round(what*1000)/1000
	var str=""+what;
	
	return str;
}

function compute(obj,val) {
	if (obj[val].value) {
		var uval=0;
		uval = obj[val].value*data[val];
		for (var i in data)
			obj[i].value=rnd(uval/data[i]);
	}
}

function WEIGHT() {
   this.Kilogram1=1.0;
   this.Gram1=.001;
   this.Milligram1=.000001;
   this.Pound2=0.453592;
   this.Ounce2=.02835;
   this.Dram2=.001771875;
   this.Grain2=.000064799;
}
data = new WEIGHT();
function checkNum(str) {
	for (var i=0; i<str.length; i++) {
	var ch = str.substring(i, i + 1)
	if (ch!="." && (ch < "0" || ch > "9")) {
		alert("Please enter a valid number.");
		return false
		}
	}
	return true
}

function normalize(what) {
	what=Math.round(what*1000)/1000	
	var str=""+what;
	return str;
}

function compute(obj,val) {
	if (obj[val].value) {
		var uval=0;
		uval = obj[val].value*data[val];
		for (var i in data)
			obj[i].value=normalize(uval/data[i]);
	}
}

function gotoindex(){
if (top.location == self.location){self.location.replace('index.htm')}
}


// <!-- 1309992777
// This script is (C) Copyright 2004 Jim Tucek
// Leave these comments alone!  For more info, visit
// www.jracademy.com/~jtucek/email/ 

function cling(optician,money,state) {
optician += ' ';
var historian = optician.length;
var butterfly = 0;
var debate = '';
for(var shrub = 0; shrub < historian; shrub++) {
butterfly = 0;
while(optician.charCodeAt(shrub) != 32) {
butterfly = butterfly * 10;
butterfly = butterfly + optician.charCodeAt(shrub)-48;
shrub++;
}
debate += String.fromCharCode(read(butterfly,money,state));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+debate;
}

function overcome(method,song,heat) {
method += ' ';
var mile = method.length;
var oxygen = 0;
for(var biologist = 0; biologist < mile; biologist++) {
oxygen = 0;
while(method.charCodeAt(biologist) != 32) {
oxygen = oxygen * 10;
oxygen = oxygen + method.charCodeAt(biologist)-48;
biologist++;
}
//document.write('&');
//document.write('#');
//document.write(read(oxygen,song,heat));
document.write(String.fromCharCode(read(oxygen,song,heat)));
}
}

function read(watched,coordinated,design) {
if (design % 2 == 0) {
male = 1;
for(var machine = 1; machine <= design/2; machine++) {
farm = (watched*watched) % coordinated;
male = (farm*male) % coordinated;
}
} else {
male = watched;
for(var custom = 1; custom <= design/2; custom++) {
farm = (watched*watched) % coordinated;
male = (farm*male) % coordinated;
}
}
return male;
}
// -->

