<!--
function sleft(f,i,a,r){
// f = parent id that is appended to the form name ie add1234567
// i = product id that is appended to the field qty name ie qty-3
// a = number available total in the
// r = number in the cart

var x = eval('document.add' + f + '.qty' + i);

var y=parseInt(a)-parseInt(r);

if ((parseInt(x.value) + parseInt(r)) > parseInt(a)){
alert("We're sorry. Due to extreme interest\nthere are only (" + y + ") left available for\nthis product in addition to (" + r + ") that\n is already be in your cart.");
x.value=a-r;
x.focus();
return false;
}

}
//-->