function load_sector_index()
{
	window.open("SectorIndex.asp","_blank","height=400,width=500,scrollbars,resizable")
	return true;		
}


function load_sector_index_movement(SectorID)
{
	strURL="SectorIndex_Movement.asp?"+SectorID
	window.open(strURL ,"_blank","height=400,width=500,scrollbars,resizable")
	return true;		
}


function button1_onclick(SelectedStockID) 
{
	strURL="http://newjksb/newJKSB/Stats/SelectedStockInfo.asp?" + SelectedStockID

	strURL="http://newjksb/newJKSB/Stats/StockStats.asp?" + SelectedStockID
	
	strURL="http://www.jksb.keells.lk/newJKSB/Stats/StockStats.asp?" + SelectedStockID

	window.open(strURL,"_blank","height=400,width=600,scrollbars,resizable")
	return true;	
}


function getQueryValue(name) {
  var value = "";
  if ( (i=location.search.indexOf('?'+name))==-1 && (i=location.search.indexOf('&'+name,3))==-1 )
    return null;
  else
    i += name.length+2;
  if ( (j=location.search.indexOf("&",i))!=-1 )
    value = location.search.substring(i,j);
  else
    value = location.search.substring(i,location.search.length);
  for ( i=0; i<value.length; i++ )
    if ( value.charAt(i)=='+' )
    value = value.substring(0,i)+' '+value.substring(i+1,value.length);
  return unescape(value);
}
