function newWindow(url, width, height) {
    if((!newWin) || (newWin.closed == true)) {
        var newWin = window.open(url,"newWindow",'width=' + width + ',height=' + height + ',resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=no,screenX=550,screenY=20,top=20,left=550');
        newWin.focus();
    }

    else {
        newWin.location.href = url;
        newWin.focus();
    }

}

// canManipulateImages - check if the browser we're using can do
// clever stuff with document images.

    function canManipulateImages() {
        if (document.images)
            return true;
        else
            return false;
    }

// loadProductImage

function loadProductImage(imageURL) {
    if (gImageCapableBrowser) {
        document.imageProduct.src = imageURL;
        return false;
    }
    else {
        return true;
    }
}

// gImageCapableBrowser - is this browser hip to images? Set up
// a global variable so that we don't have to keep calling a function
// (useful if the function becomes costly to compute).

gImageCapableBrowser = canManipulateImages();

