
jQuery.noConflict();

jQuery(document).ready(function(){


  jQuery('.checkbox.product-custom-option').click(function(){
    alert('');
  });

  jQuery('#qty').change(function()
  {
    opConfig.reloadPrice();
  });

  ///jQuery('#qty').keyup(function()
  //{
    //temp = parseInt(jQuery('#qty').val());
    //if (temp >= 24 )
    //{
      //if (id = document.getElementById(chkb_id))
        //id.disabled = false;
    //}
    //else
    //{
      //if (id = document.getElementById(chkb_id))
      //{
        //id.disabled = true;
        //id.checked = false;
         //for (i = 0; i < 20; i++)
        // {
            //if (id = document.getElementById('item-'+i))
              //id.style.display = 'none';
         //}
         //opConfig.reloadPrice();
      //}
    //}
    //opConfig.reloadPrice();
  //});


   a = typeof(chkb_id);
   for (i = 0; i < 20; i++) {
      if (a == 'string') {
        if (id = document.getElementById('item-'+i))
        id.style.display = 'none';
      }

   }

//  if (id = document.getElementById(chkb_id))
//    id.disabled = true;

});

function check_count()
{
    if (a == 'string') {
      temp = parseInt(jQuery('#qty').val());
      if (temp < 24 || jQuery('#qty').val() == '')
      {
        if (id = document.getElementById(chkb_id))
        {
          if (id.checked == true)
          {
  	        id.checked = false;
  	         for (i = 0; i < 20; i++)
  	         {
  	            if (id = document.getElementById('item-'+i))
  	              id.style.display = 'none';
  	         }
  	         opConfig.reloadPrice();
  		    	alert('You must order at least 24  of this item if you include the Personalized Tag.');
  		    	return false;
          }
        }
      }
    }
    return true;
}



