<!-- 
// This is the stuff to check the browser, to block on rollovers for Netscape2
if (((navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3) || parseInt(navigator.appVersion) >= 4) || parseInt(navigator.appVarsion) >= 4) 

{
    // We can have rollovers...
    rollOvers = 1;
} else {
    rollOvers = 0;
}



loaded = 0
var dirLevel = 0;
var levelMod = "";
levelMod = "";
for (i = 0;i < dirLevel;i++) {
	levelMod += "../";
}

function loadImg () {
    if (rollOvers) {
	equipOn = new Image(68, 98);
	equipOn.src = levelMod + "images/nav/equip_roll.gif";
	servesupportOn = new Image(68, 98);
	servesupportOn.src = levelMod + "images/nav/servesupport_roll.gif";
	eduOn = new Image(68, 98);
	eduOn.src = levelMod + "images/nav/edu_roll.gif";
	contactOn = new Image(68, 98);
	contactOn.src = levelMod + "images/nav/contact_roll.gif";
	aboutOn = new Image(68, 98);
	aboutOn.src = levelMod + "images/nav/about_roll.gif";
		
	equipOff = new Image(68, 98);
	equipOff.src = levelMod + "images/nav/equip_off.gif";
	servesupportOff = new Image(68, 98);
	servesupportOff.src = levelMod + "images/nav/servesupport_off.gif";
	eduOff = new Image(68, 98);
	eduOff.src = levelMod + "images/nav/edu_off.gif";
	contactOff = new Image(68, 98);
	contactOff.src = levelMod + "images/nav/contact_off.gif";
	aboutOff = new Image(68, 98);
	aboutOff.src = levelMod + "images/nav/about_off.gif";

		
	loaded = 1
    }
}

function switchOn(imgName) {
	if (loaded == 1) {
	imgOn = eval(imgName + "On.src");
	document [imgName].src = imgOn;
	}
}

function switchOff(imgName) {
	if (loaded == 1) {
	imgOff = eval(imgName + "Off.src");
	document [imgName].src = imgOff;
	}
}

 // -->
 
 <!--
  if (document.images)
   {
     image_off= new Image(100,100);
     image_off.src="images/machines/01_lg_off.gif";  

     image2= new Image(100,100);
     image2.src="images/machines/01_title.gif";
     image3= new Image(100,100);
     image3.src="images/machines/02_title.gif"; 
   }

function change1(picName,imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + ".src");
      document[picName].src= imgOn;
    }
 }
//-->

<!--
  if (document.images)
   {
     imagea_off= new Image(100,100);
     imagea_off.src="images/equip/roll_over_blank.gif";  

     imageb= new Image(100,100);
     imageb.src="images/equip/specialty_text_roll.gif";
     imagec= new Image(100,100);
     imagec.src="images/equip/manu_text_roll.gif";
     imaged= new Image(100,100);
     imaged.src="images/equip/transduc_text_roll.gif";
     imagee= new Image(100,100);
     imagee.src="images/equip/specials_text_roll.gif";
     imagef= new Image(100,100);
     imagef.src="images/equip/license_text_roll.gif"; 
   }

function change1(picName,imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + ".src");
      document[picName].src= imgOn;
    }
 }
//-->
 
  <!-- 
function openNewWindow(inURL, inName, inTitle, inWidth, inHeight, inFeatures) {
	var features
	features = inFeatures
	if(features != '') features += ','
	features += 'title=' + inTitle + ','
	if(inWidth > 0 && inHeight > 0) {
		features += 'width=' + inWidth + ',height=' + inHeight
	}
	window.open(inURL, inName, features)
}
function openHTMLWindow(inURL, inWidth, inHeight) {
	openNewWindow(inURL, '', 'Local Harvest Market', inWidth, inHeight, 'resizable,scrollbars,menubar,toolbar');
}


 // -->
 
<!--  Begin
function resetform() {
document.forms[0].elements[1]=="";
}
function submitForms() {
if (isEmail() && isFname() && isLname() && isAddress() && isCity() && isState() && isZip())
if (confirm("\n You are about to e-mail your submission. \n\nYES to submit.    NO to abort."))
{
alert("\nYour submission will now be sent. \n\n Use the Return Button once the submission is complete to return to my home page.\n\n\n Thank you for joining our mailing list!");
return true;
}
else
{
alert("\n You have chosen to abort the submission.");
return false
}
else 
return false;
}
function isEmail() {
if (document.forms[0].elements[1].value == "") {
alert ("\n The E-Mail field is blank. \n\n Please enter your E-Mail address.")
document.forms[0].elements[1].focus();
return false;
}
if (document.forms[0].elements[1].value.indexOf ('@',0) == -1 ||
document.forms[0].elements[1].value.indexOf ('.',0) == -1) {
alert ("\n The E-Mail field requires a \"@\" and a \".\"be used. \n\nPlease re-enter your E-Mail address.")
document.forms[0].elements[1].select();
document.forms[0].elements[1].focus();
return false;
}
return true;
}
function isFname() {
if (document.forms[0].elements[2].value == "")
{
alert ("\n The First Name field is blank. \n\n Please enter your first name.")
document.forms[0].elements[2].focus();
return false;
}
return true;
}
function isLname() {
if (document.forms[0].elements[3].value == "") {
alert ("\n The Last Name field is blank. \n\nPlease enter your last name.")
document.forms[0].elements[3].focus();
return false;
}
return true;
}
function isAddress() {
if (document.forms[0].elements[4].value == "") {
alert ("\n The Address field is blank. \n\nPlease enter your address.")
document.forms[0].elements[4].focus();
return false;
}
return true;
}
function isCity()
{
if (document.forms[0].elements[5].value == "")
{
alert ("\n The City field is blank. \n\nPlease enter your city.")
document.forms[0].elements[5].focus();
return false;
}
return true;
}
function isState() {
if (document.forms[0].elements[6].value == "") {
alert ("\n The state field is blank.\n\nPlease enter your state.")
document.forms[0].elements[6].focus();
return false;
}
return true;
}
function isZip() {
if (document.forms[0].elements[7].value == "") {
alert ("\n The Zip code field is blank. \n\nPlease enter your Zip code.")
document.forms[0].elements[7].focus();
return false;
}
return true;
}
// End -->

<!--
// Script written by Dave Taylor based on some math suggested by
// Bennett Haselton @ Peacefire.org. Thanks Bennett!

function centNotation(value)
{
  // return the value in normalized dollars.cents notation

  dollars = Math.floor(value);  // chop floating point portion
  cents   = Math.floor((value % 1) * 100);              // and chop everything else
  if (cents < 10) cents = "" + cents + "0";

  return(dollars + "." + cents);
}



function validInt(value)
{
  // return true if it's digits or decimal point-only, false otherwise.

  for (var i=0; i < value.length; i++) {
    var c = value.charAt(i);
    if ((c < '0' || c > '9') && c != '.') {
      alert("There's a problem: all values herein must " +
        "be numbers only, and " + value + " has an unacceptable character " +
        "'" + c + "'");
      return(false);
    }
  }
  return(true);
}

function myPaymentCalc()
{
  // calculate the number of payments and total payments for a simple loan given
  // the interest, monthly payment and principal of the loan.
  
  var interestRate = document.debtcalc.interest.value,
      monthlyPayment = document.debtcalc.monthlypayment.value,
      principal = document.debtcalc.principal.value,
      accumulatingInterest = 1;
  
  if (! validInt(interestRate) || ! validInt(monthlyPayment) ||
      ! validInt(principal))
    return(false);
    
  if (interestRate == 0 || monthlyPayment == 0 || principal == 0) {
    alert("You need to specify your monthly payment, credit card " +
        "interest rate and current debt amount before I can calculate " +
        "how long it'll take for you to pay off your debt.");
    return(false);
  }
  
  interestRate = (interestRate > 1)? interestRate / 100.0 : interestRate;

  monthlyInterestRate = interestRate / 12;

  if (principal * monthlyInterestRate > monthlyPayment) {
    monthlyrate = "$" + centNotation(principal * monthlyInterestRate);
    permonthPayment = "$" + centNotation(monthlyPayment);
    alert("You've got a fundamental problem: your monthly payment of " +
        permonthPayment + " is less than the interest added each month " +
        "(which is " + monthlyrate + ") and you will never " +
        "pay off this debt. It might be a good time to call your creditors.");
    return(false);
  }
   
  interimVal1 = monthlyPayment - (monthlyInterestRate * principal)
  
  numberOfPayments = (Math.log(monthlyPayment) - Math.log(interimVal1)) /
        Math.log(1+monthlyInterestRate);
  
  numberOfPayments = Math.ceil(numberOfPayments);
      
  interimVal2 = Math.pow((monthlyInterestRate+1), (numberOfPayments-1));
  
  remaining = (principal * interimVal2) -
    (monthlyPayment/monthlyInterestRate) * (interimVal2 - 1);
    
  totalPayment = monthlyPayment *(numberOfPayments-1) + remaining;
  
  // clean up the display format to make it attractive...
        
  payments = numberOfPayments;
  totalpayment = "$" + centNotation(totalPayment);
  interestPaid = "$" + centNotation(totalPayment-principal);
  
  alert("Given these figures, you'll end up having " + payments +
        " payments and pay a total of " + totalpayment + ", of which " +
        interestPaid + " is interest.");

} 
// -->
