﻿function displayStartForm(id, branchid) {
    $('#branch' + id).html('<b>Get Directions from:</b><br/><br/><input id="StartLocation" name="StartLocation" type="text"/><br/><input type="button" onclick="getRoute('+branchid+')" value="Get Directions" />').fadeIn('slow');
}

function getRoute(branchid) {
    window.location = 'http://www.banson.uk.com/Branch.aspx/GetDirections/' + branchid + '/' + $('#StartLocation').val();
}