// JavaScript Document

<!-- 



function validate1() 

{

 if ( document.add_cart1.order_quant.value == '' ) 

 {

      alert('You must enter an "Order Quantity". Please try again.');

      return false;

 }

 else if ( document.add_cart1.order_quant.value == 0 ) 

 {

      alert('You must enter an "Order Quantity" greater than zero. Please try again.');

      return false;

 }

 else if ( document.add_cart1.order_quant.value > '' && chknumeric(document.add_cart1.order_quant.value) == false)

 {

      alert('The "Order Quantity" must be numeric. Please try again.')

      return false;

 }

}



function chknumeric(strString)

//  check for valid number only	

{

   var strValidChars = "0123456789";

   var strChar;

   var blnResult = true;



   //  test strString consists of valid characters listed above

   for (i = 0; i < strString.length && blnResult == true; i++)

      {

      strChar = strString.charAt(i);

      if (strValidChars.indexOf(strChar) == -1)

         {

         blnResult = false;

         }

      }

   return blnResult;

}



//-->
