function updateSchoolInfo() { sID = document.getElementById("schoolselect").value SchoolType = document.getElementById("schooltypselect").value window.location="school.asp?SchoolType="+SchoolType+"&sID="+sID+"" } function updateSchoolOptions(ID2Get, ajax, SchoolID) { load("school.asp?getType="+ID2Get+"&ajax="+ajax+"&SchoolID="+SchoolID, "schooloptions"); var branches= new Array(); var configs= new Array(); var LS2configs= new Array(); configs[0] = "all"; LS2configs[0] = "all"; branches[0] = "0"; branches[3]=",74,77,1,84,3,261,61,53,60,58,28,4,"; configs[3]="high"; LS2configs[3]="hs"; branches[1]=",94,63,11,69,25,76,32,27,42,72,87,88,67,"; configs[1]="middle"; LS2configs[1]="ms"; branches[2]=",92,95,50,30,86,18,13,38,65,70,56,41,55,15,37,44,39,90,33,40,2,73,6,66,46,85,78,62,43,29,59,49,51,21,36,5,80,47,48,7,35,34,"; configs[2]="elem"; LS2configs[2]="es"; if (document.getElementById("branchInput")) document.getElementById("branchInput").value = branches[ID2Get]; if (document.getElementById("configInput")) document.getElementById("configInput").value = configs[ID2Get]; if (document.getElementById("LS2configInput")) document.getElementById("LS2configInput").value = LS2configs[ID2Get]; }