function ValidateIsDutchForm(s){
     // Check for correct phone number
    var rePhoneNumber = /(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{10}$)/;
 
     if (!rePhoneNumber.test(s)) {
          alert("Phone number is not valid");
          return false;
     }
	return true;
}
function ValidateForm(){
	var _country = $("country");
	if(_country != null)
	{
		_country = _country.value;
		var _phone = $("telephone").value;
		if(_country == "NL" && !ValidateIsDutchForm(_phone))
		{
			return false;
		}
		return true
	}
	return true;
 }
/*
function ValidateForm(){
	/// phone validation start
    var _country = $("country");
        
	if(_country != null){
		_country = _country.value;
		alert('country code is: ' + _country);
		
		var _phone = $("telephone").value;
		var rePhoneNumber = /(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{10}$)/;
		if((_country == "NL" && !rePhoneNumber.test(_phone)))
		{
			alert("Phone number is not valid");	
			return;
		}
	}
	/// phone validation end
}
*/
