<!--


function CheckInputLength(theitem,maxlength)
{
str = theitem.value;
			
if (str.length > maxlength) {
           alert("Please limit input to " + maxlength + " characters. The current length is " + str.length + " characters.");
		   theitem.focus();
           theitem.select();
			return false;
        	}		
}


function DisableButton(b)
   {

//alert(b.disabled);

      b.disabled = true;

//alert(b.disabled);

      b.value = 'Submitting';
      b.form.submit();
   }




function AddToCart() {

var formObj

formObj = document.frmAddToCart;


var thesize, thetype,itemnum;

itemnum = '';

if (formObj.tshirt_type.options[formObj.tshirt_type.selectedIndex].value == "Long Sleeve")
{
if (formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value == "Adult - XXL")
{
itemnum = 2001;
window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Long+Sleeve+T-Shirt+(Adult+-+XXL)&item_number=2001&amount=10.00&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');
}
else if  (formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value == "Adult - XL")
{
itemnum = 2002;
window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Long+Sleeve+T-Shirt+(Adult+-+XL)&item_number=2002&amount=10.00&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');

}
else if  (formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value == "Adult - L")
{
itemnum = 2003;
window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Long+Sleeve+T-Shirt+(Adult+-+L)&item_number=2003&amount=10.00&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');
}
else if  (formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value == "Adult - M")
{
itemnum = 2004;
window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Long+Sleeve+T-Shirt+(Adult+-+M)&item_number=2004&amount=10.00&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');
}
else if  (formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value == "Youth - L")
{
itemnum = 2005;
window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Long+Sleeve+T-Shirt+(Youth+-+L)&item_number=2005&amount=10.00&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');
}
else if  (formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value == "Youth - M")
{
itemnum = 2006;
window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Long+Sleeve+T-Shirt+(Youth+-+M)&item_number=2006&amount=10.00&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');
}
}
else if  (formObj.tshirt_type.options[formObj.tshirt_type.selectedIndex].value == "Short Sleeve")
{

if (formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value == "Adult - XXL")
{
itemnum = 2007;
window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Short+Sleeve+T-Shirt+(Adult+-+XXL)&item_number=2007&amount=8.00&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');
}
else if  (formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value == "Adult - XL")
{
itemnum = 2008;
window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Short+Sleeve+T-Shirt+(Adult+-+XL)&item_number=2008&amount=8.00&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');
}
else if  (formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value == "Adult - L")
{
itemnum = 2009;
window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Short+Sleeve+T-Shirt+(Adult+-+L)&item_number=2009&amount=8.00&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');
}
else if  (formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value == "Adult - M")
{
itemnum = 2010;
window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Short+Sleeve+T-Shirt+(Adult+-+M)&item_number=2010&amount=8.00&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');
}
else if  (formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value == "Youth - L")
{
itemnum = 2011;
window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Short+Sleeve+T-Shirt+(Youth+-+L)&item_number=2011&amount=8.00&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');
}
else if  (formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value == "Youth - M")
{
itemnum = 2012;
window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Short+Sleeve+T-Shirt+(Youth+-+M)&item_number=2012&amount=8.00&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');
}

}

//alert("Item num " + itemnum );


//alert("T-shirt style " + formObj.tshirt_type.options[formObj.tshirt_type.selectedIndex].value + " Size " + formObj.tshirt_size.options[formObj.tshirt_size.selectedIndex].value + "  Quantity " + formObj.quantity.value );



//window.open('https://www.paypal.com/cart/add=1&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Football&item_number=1001&amount=1.95&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');

// window.open('https://www.paypal.com/cart/add=1&undefined_quantity=' + formObj.quantity.value + '&business=thelongs%40mediaone.net&item_name=SnuggleBall+-+Football&item_number=1001&amount=1.95&image_url=https%3A//www.hail-mary.com/images/snuggleball_paypal_logo.gif&return=http%3A//www.snuggleball.com/orders_thankyou.asp&cancel_return=http%3A//www.snuggleball.com/orders_cancel.asp','cartwin','width=600,height=400,scrollbars,location,resizable,status');



}// end of AddToCart()




//-->