
function changeSupply(id)
{
    var tab_all = document.getElementById('table_supply');
    var span_array = tab_all.getElementsByTagName('span');
    if(span_array!=null)
    {
           
        for(i=0;i<span_array.length;i++)
        {
            span_array[i].style.display = 'none';
            if(id ==0)
            {
                document.getElementById('td_underline_0').style.background = 'url('+SKPath+'image/g11.jpg)';
                document.getElementById('td_underline_1').style.background = 'url('+SKPath+'image/g0.jpg)';
                document.getElementById('td_underline_2').style.background = 'url('+SKPath+'image/g0.jpg)';
            }
            if(id ==1)
            {
                document.getElementById('td_underline_1').style.background = 'url('+SKPath+'image/g11.jpg)';
                document.getElementById('td_underline_0').style.background = 'url('+SKPath+'image/g0.jpg)';
                document.getElementById('td_underline_2').style.background = 'url('+SKPath+'image/g0.jpg)';
            }
            if(id==2)
            {
                document.getElementById('td_underline_2').style.background = 'url('+SKPath+'image/g11.jpg)';
                document.getElementById('td_underline_0').style.background = 'url('+SKPath+'image/g0.jpg)';
                document.getElementById('td_underline_1').style.background = 'url('+SKPath+'image/g0.jpg)';
            }
        }
        span_array[id].style.display = '';
    }
}

function show_comment(url, mid, itemid) {
	document.write('<iframe src="'+url+'comment.php?mid='+mid+'&itemid='+itemid+'" name="comment" id="comment" style="width:99%;height:0px;" scrolling="no" frameborder="0"></iframe>');
}
