
function calcfields() // Verify and format the amount
   {   
   var MyAmount 
   var notMoneyChar = /[^0-9.]/     
     
   MyAmount = document.getElementById("addamount").value  
    
   var conform = MyAmount.search(notMoneyChar);
      if (conform >=0 || MyAmount == "") {
	     alert("Please enter only dollar amounts"); return false; }
	  if (MyAmount < 15) {
		 alert("Please enter at least $25"); return false; }
	    
      
   // assign values to form fields
   document.forms[1].x_amount.value = MyAmount; 
  }



function displayDiv(mystate)  //John Kirby <jkirby@bnrtech.com> - Wednesday, July 08, 2009 12:53 PM
	{
	var divstyle = new String();
	divstyle = document.getElementById("div_iho").style.display;
	if(mystate == "Hide")
		{
		document.getElementById("div_iho").style.display = "none";
		}
	else
		{
		document.getElementById("div_iho").style.display = "block";
		}
	}

