function area_nav(index){
for(var i=1;i<=2;i++)
{
	if( document.getElementById("nav"+i.toString()) != null )
	{
		document.getElementById("nav"+i.toString()).style.display = 'none';	
	}
}
	document.getElementById("nav"+index.toString()).style.display = 'block';
}

function area_softcom(index){
for(var i=1;i<=2;i++)
{
	if( document.getElementById("softcom"+i.toString()) != null )
	{
		document.getElementById("softcom"+i.toString()).style.display = 'none';	
	}
}
	document.getElementById("softcom"+index.toString()).style.display = 'block';
}
function area_update(index){
for(var i=1;i<=2;i++)
{
	if( document.getElementById("update"+i.toString()) != null )
	{
		document.getElementById("update"+i.toString()).style.display = 'none';	
	}
}
	document.getElementById("update"+index.toString()).style.display = 'block';
}
function area_top(index){
for(var i=1;i<=3;i++)
{
	if( document.getElementById("top"+i.toString()) != null )
	{
		document.getElementById("top"+i.toString()).style.display = 'none';	
	}
}
	document.getElementById("top"+index.toString()).style.display = 'block';
}
function area_tool(index){
for(var i=1;i<=2;i++)
{
	if( document.getElementById("tool"+i.toString()) != null )
	{
		document.getElementById("tool"+i.toString()).style.display = 'none';	
	}
}
	document.getElementById("tool"+index.toString()).style.display = 'block';
}
function area_arta(index){
for(var i=1;i<=2;i++)
{
	if( document.getElementById("arta"+i.toString()) != null )
	{
		document.getElementById("arta"+i.toString()).style.display = 'none';	
	}
}
	document.getElementById("arta"+index.toString()).style.display = 'block';
}
function area_artb(index){
for(var i=1;i<=2;i++)
{
	if( document.getElementById("artb"+i.toString()) != null )
	{
		document.getElementById("artb"+i.toString()).style.display = 'none';	
	}
}
	document.getElementById("artb"+index.toString()).style.display = 'block';
}
function area_artc(index){
for(var i=1;i<=2;i++)
{
	if( document.getElementById("artc"+i.toString()) != null )
	{
		document.getElementById("artc"+i.toString()).style.display = 'none';	
	}
}
	document.getElementById("artc"+index.toString()).style.display = 'block';
}
function area_softabout(index){
for(var i=1;i<=2;i++)
{
	if( document.getElementById("softabout"+i.toString()) != null )
	{
		document.getElementById("softabout"+i.toString()).style.display = 'none';	
	}
}
	document.getElementById("softabout"+index.toString()).style.display = 'block';
}
function area_arttop(index){
for(var i=1;i<=2;i++)
{
	if( document.getElementById("arttop"+i.toString()) != null )
	{
		document.getElementById("arttop"+i.toString()).style.display = 'none';	
	}
}
	document.getElementById("arttop"+index.toString()).style.display = 'block';
}
function checkdate(id) {
        var obj = document.getElementById(id);
        var obj = obj.getElementsByTagName("span");
        for (i=0;i<obj.length;i++) 
        {
            var d1 = new Date(new Date().getYear()+'/'+obj[i].innerHTML.replace(/-/g,'/'));
            //var d1 = new Date(obj[i].innerHTML.replace(/-/g,'/'));
            var d2 = new Date(new Date().getYear(),new Date().getMonth(),new Date().getDate());
            if (Date.parse(d1)>=Date.parse(d2)) {
                obj[i].innerHTML = "<font color=\"red\">"+obj[i].innerHTML+"</font>";
            }
        }
    }
function area_nav(index){
for(var i=1;i<=2;i++)
{
	if( document.getElementById("nav"+i.toString()) != null )
	{
		document.getElementById("nav"+i.toString()).style.display = 'none';	
	}
}
	document.getElementById("nav"+index.toString()).style.display = 'block';
}

