function confirmDelete(timeStamp, promoType){
	var returnvalue = false; 
	if ((timeStamp.length)>2){
		var prefix = "qualifier for";
		promoType.replace(/~/g,'\"');
		promoType.replace(/=/g,'\'');
		var promoArray = promoType.split(prefix);
	
       	var msg = "\nThe product you have chosen to remove qualifies your purchase of the following product(s).\n";
       	for (i=1; i<promoArray.length; i++){	
       		msg = msg + "    " + i +  ". " + promoArray[i] + "\n";
       	}	
       	msg = msg + "\nSelect 'OK' to continue and remove the products from your cart.\n";  
       	msg = msg + "Select 'Cancel' to return to your shopping cart without removing any items.\n"; 
       	
        if (confirm(msg)){  
        	//ask if they want to continue anyhow
           returnvalue = true; // they do
       	} else {
           returnvalue = false; // they do not
        }
  	} else {  
  		//not a promoqualifer, or not linked  -- okay to delete
       	returnvalue = true;
    }
    return returnvalue;
}
        
function confirmDeleteAll(){
	var returnvalue = false; 
	var msg = "\nSelect 'OK' to continue and remove all products from your cart." +
		"\nSelect 'Cancel' to return to your shopping cart without removing any items."; 
	if (confirm(msg)){  
		//ask if they want to continue anyhow
		returnvalue = true; // they do
	} else {
		returnvalue = false; // they do not
	}
	return returnvalue;
}
        
        
function qtyChangeInfoMsg(currentField,qtyField) {
	if( currentField.value != qtyField.value ) {
		alert("Changing the quantity of this item may decrease the quantity of the associated promo item.");
      	qtyField.value = currentField.value;
    }
} 