﻿//+=================================================================+
//|  File. . . . : displayElements.js        
//|                                   
//|  Description :  displayElements.js                                         
//|                                                                 
//|  Copyright 2006  Experian Limited, Talbot House, Talbot Street, 
//|                  Nottingham, NG1 5HF, ENGLAND                   
//|      telephone   int + 44 (0)115 9410 888                       
//|                                                                 
//|  The copyright to the computer program(s) herein is the         
//|  property of Experian Limited, ENGLAND.                         
//|  The program(s) may be used and/or copied only with the written 
//|  permission of Experian Limited or in accordance with the terms 
//|  and conditions stipulated in the agreement/contract under      
//|  which the programs have been supplied.                         
//+=================================================================+

function switchRows(elementToHideId, elementToDisplayId) 
{        
    showElement(elementToDisplayId);
    hideElement(elementToHideId);
}

function showElement(elementToShowId) 
{        
    elementToShow=document.getElementById(elementToShowId);
    
    if (elementToShow) 
    {          
        try 
        {              
            elementToShow.style.display='table-row';            
        } 
        catch(e) 
        {              
            elementToShow.style.display = 'block';            
        }         
    }        
}

function hideElement(elementToHideId) 
{        
    elementToHide=document.getElementById(elementToHideId);
    
    if (elementToHide) 
    {          
        elementToHide.style.display = 'none';          
    }        
}




