var prod = 'prod1';

function LoadJSwarn (){
	var jswarn = document.getElementById('jscont');
	jswarn.style.display = "none";
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
function SubmitAdd(myform) { 
	var form = document.forms[myform];
	form.action = "http://cart.bcentral.com/ShoppingCart/AddToCart.asp";
	SubmitForm(form); 
} 
function SubmitForm(form) { 
	form.returnURL.value = location.href;
	if (ValidateData(form)) form.submit();
}
function ValidateData(form){var qty = form.quan.value;len = qty.length;digits = "0123456789";if (len <=0){alert("Quantity must not be empty");form.quan.value=1;form.quan.focus();return false;}for(i = 0; i < len; i++){if (digits.indexOf(qty.charAt(i)) < 0){alert("Quantity must be numeric");form.quan.value=1;form.quan.focus();return false;}}if (qty == 0){alert("Quantity must be greater than zero");form.quan.value=1;form.quan.focus();return false;}return true;}
function parseIntReplace(checkVal) { if (checkVal.value.length == 0) return true; var m = checkVal.value.match(/^[\d]+$|^[\d]+[\.][0]*$/); if (m != null) { checkVal.value = checkVal.value.replace(/^0+/g,""); return true;}else {return false; } }
function toggle(toggleId, e)
{
	if (!e) {
		e = window.event;
	}
	if (!document.getElementById) {
		return false;
	}
	var x = document.getElementById(prod);
	x.style.display = 'none';
	var y = document.getElementById(toggleId);
	y.style.display = 'block';
	prod = toggleId;
	if (e) {
		e.cancelBubble = true;
		if (e.stopPropagation) {
			e.stopPropagation();
		}
	}
}