﻿var vCapacity = 'Set the maximum capacity of the vehicle here. These can be any units you like; for example, weight, volume or number of passengers, but choose the same units for each vehicle. Setting this value can help ensure that we don\'t tell your drivers to pack in more deliveries than they can physically fit in their vans.';
var vName = 'This is the name you wish to assign to this vehicle, be it "Dave\'s truck", "Delivery van 12" or "VO 57 KTG". You should ensure each vehicle in your fleet has a unique name.';
var vDepot = 'If you have already created some depots, you can assign this vehicle to its default depot here. When you perform route optimisation each vehicle will automatically start and end its journey at its depot. You can of course over-ride this setting during the optimisation process, but having a default saves a little time.';
var vClassification = 'If you have already created some vehicle groups, you can assign this vehicle to its group here.  This feature is useful when setting up an optimisation query because you can view your fleet by vehicle type.  When you select a group, the capacity, height, weight and width (premium licenses only) will default to the values set for that group, though you can of course over-ride this.';
var vHeight = 'Set the height of the vehicle in feet here. Setting this will ensure that any routes calculated for this vehicle will avoid bridges that are too low. Tip: 1 metre = 3.28 feet.<br /><b>Note:</b> vehicle height must be between 0 and 16 feet. Bridges usually do not have restriction signs if they are taller than 16ft so we cannot generate a route that avoids bridges above this height.';
var vWidth = 'Set the width of the vehicle in feet here. Setting this will ensure that any routes calculated for this vehicle will avoid roads that are too narrow. Tip: 1 metre = 3.28 feet.';
var vWeight = 'Set the weight of the vehicle in imperial tons here. Setting this will ensure that any routes calculated for this vehicle will avoid roads that are too narrow. Tip: 1 metric tonne = 0.984 imperial (UK) tons.';
var vBreakStart = 'Set this to the time of day after which a vehicle should start its break-time. If the vehicle is en-route to the next delivery then the break will be scheduled after the delivery.';
var vBreakLength = 'If the vehicle is to have a break during the day set the duration of the break in minutes. If no break is required set this to 0 to ignore breaks.';
var vHGV = 'If this vehicle is an HGV, tick this box. Setting this will mean any routes calculated for this vehicle will be more likely to follow trunk roads.';
var vTolls = 'If you wish to avoid tolls roads for routes calculated for this vehicle, tick this box. Beware that diversions will tend to make the routes longer.';
var vMotorways = 'Tick this box if you want routes calculated for this vehicle to avoid motorways.';
var dName = 'This is the name you wish to assign to this depot, be it "Basingstoke", or "Main hub". Ensure each depot has a unique name.';
var dLocation = 'This is the location of the depot used as a default start and end point for any vehicles stationed at the depot. Enter a postcode or a place name, and click \"Verify\" to validate it. If multiple locations match your input you can choose the correct one from a dropdown list.';
var dLocations = 'Choose the appropriate location from the list and click the \"Select\" button.';
var cName = 'This is the name you wish to assign to this vehicle group; e.g. "Vans", "Minibuses", "Sheila\'s fleet" or "Class 2 HGVs". Ensure each vehicle group has a unique name.';
var cCapacity = 'Set the default maximum capacity of the vehicle type here. These can be any units you like; for example, weight, volume or number of passengers. Setting this value can help ensure that we don\'t tell your drivers to pack in more deliveries than they can physically fit in their vans. This is optional and can be over-ridden for individual vehicles.';
var cHeight = 'Set the default height of the vehicle group in feet here. Setting this will ensure that any routes calculated for these vehicles will avoid bridges that are too low. Tip: 1 metre = 3.28 feet. This is optional and can be over-ridden for individual vehicles.<br /><b>Note:</b> vehicle height must be between 0 and 16 feet. Bridges usually do not have restriction signs if they are taller than 16ft so we cannot generate a route that avoids bridges above this height.';
var cWidth = 'Set the default width of the vehicle group in feet here. Setting this will ensure that any routes calculated for these vehicles will avoid roads that are too narrow. Tip: 1 metre = 3.28 feet. This is optional and can be over-ridden for individual vehicles.';
var cWeight = 'Set the default weight of the vehicle type in imperial tons here. Setting this will ensure that any routes calculated for these vehicles will avoid roads that are too narrow. Tip: 1 metric tonne = 0.984 imperial (UK) tons. This is optional and can be over-ridden for individual vehicles.';
var cHGV = 'If these vehicles are HGVs, tick this box. Setting this will mean any routes calculated for these vehicles will be more likely to follow trunk roads. This is optional and can be over-ridden for individual vehicles.';
var cIcon = 'Choose a suitable icon to represent a vehicle of this type. This is cosmetic only and will not affect your optimisation results.';
var dJobName = 'You can give the job an optional name to identify it later if necessary.';
var dPauseTime = 'This is the time in minutes a vehicle will stay at each delivery location to make the delivery.';
var dExcludeTimeslots = 'If a delivery cannot be made within the given timeslot check this box to exclude the delivery altogether.';
var dWaitAtTimeslots = 'Should vehicles wait at delivery points if they are early for a timeslot, no matter how long the wait is?';
var dReloadTime = 'If vehicle capacities and delivery sizes result in a visit to the depot to reload how long should this stop take (in minutes)?';
var dTimeslotAdherence = 'Where timeslots are entered this determines how agressively should the optimiser try to make deliveries within a given timeslot. Ultimately it may be how far off a sensible route should the optimiser go to make a delivery.';
var dStartLocation = 'Change the selection in this drop-down to choose a different start location for this vehicle. If the location you require isn\'t in the list use the \"New\" button to add and verify a new location.';
var dEndLocation = 'Change the selection in this drop-down to choose a different end location for this vehicle. If the location you require isn\'t in the list use the \"New\" button to add and verify a new location.';
var dNewLocation = 'Enter a new location for this vehicle and click on the \"Verify\" button to continue. If multiple location matches are found you will need to select the correct one from the resulting list.';
var dNewLocationVerify = 'More than one location was found as a match to the location that you entered. Select the correct location from this list and click \"Select\" to update the selection for this vehicle.';
var dFile = 'To save time when importing waypoints, you can upload your waypoints as a csv file. Use one column for each field; a location column is required and each of the other columns is optional. You will be able to select which column is which after the file is uploaded. Most data applications will allow you to save data in csv format; for example, in Microsoft Excel just use \'Save as type:\' and select \'CSV (comma delimited) (*.csv)\'.';
var dID = 'An optional ID for the waypoint. You can use what you like, so long as it is unique each waypoint. You may want to use the parcel ID number, or the delivery job reference.';
var dNotes = 'Add any delivery notes in here if you want. These will appear in the result sheets that go to the drivers, so again, you can put what you like in here.';
var dSize = 'If you have entered vehicle size, you may specify sizes for each of the deliveries here. This could be the size of the package, it\'s weight, or the number of passengers to drop off - just use the same units as was specified for the vehicles.';
var dETime = 'Enter the time of the earliest drop off for this delivery. The optimiser will attempt to visit this location after this time.';
var dLTime = 'Enter the time of the latest drop off for this delivery. The optimiser will attempt to visit this location before this time.';
var dPTime = 'Enter the amount of time you expect your vehicle to be stationary at the given delivery before it starts off again. This is useful if the stops are likely to be more than a quick drop-off or if there are a lot of stops in a small area, and prevents the drivers of vehicles doing lots of local stops from being given a longer day than the drivers that go long distance to a few of the far-flung stops.';
var dCSVNotes = 'Notes correspond to anything special you may have about the delivery. These will appear in the result sheets that go to the drivers, so again, you can put what you like in here, whether it\'s a comment or the full delivery address.';
var dCSVSize = 'If you have entered vehicle size, you may specify sizes for each of the deliveries here. This could be the size of the package, it\'s weight, or the number of passengers to drop off - just use the same units as was specified for the vehicles.';
var dCSVETime = 'This is the time of the earliest drop off for this delivery and should be in the standard time format of \"00:00\". The optimiser will attempt to visit this location after this time.';
var dCSVLTime = 'This is the time of the latest drop off for this delivery and should be in the standard time format of \"00:00\". The optimiser will attempt to visit this location before this time.';
var dCSVPTime = 'This is the amount of time in minutes you expect your vehicle to be stationary at the given delivery before it starts off again. This is useful if the stops are likely to be more than a quick drop-off or if there are a lot of stops in a small area, and prevents the drivers of vehicles doing lots of local stops from being given a longer day than the drivers that go long distance to a few of the far-flung stops.';
var dManualPostcode = 'Enter the postcode of the delivery. You can enter a location name instead if you need to, but you will have to verify it when you upload the list.';
var dManualNotes = 'Add any delivery notes in here if you want. These will appear in the result sheets that go to the drivers, so again, you can put what you like in here.';
var dManualSize = 'If you have entered vehicle size, you may specify sizes for each of the deliveries here. This could be the size of the package, it\'s weight, or the number of passengers to drop off - just use the same units as was specified for the vehicles.';
var dManualEarly = 'Enter the time of the earliest drop off for this delivery. The optimiser will attempt to visit this location after this time.<br /><br />Note: enter the time in the format <b>00:00</b>.';
var dManualLate = 'Enter the time of the latest drop off for this delivery. The optimiser will attempt to visit this location before this time.<br /><br />Note: enter the time in the format <b>00:00</b>';
var dManualPause = 'Enter the amount of time <b>in minutes</b> you expect your vehicle to be stationary at the given delivery before it starts off again. This is useful if the stops are likely to be more than a quick drop-off or if there are a lot of stops in a small area, and prevents the drivers of vehicles doing lots of local stops from being given a longer day than the drivers that go long distance to a few of the far-flung stops.';
var dStrictness = 'How hard should the optimiser try to make deliveries possible between timeslots? Setting this to strong may result in out-of-the-way deliveries in order to make them on-time.';
var dStartTime = 'The start time is the departure time to make deliveries.';
var dIncDirections = 'Check this box if you would like driving directions to be included in the output. If the box is not checked only the summary information will be included. Note: you can set the default for this in your account settings.';
var dManualEntry = 'Enter the number of deliveries that you need to create and click on the \"Redraw form\" button to update the form. Note that if you enter any information then reduce the number of fields you may lose data in fields removed.';
var hSteps = '';

function showHelp(what)
{
	document.getElementById('divHelp').style.display = 'block';
	document.getElementById('pHelpText').innerHTML = what;
	//flashHelp('on');
}
/*function flashHelp(state)
{
	if (state == 'on'){
		document.getElementById('divHelp').style.backgroundColor = '#FFFEFB';
		//document.getElementById('divHelp').style.border = 'solid 1px #AAA';
		//document.getElementById('divHelp').style.width = '298px'
		setTimeout("flashHelp('off')", 1000);
	}
	else{
		document.getElementById('divHelp').style.backgroundColor = '#FAFAFA';
		//document.getElementById('divHelp').style.border = 'solid 1px #FAFAFA';
		//document.getElementById('divHelp').style.width = '300px'
	}
}*/
function hideHelp()
{
	document.getElementById('divHelp').style.display = 'none';
}

function openHelpPages(which)
{
	window.open ('/account/help/popup.aspx?pg='+which, 'routeophelp', "toolbar=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=400,height=550");
}

function openEULA()
{
	window.open ('/EULA/', 'ROEULA', "toolbar=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=500,height=650");
}

function showOptimiseDetails(which, icon)
{
	var table = eval("document.getElementById('"+which+"')");
	var expandIcon = eval("document.getElementById('imgExpand" + icon + "')");
	
	if (table.style.display == 'block')
	{
		table.style.display = 'none';
		expandIcon.src = '/images/icons/plus.gif';
	}
	else{
		table.style.display = 'block';
		expandIcon.src = '/images/icons/minus.gif';
	}
}

function doProcessing()
{
	document.getElementById('divProcessing').style.display = 'block';
}

function openPrivacy()
{
	window.open ('/privacy.aspx', 'roprivacy', "toolbar=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=560,height=550");
}