<!--
	function validateText(textItem, textDesc, allowSpaces, callFocus)
	{
		if ((!checkSpaces(textItem.value)) || (textItem.value == ""))
		{
			textItem.value = ""
			alert("Please enter " + textDesc + ".");
			
			if(callFocus)
			{
				flipImg(textItem, imgErrSrc)
				textItem.focus();
			}
			
			return(false);
		}
		else if(!allowSpaces)
		{
			var temp = new String(textItem.value);
			
			for(i = 0; i < temp.length; i++)
			{
				if(temp.charAt(i) == " ")
				{
					alert(textDesc + " may not contain any spaces. Please\nremove the space(s) from " + textDesc + " and try again.");
					
					if(callFocus)
					{
						flipImg(textItem, imgErrSrc)
						textItem.focus();
					}
					
					return(false);
				}
			}
		}
		
		return(true);
	}


	function checkSpaces(s)
	{
		var temp = new String(s);
		for(i = 0; i < temp.length; i++)
		{
			if(temp.charAt(i) != " ") return(true)
		}
		return (false);
	}
//-->
