function startintervalCharts(){
	intervalCharts = window.setInterval("loadCharts()", 10000);
}
function stopintervalCharts(){
	window.clearInterval (intervalCharts);
	interval="";
}
function loadCharts()
{
	document.images["ImageChart"].src = "WebControls/indexchart.aspx?MCODE=1";
	
}
function ChangeSection(Obj,SelectedSectionName,SelectedSectionDataName)
{
	UnselectAllSection();
	Obj.className = "SelectedSectionStyle";
	
	HideAllSections();
	document.getElementById(SelectedSectionName).style.display = "Block";
	document.getElementById(SelectedSectionDataName).style.display = "Block";
}

function UnselectAllSection()
{
	document.getElementById("tdSection1").className = "UnSelectedSectionStyle";
	document.getElementById("tdSection2").className = "UnSelectedSectionStyle";
	document.getElementById("tdSection3").className = "UnSelectedSectionStyle";
	document.getElementById("tdSection4").className = "UnSelectedSectionStyle";
}

function HideAllSections(){
	document.getElementById("divSection1").style.display = "none";
	document.getElementById("divSectionData1").style.display = "none";
	
	//document.getElementById("divSection2").style.display = "none";
	document.getElementById("divSectionData2").style.display = "none";
	
	//document.getElementById("divSection3").style.display = "none";
	document.getElementById("divSectionData3").style.display = "none";
	
	//document.getElementById("divSection4").style.display = "none";
	document.getElementById("divSectionData4").style.display = "none";
}

function popup(Page, winheight, winwidth, Type, Scrollable)
{
		if (winheight==0)
				winheight = screen.availHeight - 100;
		if (winwidth==0)
				winwidth = screen.availWidth - 50;
		var myTop;
		var myWidth;
		myTop = ((screen.availHeight - winheight)/2) - 25;
		myLeft = (screen.availWidth - winwidth)/2;
		if (Scrollable == 0)
			window.open(Page, Type, "resizable=no,status=no,height=" + winheight + ",width=" + winwidth + ",scrollbars=no, location=no, menubar=no, left=" + myLeft + ", top=" + myTop);
		else
			window.open(Page, Type, "resizable=no,status=no,height=" + winheight + ",width=" + winwidth + ",scrollbars=yes, location=no, menubar=no, left=" + myLeft + ", top=" + myTop);
}
