function ValidateEmail(obj)

{

            var p;

            

            if (obj.value.length == 0)

            {

                        return true; //Catch with required validation.

            }

            else 

            {

                        p = obj.value.indexOf('@');

                        if ((p < 1) || (p == (obj.value.length - 1)))

                        {

                                    alert('Please enter a valid email address.');

                                    obj.focus();

                                    return false;

                        }

            }

}

                        

function ValidateNumeric(obj)

{

            var p;

            

            if (obj.value.length == 0)

            {

                        return true; //Catch with required validation.

            }

            else if (isNaN(obj.value))

            {

                        alert('Please use numbers only.  No hyphens or spaces.');

                        obj.focus();

                        return false;

            }
            else
            	return true;

}

 

function ValidateInt(obj)

{

            var i, isint;

            

            isint = true;

            if (isNaN(obj.value))

            {

                        isint = false;

            }

            else 

            {

                        p = obj.value.indexOf('.');

                        if (p>=0)

                        {

                                    isint = false;

                        }

            }

            

            if (isint)

                        return true;

            else

            {

                        alert('Please enter an Integer.');

                        obj.focus();

                        return false;

            }

}

 

