
function isNumber(strValue)
	{
	var tempIndex = 0;
	var tempLength = strValue.length;
	var errorFlag = false;
	//  build an array of acceptable chars
	goodArray = new Array('1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '.', ',');
	var arrayLength = goodArray.length;
	var arrayIndex = 0;
	while(tempIndex < tempLength)
		{
		foundFlag = false;
		//  is the character at this position a number?
		arrayIndex = 0;
		while(arrayIndex < arrayLength)
			{
			if(strValue.charAt(tempIndex) == goodArray[arrayIndex])
				{
				foundFlag = true;
				break;
				}
			arrayIndex++;
			}
		//  if we didnt find the char, then set the error flag and break
		if(!foundFlag)
			{
			errorFlag = true;
			break;
			}
		tempIndex ++;
		}
	if(errorFlag)
		{return false;}
	else
		{return true;}
	}


    function POPUP(input) {
window.open(input, "POPUP", "toolbar=yes,scrollbars=yes,width=500,height=350,status=yes,resizable=yes");
}

