function distbetween(lon1,lat1,lon2,lat2){
  out= Math.sqrt(Math.pow(lon1-lon2,2) + Math.pow(lat1-lat2,2)); 
  return out;
}

function schlon(sch){
  out=0;
  if (sch == "Emmeline Cook") out = -88.522408;
  if (sch == "Franklin") out = -88.5721;
  if (sch == "Green Meadow") out = -88.614218;
  if (sch == "Jefferson") out = -88.543631;
  if (sch == "Lakeside") out = -88.505698;
  if (sch == "Lincoln") out = -88.546229;
  if (sch == "Merrill") out = -88.539422;
  if (sch == "Oaklawn") out = -88.539156;
  if (sch == "Oakwood") out = -88.603075;
  if (sch == "Read") out = -88.554806;
  if (sch == "Roosevelt") out = -88.567008;
  if (sch == "Jacob Shapiro") out = -88.563824;
  if (sch == "Smith") out = -88.54269;
  if (sch == "Sunset") out = -88.57329;
  if (sch == "Carl Traeger") out = -88.609009;
  if (sch == "Washington") out = -88.525497;
  if (sch == "Webster Stanley") out = -88.522714;
  if (sch == "South Park") out = -88.55519;
  if (sch == "Perry Tipler") out = -88.57329;
  if (sch == "West") out = -88.57249;
  if (sch == "North") out = -88.550372;

  return out;
}


function schlat(sch){
  out=0;
  if (sch=="Emmeline Cook") out = 44.037341;
  if (sch=="Franklin") out = 44.013363 ;
  if (sch=="Green Meadow")  out =    43.93617;
  if (sch=="Jefferson") out = 44.008537 ;
  if (sch=="Lakeside") out = 43.946182;
  if (sch=="Lincoln") out = 44.022735;
  if (sch=="Merrill") out =44.032337 ;
  if (sch=="Oaklawn") out = 44.042307;
  if (sch=="Oakwood") out = 44.033397;
  if (sch=="Read") out =44.030482 ;
  if (sch=="Roosevelt") out = 44.028489 ;
  if (sch=="Jacob Shapiro") out = 43.99978 ;
  if (sch=="Smith") out = 44.00047;
  if (sch=="Sunset") out = 44.014905;
  if (sch=="Carl Traeger") out =43.996582 ;
  if (sch=="Washington") out = 44.016563;
  if (sch=="Webster Stanley") out =44.028655 ;
  if (sch=="South Park") out =44.004674 ;
  if (sch=="Perry Tipler") out =44.014905 ;
  if (sch=="West") out =44.022765 ;
  if (sch=="North") out =44.04514 ;

  return out;
}

