

function AddToShoppingList() 
{
	document.formAddToCart.action = "/ec/process_command?cmd=shoppingList&action=addToList";
	document.formAddToCart.submit();
}

/*********************************************************************************
 *
 *      openPurchaseHistory
 *
 *      Provides functionality for opening any file in a window with navigation.
 *
 *
 *      Version:        1.0
 *      Date:           15 Sep 2001
 *      Author:         Chris Reeves
 *
 */


function openPurchaseHistory (windowURL, windowName, windowTitle, secure) {

        var windowWidth = 600;
        var windowHeight = 500;
        
        if (secure == "1") {
		var URL = "https://" + location.hostname + windowURL;
        } else {
		var URL = windowURL;
        }
        
        var features = "width=" + windowWidth + ",height=" + windowHeight + ",status=no,menubar=no,scrollbars=yes,resizable=no";
        window.open(URL, windowName, features);
}

function openComparableProduct (windowURL, windowName, windowTitle, secure) {

        var windowWidth = 600;
        var windowHeight = 500;
        
        if (secure == "1") {
		var URL = "https://" + location.hostname + windowURL;
        } else {
		var URL = windowURL;
        }
        
        var features = "width=" + windowWidth + ",height=" + windowHeight + ",status=no,menubar=no,scrollbars=yes,resizable=no";
        window.open(URL, windowName, features);
}
