<!--
//--- Check Input Boxes On accom Form Submition ----------------------------------------------jpdr.
i=0;
var maxChars;
function meterMyInputBox(theBox) {
 if(i<1){
  switch(theBox) {
	case "summary":
	 maxChars = 200;
	break;

	case "headdescription":
	 maxChars = 1000;
	break;	

	case "accomdescription1":
	 maxChars = 400;
	break;	

	case "accomdescription2":
	 maxChars = 400;
	break;	
	
	case "accomdescription3":
	 maxChars = 400;
	break;
	
	
	case "accomdescription4":
	 maxChars = 400;
	break;	

	case "accomdescription5":
	 maxChars = 400;
	break;	

	case "accomdescription6":
	 maxChars = 400;
	break;	

	case "accomdescription7":
	 maxChars = 400;
	break;	

	case "accomdescription8":
	 maxChars = 400;
	break;	
  
  }
 }

 i++;
 if(theBox == 'summary')document.getElementById('grower').style.width=document.editform[theBox].value.length;
 if(theBox == 'headdescription')document.getElementById('grower0').style.width=document.editform[theBox].value.length/5;
 if(theBox == 'accomdescription1')document.getElementById('grower1').style.width=document.editform[theBox].value.length/2;
 if(theBox == 'accomdescription2')document.getElementById('grower2').style.width=document.editform[theBox].value.length/2;
 if(theBox == 'accomdescription3')document.getElementById('grower3').style.width=document.editform[theBox].value.length/2;
 if(theBox == 'accomdescription4')document.getElementById('grower4').style.width=document.editform[theBox].value.length/2;
 if(theBox == 'accomdescription5')document.getElementById('grower5').style.width=document.editform[theBox].value.length/2;
 if(theBox == 'accomdescription6')document.getElementById('grower6').style.width=document.editform[theBox].value.length/2;
 if(theBox == 'accomdescription7')document.getElementById('grower7').style.width=document.editform[theBox].value.length/2;
 if(theBox == 'accomdescription8')document.getElementById('grower8').style.width=document.editform[theBox].value.length/2;


 if(document.editform[theBox].value.length>maxChars) {
  alert("You Have Reached The Maximum Length For This Description.\n\n"+maxChars+" Maximum Characters");
  document.editform[theBox].value.length=maxChars
  document.editform[theBox].value=document.editform[theBox].value.substring(0,maxChars);

  i=0;
 }
}

// -->