﻿function changeContent(myForm) {
    var x = document.getElementById('myTable').rows
    var y = x[0].cells
    selected_item = myForm.mySelectionBox.selectedIndex;
    newContent = myForm.mySelectionBox.options[selected_item].value;
    if (newContent == "University") {
        y[0].innerHTML = "University<br>8520 Hankins Rd.<br>Charlotte, NC 28269<br>(p) 704.599.1509<br>(f) 704.599.0236<br><a href=http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=8520+Hankins+Rd+charlotte+nc+28269&sll=35.119855,-80.952233&sspn=0.006766,0.009613&ie=UTF8&t=h&z=17&iwloc=addr target=_blank>Map it</a>&nbsp;&nbsp;-&nbsp;&nbsp;<A href='http://www.wilburnab.com/schedule/Index.aspx?Loc=University'>Schedule it</a>";
    }
    else if (newContent == "South Charlotte") {
    y[0].innerHTML = "South Charlotte<br>10421 S. Tryon St.<br>Charlotte, NC 28273<br>(p) 704.496.7700<br>(f) 704.496.7719<br><a href=http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=10421+S.+Tryon+St+charlotte+nc+28273&sll=35.164937,-80.739217&sspn=0.006762,0.009613&ie=UTF8&t=h&z=17&iwloc=addr target=_blank>Map it</a>&nbsp;&nbsp;-&nbsp;&nbsp;<A href='http://www.wilburnab.com/schedule/Index.aspx?Loc=South+Charlotte'>Schedule it</a>";
    }
    else if (newContent == "Independence") {
    y[0].innerHTML = "Independence<br>2033 Margaret Wallce Rd.<br>Matthews, NC 28105<br>(p) 704.535.3231<br>(f) 704.535.3995<<br><a href=http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=2033+Margaret+Wallace+Rd+matthews+nc+28105&sll=35.030559,-80.610123&sspn=0,359.846191&ie=UTF8&t=h&z=17&iwloc=addr target=_blank>Map it</a>&nbsp;&nbsp;-&nbsp;&nbsp;<A href='http://www.wilburnab.com/schedule/Index.aspx?Loc=Independence'>Schedule it</a>";
    }
    else if (newContent == "Uptown") {
    y[0].innerHTML = "Uptown<br>1429 S. Mint St.<br>Charlotte, NC 28203<br>(p) 704.910.8100<br>(f) 704.909.3991<br><a href=http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=1429+S+mint+St.+Charlotte+Nc+28213&sll=37.0625,-95.677068&sspn=53.080379,78.75&ie=UTF8&t=h&z=17&iwloc=addr&iwstate1=dir target=_blank>Map it</a>&nbsp;&nbsp;-&nbsp;&nbsp;<A href='http://www.wilburnab.com/schedule/Index.aspx?Loc=Uptown'>Schedule it</a>";
    }
    else if (newContent == "Gastonia") {
    y[0].innerHTML = "Gastonia<br>1509 North Chester St.<br>Gastonia, NC 28052<br>(p) 704.869.0123<br>(f) 704.866.8285<br><a href=http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=1509+North+Chester+St+Gastonia+Nc+28052&sll=35.219358,-80.85964&sspn=0.006758,0.009613&ie=UTF8&t=h&z=17&iwloc=addr target=_blank>Map it</a>&nbsp;&nbsp;-&nbsp;&nbsp;<A href='http://www.wilburnab.com/schedule/Index.aspx?Loc=Gastonia'>Schedule it</a>";
    }
    else if (newContent == "Lake Norman") {
    y[0].innerHTML = "Lake Norman<br>18831 Statesville Rd.<br>Cornelius, NC 28031<br>(p) 704.892.6262<br>(f) 704.892.0229<br><a href=http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=18831+statesville+rd.+cornelius+NC+28031&sll=35.279388,-81.187864&sspn=0.006753,0.009613&ie=UTF8&t=h&z=17&iwloc=addr target=_blank>Map it</a>&nbsp;&nbsp;-&nbsp;&nbsp;<A href='http://www.wilburnab.com/schedule/Index.aspx?Loc=Lake+Norman'>Schedule it</a>";
    }
    else if (newContent == "Concord") {
    y[0].innerHTML = "Concord<br>2760 Concord Parkway South<br>Concord, NC 28027<br>(p) 704.782.2929<br>(f) 704.782.0314<br><a href=http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=2760+Concord+Parkway+S+Concord+NC+28027&sll=35.470423,-80.873953&sspn=0.006737,0.009613&ie=UTF8&t=h&z=17&iwloc=addr target=_blank>Map it</a>&nbsp;&nbsp;-&nbsp;&nbsp;<A href='http://www.wilburnab.com/schedule/Index.aspx?Loc=Concord'>Schedule it</a>";
    }
    else if (newContent == "Mooresville") {
    y[0].innerHTML = "Mooresville<br>264 W Plaza Dr.<br>Mooresville, NC 28117<br>(p) 704-235-0600<br>(f) 704.235.0611<br><a href=http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=264+W+Plaza+Dr+Mooresville+NC+28117&sll=35.591719,-80.849113&sspn=0.026906,0.038452&ie=UTF8&t=h&z=17&iwloc=addr target=_blank>Map it</a>&nbsp;&nbsp;-&nbsp;&nbsp;<A href='http://www.wilburnab.com/schedule/Index.aspx?Loc=Mooresville'>Schedule it</a>";
    }
    else //(newContent == "Monroe")
    {
        y[0].innerHTML = "Monroe<br>3824 West Hwy 74<br>Monroe, NC 28110<br>(p) 704.296.9700<br>(f) 704.226.0616<br><a href=http://www.mapquest.com/maps/map.adp?formtype=address&addtohistory=&address=3824%20W%20Highway%2074&city=Monroe&state=NC&zipcode=28110%2d8444&country=US&geodiff=1 target=_blank>Map it</a>&nbsp;&nbsp;-&nbsp;&nbsp;<A href='http://www.wilburnab.com/schedule/Index.aspx?Loc=Monroe'>Schedule it</a>";
    }
}