<!--

function popUp(url,width,height,scroll) {
sealWin=window.open(url,"win","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scroll+",resizable=1,width="+width+",height="+height);
self.name = "mainWin";}

function confirmMe(url) {
var result = confirm("Are you sure you wish to permanently delete this item?");
if (result) {
	document.location = url;
	}
}
	
function confirmEmpty(url) {
var result = confirm("Are you sure you wish to empty the shopping cart?");
if (result) {
	document.location = url;
	}
}

function disableSubmit(form) {
    if(document.shopper.submitted)return false;
    document.shopper.submit();
    document.shopper.submitbutton.disabled = true;
    return true;
}

function quickJump(url) {
	document.location = url;
	}

function compareProducts() {
	if(!(parseInt(navigator.appVersion) < 4)) {
		if(validate(window.document.compare) != false) {
			window.document.compare.submit();
		}
	}
	else {
		window.document.compare.submit();
	}
}

function validate(myform) {
	if(!(parseInt(navigator.appVersion) < 4)) {
		var value = 0;		
		if (myform != null) {
			for (var i = 0; i < myform.elements.length; i++) {
				if (myform.elements[i].checked) {
					value++;
				}
			}
		}
		if (value < 1) {
			alert('This feature allows you to do side-by-side comparisons of products. To use this feature, please "check" the boxes of the products you would like to compare.');
			return false;
		}
		else if (value > 20) {
			alert('We are sorry but the comparison is limited to 20 products.');
			return false;	
		}
	}
}

function Rcertify() 
{
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=103013113125129482', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
window.name = 'opener';
}

function goThere()
{
	goToPage = document.attributeForm.attributeSelect.options[document.attributeForm.attributeSelect.selectedIndex].value;
	if (goToPage == ""){
		return;
	}

	document.attributeForm.action = goToPage;
	document.attributeForm.submit();

}

// End -->

