﻿// JScript File

// This function deals with the Product Details/Delivery Options/Returns Policy section ...
// ... on Product.aspx 
// It takes the following inputs:
//      xDivId - is the section which has been clicked
//      yDivId & zDivId - are the other two sections
// It displays the selected section and hides the other two

function display(xDivId, yDivId, zDivId) 
{
    var xDiv = document.getElementById(xDivId);
    var yDiv = document.getElementById(yDivId);
    var zDiv = document.getElementById(zDivId);
    xDiv.style.display = "block";
    yDiv.style.display = "none";
    zDiv.style.display = "none";      
}