<!--

function ClearAllSelectedDistricts()
{
	document.dform.districtlids.value = '';
	document.dform.totalresult.value = '';
	document.dform.pagemovement.value = 'SelectDistrict'
	document.dform.mode.value = 'Removed'
	document.dform.submit()
}


function addSelectedDistrict(strDistrictLID)
{

	document.dform.districtlids.value = document.dform.districtlids.value + strDistrictLID + ","

	document.dform.mode.value = 'Added'
	document.dform.pagemovement.value = 'SelectDistrict'
			
	document.dform.submit();
	
}


function removeManagedSelectedDistrict(intLeaID)
{

	strCurrentDistricts = document.md.dlids.value;
	
	// Remove the districts
		
		document.md.dlids.value = document.md.dlids.value.replace(intLeaID + ",","")
		document.md.submit();
	

}


function removeAllManagedDistricts()
{
	document.md.dlids.value = '';
	document.md.submit()
}


function syncDistricts(strDistrictLIDS)
{
	
	window.opener.document.dform.districtlids.value = strDistrictLIDS
	window.opener.document.dform.mode.value = "List Updated"
	window.opener.document.dform.submit()
	window.close()

}


function CheckSelectedLimit()
{

	dlid = document.dform.districtlids.value.split(",")
	
	if ((dlid.length) == 6 && document.dform.districtadd.checked)
	{
		alert("You may only select up to seventy-five (75) districts")
		
	}

}


function changeElement(strPage)
{
	if(strPage == "ddata")
	{
		if(document.ddata.element.value !=0)
		{
			document.ddata.submit()
		}
	}
	else if(strPage == "dchart")
	{
		if(document.dchart.element.value !=0)
		{
			document.dchart.submit()
		}
	}	
}


function changeCat()
{
	
	dataid = document.peerdata.dataid.value
	mt = document.peerdata.mt.value
	jobid = document.peerdata.jobid.value
	subdataid = document.peerdata.subcat.value
	pagenum = document.peerdata.pagenumber.value
	baseLEAID = document.peerdata.bleaid.value
	
	location.href = 'peergroupdata.asp?dataid=' + dataid + '&subdataid=' + subdataid + '&pagenumber=' + pagenum + '&mt=' + mt + '&bleaid=' + baseLEAID + '&jobid=' + jobid
		
}

function getPeerGroup(leaid)
{

	document.dform.peergroupleaid.value=leaid
	document.dform.ActionPeerGroup.value = "GetPeerGroup"
	document.dform.submit();

}

function peerMode(intMode)
{
    if (intMode == 1)
    {
        document.getElementById("preturn").style.visibility = 'hidden'
        document.getElementById("preturn2").style.visibility = 'hidden'
    }
    else
    {
        document.getElementById("preturn").style.visibility = 'visible'
        document.getElementById("preturn2").style.visibility = 'visible'
    }    

}

function openDDWin(strDCat,strDVal)
{
	var ddwin = window.open('blank.asp?dcat=' + strDCat + '&dval=' + strDVal,'ddwinx','width=300,height=200,screenX=0,screenY=0,top=0,left=0,location=yes,status=yes,address=yes,menubar=yes,toolbar=yes,scrollbars=yes,resize=yes')
}

function AboutTheData()
{
	var abwin = window.open('about.asp','ddwinx','width=500,height=555,screenX=0,screenY=0,top=0,left=0,resizable=1,scrollbars=yes,menubar=no')
}

function openMoreInfoWin(intLeaID)
{
	var miwin = window.open('/ccd/districtsearch/district_detail.asp?ID2=' + intLeaID + '&details=1','miwinx','menubar=yes,toolbar=yes,status=yes,resizable=yes,scrollbars=yes,width=630,height=540,location=yes,screenX=0,screenY=0,top=0,left=0,top=0,left=0')
}

function openPrintableDisplay(strDistrictLIDS,strElement,strElementDisplay)
{
	var prwin = window.open('printresults.asp?dlids=' + strDistrictLIDS + '&element=' + strElement + '&elementd=' + strElementDisplay,'prwinx','width=710,height=500,screenX=0,screenY=0,top=0,left=0,resizable=1,scrollbars=yes,menubar=no')
}

function manageDistricts(strDistrictLIDS,strDistrictNames)
{
	var mdwin = window.open('managedistricts.asp?dlids=' + strDistrictLIDS + '&dnames=' + strDistrictNames,'mdwinx','width=525,height=450,screenX=0,screenY=0,top=0,left=0,resizable=1,scrollbars=yes,status=yes,menubar=no')
}

function openExcelDisplay(strDistrictLIDS,strElement,strElementDisplay)
{
	var xldlwin = window.open('createxl.asp?dlids=' + strDistrictLIDS + '&element=' + strElement + '&elementd=' + strElementDisplay,'xldlwinx','screenX=0,screenY=0,top=0,left=0,resizable=1,width=230,height=250,scrollbars=yes,menubar=no')
}

function showHelp(strElement,intWidth,intHeight)
{
	var helpwin = window.open('help.asp?element=' + strElement,'helpwinx','width=' + intWidth +',height=' + intHeight +',screenX=0,screenY=0,top=0,left=0,resizable=1,scrollbars=yes,menubar=no')
}

function GetExcelFile()
{
	window.open('','NewExcelWindow','width=230,height=250, screenX=0,screenY=0,top=0,left=0,scrollbars=no,resizable=no');
	document.ExcelDL.submit();
}

function glossary() 
{
  window.open('/ccd/commonfiles/glossary.asp','popup',"height=400,width=460,resizable=yes,scrollbars=yes,screenX=0,screenY=0,top=0,left=0,top=0,left=0")
}

function OpenInfoWindow() 
{
    var ddwin = window.open('search_info.asp','ddwinx','width=680,height=300,screenX=0,screenY=0,top=0,left=0,scrollbars=yes,resizable=1');
}

function openPeerInfo(strPage)
{
	var faqWindow=window.open("info.asp?t=" + strPage, "helpwindow", "screenX=0,screenY=0,top=0,left=0,resizable=1,scrollbars,width=600,height=600")
}

//-->