function multipleAddToBasket(f){ 	

	var productCodes = '';
	var quantities = '';
	
	if(document.productForm[0].name == 'productForm')
	{
		var numOfProducts = document.forms['productForm'].length;
		for(var i = 0;i<numOfProducts;i++){
			pF = document.forms.productForm[i]
			if(pF.quantity.value > 0 && !pF.quantity.disabled){
				productCodes += pF.productCode.value + ","
				quantities += pF.quantity.value + ","
			}
		}
	}
	else
	{
		pF = document.productForm
		if(pF.quantity.value > 0 && !pF.quantity.disabled){
			productCodes += pF.productCode.value + ","
			quantities += pF.quantity.value + ","
		}
	}
	
	productCodes = productCodes.substr(0,productCodes.length-1)
	quantities = quantities.substr(0,quantities.length-1)

	f.productCodes.value = productCodes
	f.quantities.value = quantities
	f.submit();
	
	return true;
}

function iFrameHeight() {
     var h = 0;
     if (h = document.getElementById('storeLocatorFrame').contentDocument.height)
     {
     document.getElementById('storeLocatorFrame').style.height = h + 60 + 'px';
     } else if( document.all ) {
          h = document.frames('storeLocatorFrame').document.body.scrollHeight;
          document.all.storeLocatorFrame.style.height = h + 20 + 'px';
     }
}