﻿function show(flag)
{
    var a=document.URL;
    var b=a.indexOf('?');
    var c=a.indexOf('viewall');
    var d=a.indexOf('newsdetail');
    if(flag=='false')
    {
      if(b>0)
        document.location.href += '&viewall=true';
      else
        document.location.href += '?viewall=true';

      document.getElementById('news_container').style. display='none';
    }
    else
    {
      var getqry=(location.search).split('?viewall=');
      if (c>0 && d<0) 
     {
       document.location = getqry[0]+'?ndetail=true';
      }
      else if(d>0)
      {
        //var str=(document.URL).indexOf('&');
	var str=(document.URL).indexOf('&viewall');
        var str1=(document.URL).substring(str,(document.URL).length);
        str2=(document.URL).replace(str1,'');
        document.location.href=str2;
      }
      else
        document.location.href = getqry[0];

      document.getElementById('news_container_large').style. display='none';
    }
}
function morelink(url)
{
    var a=(location.search).indexOf('viewall');
    if(a>0)
    {
      document.location = url + '&viewall=true';
    }
    else
      document.location = url;
}

