//function that accepts only numeric characters from the phone field

var nav = window.Event ? true : false;

function acceptNum(evt)
{	
	var key = nav ? evt.which : evt.keyCode;	
	return (key <= 13 || (key >= 48 && key <= 57));
}


//function that validates cellphone numer and selected operator from form
function validar(formulario)
{
	
	if(formulario.select_operator.selectedIndex == 0)
	{
		alert("Please choose an operator from the list");
		formulario.select_operator.focus();
		return false;
	}
			
	if (formulario.telephone.value.length < 8 || formulario.telephone.value.length > 20)
	{
		alert("Please enter a valid cellphone number");
		formulario.telephone.focus();

		return false;
 	}
 	
 	
 	 
}



