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] = "ysm";
LS2configs[0] = "ysm";
branches[0] = "1,2,3";
branches[3]=",260,104,105,120,240,285,128,115,125,126,167,168,170,301,278,236,230,250,276,280,305,234,171,218,226,159,176,182,264,225,286,283,185,272,190,216,273,222,205,239,213,139,148,153,175,197,232,177,211,212,208,244,154,304,247,108,110,116,202,209,274,109,117,129,122,142,340,135,207,219,172,137,157,164,220,152,270,263,224,131,114,121,130,136,133,194,206,141,217,235,158,188,271,210,229,281,266,237,287,155,187,193,199,201,303,203,166,181,183,265,195,200,275,169,180,204,189,192,277,306,215,118,107,163,101,103,233,112,145,147,156,178,279,184,161,198,29,119,134,300,363,162,174,160,386,384,385,186,288,149,289,284,173,312,361,307,371,318,554,";
configs[3]="es";
LS2configs[3]="es";
branches[2]=",217,79,352,74,49,53,73,77,68,212,45,134,48,50,100,54,353,55,69,58,51,60,59,83,340,56,71,362,42,354,52,43,62,76,35,360,46,29,47,363,381,388,173,72,371,554,372,";
configs[2]="ms";
LS2configs[2]="ms";
branches[1]=",6,34,21,7,32,28,380,18,41,35,2,8,5,24,13,15,16,22,3,23,9,14,17,85,25,382,29,1,383,388,12,554,";
configs[1]="hs";
LS2configs[1]="hs";
branches[4]=",905,";
configs[4]="pl";
LS2configs[4]="pl";
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];
}