//***********************************************************************************
function ItsEmpty(val)
{
	if (val.length == 0)
	{
		return true
	}
	else
	{
		return false
	}
}

//***********************************************************************************
function ItsNumeric(val)
{
	//proving by counterexample
	nonnumeric_exp = /\D/
	if (nonnumeric_exp.test(val) == true)
	{
			return false
	}
	else
	{
		return true
	}
}

//***********************************************************************************
function ItHasSpace(val)
{
	for (ct=0; ct<val.length; ct++)
	{
		if (val.charAt(ct) == " ")
		{
			return true
		}
	}
	
	return false
}

//***********************************************************************************
function ItsEmail(val)
{
	email_exp = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
	return email_exp.test(val)
}

//***********************************************************************************
function ValidPassword(val)
{
	password_exp = /^[^\x22\x26\x27\x25\x3c\x3e\x5c\x2f]{6,20}$/
	return password_exp.test(val)
}

//***********************************************************************************
function ItsPrice(val)
{
	price_exp = /^[0-9]+(\.[0-9]{2})*$/
	return price_exp.test(val)
}

//***********************************************************************************
function ItsUSZipCode(val)
{
	zip_exp = /^[0-9]{5}$/
	return zip_exp.test(val)
}

//***********************************************************************************
function ItsPhone(val)
{
	phone_exp = /^[0-9]{10}$/
	return phone_exp.test(val)
}
