
var theMessage = "";
function checkForm(theform){
	var theForm = theform;
	var showAlert = false;
	if(IsNumeric(theForm.phone.value)){}else{showAlert = true;}
	if(theForm.phone.value==""|theForm.phone.value.length<8){showAlert = true;}

	if(showAlert){
		alert("Please fill in your complete Phone Number." + theMessage);
		theMessage = "";
		return false;
	}else{
		theForm.submit();
	}

}



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;
         }
      }
	if(!IsNumber){theMessage = "\n\nPlease enter only numeric values.";}
   return IsNumber;
   
   }