﻿function switchTab(hc,hp,cc,cp)
{
    var oTabHeader = document.getElementById(hc);
    for(var i=0;i<oTabHeader.children.length;i++)
    {
        var oLi = oTabHeader.children(i);
        oLi.className = "";	        
    }	
    hp.parentNode.className = "Current";        
    
    var oTabContent = document.getElementById(cc);
    for(var i=0;i<oTabContent.children.length;i++)
    {
        var item = oTabContent.children(i);
        item.style.display="none";
    }
    document.getElementById(cp).style.display="block";
    hp.blur();
}


 