// builds LS querystring
function buildQueryString(){
var targetLocation="https:///tlcScripts/interpac.dll?Search&Config=&LimitsId=0&StartIndex=0&ItemsPerPage=10&SearchType=1&Branch=0&SearchField=";
var toFind=document.AquaForm.q.value;
if (toFind <= "What are you searching for?"){
toFind = toFind.replace("What are you searching for?","")
}
toFind = escape(toFind);
targetLocation+="&SearchData=";
targetLocation+=toFind;
if (toFind>"") return window.location=targetLocation;
}
// AquaBrowser Build Querystring
function buildAquaQueryString(){
var AquatargetLocation="https://";
var toFind=document.AquaForm.q.value;
if (toFind == "What are you searching for?"){
toFind = toFind.replace("What are you searching for?","")
}
toFind = toFind.replace("&","");
toFind = toFind.replace(" "," ")
toFind = escape(toFind);
if (toFind == ""){
return false;
}else{
AquatargetLocation+="/?q=";
AquatargetLocation+=toFind;
alert(AquatargetLocation);
return document.AquaForm.action=AquatargetLocation;
}
}
function buildEspanolQueryString() {
var EspanolTarget="https://?uilang=es";
var toFind=document.AquaForm.q.value
toFind = toFind.replace("¿Para qué usted está buscando?","");
toFind = toFind.replace("&","");
toFind = toFind.replace(" "," ");
toFind = escape(toFind);
if (toFind <=""){
EspanolTarget=EspanolTarget;
}else{
EspanolTarget+="&q="
EspanolTarget+=toFind;
}
window.location=(EspanolTarget);
}
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] = "0";
branches[1]=",60,Spring,";
configs[1]="hsysm";
LS2configs[1]="hsysm";
branches[2]=",61,10,41,";
configs[2]="isysm";
LS2configs[2]="isysm";
branches[3]=",53,41,55,56,57,58,59,62,";
configs[3]="esysm";
LS2configs[3]="esysm";
branches[5]="0";
configs[5]="41ysm";
LS2configs[5]="41ysm";
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];
}