function PhoneNumberValidationModule(Received_PhoneNumber_To_Test)
{
/////////////////////
// BUILD 001 ////////
/////////////////////

//Different Countries have different Phone Number formats, it is important to make provision for alternate configurations & so only disallowed characters are sought.
//The Characters A-Z are not sought as Alpha-Numeric versions of Phone Numbers are valid i.e. 0800 SAMPLE equates to (0800) 726753.
//The - Character is not sought as Alpha-Numeric versions of Phone Numbers may contain this Character i.e. 0800-SAMPLE equates to (0800) 726753.
//The + Character is not sought as international Dialing-Codes use this Character to designate the Country prefix e.g. +441234 567890.
//The () Characters are not sought as local Dialing-Codes use these Characters to designate Area-specific prefies e.g. (01234) 567890.
//The \ Character is not sought as it is not possible to test for the \ Character as it is reserved.

//The 'BannedCharacters' Array contains the characters which are not allowed within a Phone Number.
	BannedCharacters=new Array("`","=","¬","!",'"',"£","$","%","^","*","_","[","]","#","{","}","~",";",":","@",",","/","<",">","?","|")






//Set the variable 'Final_Return_Result'. If this becomes '0' at any time then the Phone Number has failed a test and even if it passes all other tests, the overall result will be a fail.
	Final_Return_Result=1






//A Phone Number must be at least 8 characters in length. The smallest possible Name is 'Xi' (or similar).
	if(Received_PhoneNumber_To_Test.length<2)
	{
		Final_Return_Result=0
	}






//Here the whole of the Name is checked to see if it contains any invalid characters such as '£' or '$' etc. etc.
//This test is only performed if the Name has passed all previous tests. This is to prevent 'Dependency Errors' and to speed-up execution.
	if(Final_Return_Result!=0)
	{
		for(a=0;a<Received_PhoneNumber_To_Test.length;a++)
		{
			for(b=0;b<BannedCharacters.length;b++)
			{
				if(Received_PhoneNumber_To_Test.charAt(a)==BannedCharacters[b])
				{
					Final_Return_Result=0
				}
			}
		}
	}

return Final_Return_Result
}
