//-----------------------------------------------------------------------//
function validPhone(sPhone)                                              //
//-----------------------------------------------------------------------//
//          function name: validPhone()                                  //
//             created by: Dustin Brown                                  //
//             created on: 2/20/2001                                     //
//                purpose: determine if 'sPhone' is a valid phone number.//
//             parameters: 'sPhone' - the phone number to be evaluated.  //
//                returns: true if 'sPhone' is a valid 10 digit phone    //
//                         number; false if it is not.                   //
// include files required: stripChars.js                                 //
//-----------------------------------------------------------------------//
{
	//remove all non-numeric characters from 'sPhone'
	sPhone=stripChars(sPhone);

	//all remaining characters are numbers, length must be 10
	return (sPhone.length==10);
}
//End function validPhone()----------------------------------------------//