﻿// JScript File

function MatchStatusChange(MatchStatus) {
    var MatchStatuses = new Array("prematch","live","postmatch");
    
    for (var intStatusPos = 0; intStatusPos <= 2; intStatusPos++){    
        var el = document.getElementById(MatchStatuses[intStatusPos]);
        
        if (MatchStatuses[intStatusPos] == MatchStatus){
            el.style.display = 'block';
        }else{
            el.style.display = 'none';
        }
    }
}

