//Locator Support functions

function downLoad()
{
var LPVer = 31;
var L5Ver = 31;
var LMVer = 30;
var setText = "";
var getVal = location.search.toString();
var getVer = getVal.substring(6);

if(getVal.indexOf("ID=LP") != -1 && getVer<LPVer)setText = "<p><b>Locator Plus</b>: an update is available for your version:<br /><br /><a href=\"../downloads/locplus31.EXE\">Download Version 3.1</a></p>";
	
if(getVal.indexOf("ID=L5") != -1 && getVer<L5Ver) setText = "<p><b>Locator Five</b>: an update is available for your version:<br /><br /><a href=\"../downloads/locfive3.EXE\">Download Version 3.1</a></p>";
		
if(getVal.indexOf("ID=LM") != -1 && getVer<LMVer) setText = "<p><b>Locator Plus with Mini SOR</b>: an update is available for your version:<br/><br/><a href=\"../downloads/locmini3.EXE\">Download Version 3.0</a>";
				
if(getVal && setText == "") setText = "<p>You have the latest version and there is no need to upgrade</p>";
		
if(setText != "") document.getElementById("FiveUp").innerHTML = setText;
		
		if(window.parent.location.search.indexOf("ID=L") != -1)
		{
		document.getElementById("Comp").innerHTML = "<p><b>Locator Components</b>:</p><p>This setup file installs the Locator Plus components that are required on each client system if you are running Locator Plus from a file server. </p><p><a href=\"../downloads/LocatorDLLs.EXE\">Download Components setup</a></p>"
		+"<p><b>Locator Mobile:</b></p><p>The setup files are contained in a zip file. Download, extract the files, and run locmob2.exe to install Locator Mobile on a PDA running Windows Mobile 3 or later.</p><p><a href=\"../downloads/LocatorMobileInstall.zip\">Download Locator Mobile</a></p>";
		}
		
}
