function az_popupWindow(url) {
	window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}

jQuery(document).ready(function() {
	jQuery("img[src$='images/checkout_bullet.gif']").css('vertical-align', 'bottom');
		jQuery('.az_header_bottom_sub1').find('.headerNavigation:last').addClass('az_lastchild');
	var list_obj = jQuery('.az_product_list_index, .az_product_list .az_product_list_col');
	
	if(list_obj.length > 0) {
		var list_array = jQuery.makeArray(list_obj);
		var list_col = null;
		var list_item = 0;
		jQuery.each(list_array, function(key, value) {
			if(parseInt(jQuery('.az_product_list_item', jQuery(value)).length) > list_item) {
				list_item = jQuery('.az_product_list_item', jQuery(value)).length;
				list_col = jQuery('.az_product_list_item', jQuery(value));
			}
		});
	
		jQuery.each(list_col, function(key, value) {
			list_item = jQuery(value).height();
			jQuery.each(list_array, function(k, val) {
				if(parseInt(jQuery('.az_product_list_item:eq('+key+')', jQuery(val)).height()) > list_item) {
					list_item = parseInt(jQuery('.az_product_list_item:eq('+key+')', jQuery(val)).height());
				}
			});
	
			jQuery('.az_product_list_item:eq('+key+')', list_obj).height(list_item);
		});
	}
           var error = 0;   
  $('.az_product_info').submit(function(){  
 error = 0;
            jQuery('.az_select', jQuery(this)).each(function(){
               
              var locate =  jQuery(this).val();
            
             
                if( locate == '0') {  
                    
                    error += 1;           
                }
              
                
            });
            if(error > 0) {
                alert('Please select an option(s)!');
                return false;
            }

        });

});
