// JavaScript file

// To clear the value in a text field IF the current value is the default value
// USAGE
// onclick="clearTextFieldDefaultValue([fieldName], [defaultValue]);"
function clearTextFieldDefaultValue(el, defaultValue)
{
	if (el.value == defaultValue)
		el.value = '';
}
function isNumeric(sText)
{
	var ValidChars = "0123456789.";
	var IsNumber=true;
	var Char;
	
	for (i = 0; i < sText.length && IsNumber == true; i++) 
	{ 
		Char = sText.charAt(i); 
		if (ValidChars.indexOf(Char) == -1) 
		{
			IsNumber = false;
		}
	}
	return IsNumber;
}
