function isValidEmail(str) 
{
	return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
}

function IsEmpty(aFieldID) 
{
	if ((document.getElementByID(aFieldID).value.length==0) || (document.getElementByID(aFieldID).value==null)) 
	{
		return true;
	}
	else
	{
		return false; 
	}
}	

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;
}

function autoTab( origID, destID )
{
	//alert( "autoTab");
	if ( document.getElementById( origID ).getAttribute && document.getElementById( origID ).value.length==document.getElementById( origID ).getAttribute( "maxlength" ))
	{
		document.getElementById( destID ).focus();
	}
}
