// JavaScript Document
function CC_Validator(theForm)
{
  
   if (theForm.Order.value.length < 1)
      {      
      alert("Invoice Number Cannot Be Blank");
       theForm.Order.focus();
      return (false);
      }
  
  
      if (theForm.Order.value.length < 4)
      {      
      alert("Invoice Number Is Incorrect (Too Short)");
       theForm.Order.focus();
      return (false);
      }
	  
	       if (theForm.Order.value.length > 6)
      {      
      alert("Invoice Number Is Incorrect (Too Long)");
       theForm.Order.focus();
      return (false);
      }


if (theForm.Amount.value.length < 1)
      {      
      alert("Amount Paid Cannot Be Blank");
       theForm.Amount.focus();
      return (false);
      }

if (theForm.Amount.value.length < 2)
      {      
      alert("Amount Seems Incorrect (Too Little)");
       theForm.Amount.focus();
      return (false);
      }
	  
	  
	 if (theForm.For.value.length < 5)
      {      
      alert("Invoice Name Seems Incorrect (Too Short)");
       theForm.For.focus();
      return (false);
      }
	  
	  

  return (true);
}


