﻿// JScript File

function ButtonClick(ButtonName){

    //load the correct page based on given button name
    // actual function that switches pages on button click
    
    
    //UNUSED due to Navigator issues
    switch (ButtonName) {
    
        case "home":
           document.location.href="Default.aspx";   
        break; 
        case "roomdescriptions":
           document.location.href="RoomDescriptions.aspx";
        break;
        case "amenities":
           document.location.href="Amenities.aspx";
        break;
        case "availability":
           document.location.href="AvailabilityAndRates.aspx";
        break;
        case "contactowner":
           document.location.href="ContactOwner.aspx";
        break;
        case "map":
           document.location.href="Map.aspx";
        break;
        case "extraphotos":
           document.location.href="ExtraPhotos.aspx";
        break;
        case "homelocation":
           document.location.href="HomeLocation.aspx";
        break;
        case "todo":
           document.location.href="ThingsToDo.aspx";
        break;
        case "areamap":
           document.location.href="AreaMap.aspx";
        break;

        default : alert("Missing ButtonName switch in JS ButtonClick function");
    }
    
}

