function replaceChars(entry,out,add)
{

	temp = "" + entry;
	while (temp.indexOf(out)>-1)
	{
		pos=temp.indexOf(out);
		temp = "" + (temp.substring(0, pos) + add + temp.substring((pos + out.length), temp.length));
	}
	return temp;
}

function isEmailAddress(theElement)
{
	var s = theElement.value;
	var filter=/^[A-Za-z][A-Za-z0-9_]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/;
	if (s.length == 0 )
		return true;
	if (filter.test(s))
		return true;
	else
		return false;
}

