<!--
//--- Check Input Boxes On Shop 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 "shopdescription1":
	 maxChars = 400;
	break;	

	case "shopdescription2":
	 maxChars = 400;
	break;	
	
	case "shopdescription3":
	 maxChars = 400;
	break;
	
	
	case "shopdescription4":
	 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 == 'shopdescription1')document.getElementById('grower1').style.width=document.editform[theBox].value.length/2;
 if(theBox == 'shopdescription2')document.getElementById('grower2').style.width=document.editform[theBox].value.length/2;
 if(theBox == 'shopdescription3')document.getElementById('grower3').style.width=document.editform[theBox].value.length/2;
 if(theBox == 'shopdescription4')document.getElementById('grower4').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;
 }
}

// -->
