// JavaScript Document
	function checkForm(fields,fieldNames)
	{
		for (var i = 0; i < fields.length; i++)
		{
			if (document.getElementById(fields[i]).value == '' || document.getElementById(fields[i]).value == null)
			{
				alert("You must enter a value for " + fieldNames[i] + ".");
				setFocus(fields[i]);
				return false;
			}
		}		
		return true;
	}
	function setFocus(id)
	{
		document.getElementById(id).focus();
		if(document.getElementById(id).type == "text"){document.getElementById(id).select();}
	}
	function IsNumeric(strString)
	//  check for valid numeric strings	
	{
		var strValidChars = "0123456789.-";
		var strChar;
		var blnResult = true;
		
		if (strString.length == 0) return false;
	
		//  test strString consists of valid characters listed above
		for (i = 0; i < strString.length && blnResult == true; i++)
		{
			strChar = strString.charAt(i);
			if (strValidChars.indexOf(strChar) == -1)
			{
				blnResult = false;
			}
		}
		return blnResult;
	}