function validate()
{
	var theForm = document.residenceForm;
	errorMsg = "";
	noErrors = true;

	var numValue = theForm.r_country.value - 0;

	switch (numValue)
	{
		case 0:
			if (noErrors) {
				errorMsg = "Please select your Country of Residence";
				theForm.r_country.focus();
				noErrors = false;
			}
		  break;
		case 2:
			if(theForm.ccode.value !=213) {		
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
		  break;
		case 3:
			if(theForm.ccode.value !=376) {		
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 4:
			if(theForm.ccode.value !=244) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 5:
			if(theForm.ccode.value !=1264) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}	
			break;
		case 6:
			if(theForm.ccode.value !=1268) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}	
			break;
		case 7:
			if(theForm.ccode.value !=599) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}	
			break;
		case 8:
			if(theForm.ccode.value !=54) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 9:
			if(theForm.ccode.value !=297) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 10:
			if(theForm.ccode.value !=247) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 11:
			if(theForm.ccode.value !=61) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 12:
			if(theForm.ccode.value !=43) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 13:
			if(theForm.ccode.value !=351) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 14:
			if(theForm.ccode.value !=1242) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 15:
			if(theForm.ccode.value !=973) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 16:
			if(theForm.ccode.value !=880) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 17:
			if(theForm.ccode.value !=1246) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 18:
			if(theForm.ccode.value !=32) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 19:
			if(theForm.ccode.value !=501) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 20:
			if(theForm.ccode.value !=1441) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 21:
			if(theForm.ccode.value !=591) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 22:
			if(theForm.ccode.value !=387) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 23:
			if(theForm.ccode.value !=267) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 24:
			if(theForm.ccode.value !=55) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 25:
			if(theForm.ccode.value !=673) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 26:
			if(theForm.ccode.value !=359) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 27:
			if(theForm.ccode.value !=257) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 28:
			if(theForm.ccode.value !=855) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 29:
			if(theForm.ccode.value !=237) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 30:
			if(theForm.ccode.value !=1) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 31:
			if(theForm.ccode.value !=34) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 32:
			if(theForm.ccode.value !=1345) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 33:
			if(theForm.ccode.value !=56) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 34:
			if(theForm.ccode.value !=86) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 35:
			if(theForm.ccode.value !=7) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 36:
			if(theForm.ccode.value !=57) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 37:
			if(theForm.ccode.value !=242) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 38:
			if(theForm.ccode.value !=243) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 39:
			if(theForm.ccode.value !=682) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 40:
			if(theForm.ccode.value !=506) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 41:
			if(theForm.ccode.value !=225) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 42:
			if(theForm.ccode.value !=385) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 43:
			if(theForm.ccode.value !=53) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 44:
			if(theForm.ccode.value !=357) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 45:
			if(theForm.ccode.value !=42) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 46:
			if(theForm.ccode.value !=45) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 47:
			if(theForm.ccode.value !=253) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 48:
			if(theForm.ccode.value !=1809) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 49:
			if(theForm.ccode.value !=1809) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 50:
			if(theForm.ccode.value !=593) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 51:
			if(theForm.ccode.value !=20) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 52:
			if(theForm.ccode.value !=503) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 53:
			if(theForm.ccode.value !=251) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 54:
			if(theForm.ccode.value !=500) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 55:
			if(theForm.ccode.value !=298) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 56:
			if(theForm.ccode.value !=679) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 57:
			if(theForm.ccode.value !=358) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 58:
			if(theForm.ccode.value !=33) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 59:
			if(theForm.ccode.value !=594) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 60:
			if(theForm.ccode.value !=689) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 61:
			if(theForm.ccode.value !=241) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 62:
			if(theForm.ccode.value !=220) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 63:
			if(theForm.ccode.value !=49) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 64:
			if(theForm.ccode.value !=350) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 65:
			if(theForm.ccode.value !=30) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 66:
			if(theForm.ccode.value !=299) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 67:
			if(theForm.ccode.value !=1809) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 68:
			if(theForm.ccode.value !=590) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 69:
			if(theForm.ccode.value !=671) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 70:
			if(theForm.ccode.value !=502) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 71:
			if(theForm.ccode.value !=224) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 72:
			if(theForm.ccode.value !=592) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 73:
			if(theForm.ccode.value !=509) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 74:
			if(theForm.ccode.value !=504) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 75:
			if(theForm.ccode.value !=852) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 76:
			if(theForm.ccode.value !=36) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 77:
			if(theForm.ccode.value !=34) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 78:
			if(theForm.ccode.value !=354) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 79:
			if(theForm.ccode.value !=91) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 80:
			if(theForm.ccode.value !=62) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 81:
			if(theForm.ccode.value !=98) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 82:
			if(theForm.ccode.value !=964) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 83:
			if(theForm.ccode.value !=353) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 84:
			if(theForm.ccode.value !=972) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 85:
			if(theForm.ccode.value !=39) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 86:
			if(theForm.ccode.value !=1876) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 87:
			if(theForm.ccode.value !=81) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 88:
			if(theForm.ccode.value !=962) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 89:
			if(theForm.ccode.value !=254) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 90:
			if(theForm.ccode.value !=686) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 91:
			if(theForm.ccode.value !=82) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 92:
			if(theForm.ccode.value !=965) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 93:
			if(theForm.ccode.value !=266) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 94:
			if(theForm.ccode.value !=218) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 95:
			if(theForm.ccode.value !=4175) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 96:
			if(theForm.ccode.value !=352) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 97:
			if(theForm.ccode.value !=853) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 98:
			if(theForm.ccode.value !=389) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 99:
			if(theForm.ccode.value !=261) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 100:
			if(theForm.ccode.value !=35191) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 102:
			if(theForm.ccode.value !=34) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 103:
			if(theForm.ccode.value !=265) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 104:
			if(theForm.ccode.value !=60) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 105:
			if(theForm.ccode.value !=980) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 106:
			if(theForm.ccode.value !=223) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 107:
			if(theForm.ccode.value !=356) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 108:
			if(theForm.ccode.value !=670) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 109:
			if(theForm.ccode.value !=596) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 110:
			if(theForm.ccode.value !=222) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 111:
			if(theForm.ccode.value !=230) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 112:
			if(theForm.ccode.value !=52) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 113:
			if(theForm.ccode.value !=691) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 114:
			if(theForm.ccode.value !=34) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 115:
			if(theForm.ccode.value !=377) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 116:
			if(theForm.ccode.value !=1664) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 117:
			if(theForm.ccode.value !=212) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 118:
			if(theForm.ccode.value !=264) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 119:
			if(theForm.ccode.value !=674) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 120:
			if(theForm.ccode.value !=977) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 121:
			if(theForm.ccode.value !=31) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 122:
			if(theForm.ccode.value !=1869) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 123:
			if(theForm.ccode.value !=687) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 124:
			if(theForm.ccode.value !=64) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 125:
			if(theForm.ccode.value !=505) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 126:
			if(theForm.ccode.value !=227) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 127:
			if(theForm.ccode.value !=234) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 128:
			if(theForm.ccode.value !=683) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 129:
			if(theForm.ccode.value !=672) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 130:
			if(theForm.ccode.value !=47) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 131:
			if(theForm.ccode.value !=968) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 132:
			if(theForm.ccode.value !=92) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 133:
			if(theForm.ccode.value !=507) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 134:
			if(theForm.ccode.value !=675) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 135:
			if(theForm.ccode.value !=595) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 136:
			if(theForm.ccode.value !=51) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 137:
			if(theForm.ccode.value !=63) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 138:
			if(theForm.ccode.value !=48) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 139:
			if(theForm.ccode.value !=351) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 140:
			if(theForm.ccode.value !=1787) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 141:
			if(theForm.ccode.value !=974) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 142:
			if(theForm.ccode.value !=262) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 143:
			if(theForm.ccode.value !=230) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 144:
			if(theForm.ccode.value !=40) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 145:
			if(theForm.ccode.value !=250) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 146:
			if(theForm.ccode.value !=1809) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 147:
			if(theForm.ccode.value !=1758) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 148:
			if(theForm.ccode.value !=508) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 149:
			if(theForm.ccode.value !=1809) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 150:
			if(theForm.ccode.value !=684) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 151:
			if(theForm.ccode.value !=685) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 152:
			if(theForm.ccode.value !=378) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 153:
			if(theForm.ccode.value !=966) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 154:
			if(theForm.ccode.value !=221) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 155:
			if(theForm.ccode.value !=381) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 156:
			if(theForm.ccode.value !=248) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 157:
			if(theForm.ccode.value !=232) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 158:
			if(theForm.ccode.value !=65) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 159:
			if(theForm.ccode.value !=677) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 160:
			if(theForm.ccode.value !=252) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 161:
			if(theForm.ccode.value !=27) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 162:
			if(theForm.ccode.value !=34) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 163:
			if(theForm.ccode.value !=94) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 164:
			if(theForm.ccode.value !=249) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 165:
			if(theForm.ccode.value !=597) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 166:
			if(theForm.ccode.value !=268) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 167:
			if(theForm.ccode.value !=46) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 168:
			if(theForm.ccode.value !=41) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 169:
			if(theForm.ccode.value !=963) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 170:
			if(theForm.ccode.value !=886) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 171:
			if(theForm.ccode.value !=255) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 172:
			if(theForm.ccode.value !=66) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 173:
			if(theForm.ccode.value !=228) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 174:
			if(theForm.ccode.value !=676) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 175:
			if(theForm.ccode.value !=1868) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 176:
			if(theForm.ccode.value !=216) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 177:
			if(theForm.ccode.value !=90) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 178:
			if(theForm.ccode.value !=1649) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 179:
			if(theForm.ccode.value !=256) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 180:
			if(theForm.ccode.value !=95) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 181:
			if(theForm.ccode.value !=971) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 182:
			if(theForm.ccode.value !=44) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 183:
			if(theForm.ccode.value !=598) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 184:
			if(theForm.ccode.value !=1) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 185:
			if(theForm.ccode.value !=678) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 186:
			if(theForm.ccode.value !=39) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 187:
			if(theForm.ccode.value !=58) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 188:
			if(theForm.ccode.value !=84) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 189:
			if(theForm.ccode.value !=1809) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 190:
			if(theForm.ccode.value !=1340) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 191:
			if(theForm.ccode.value !=967) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 192:
			if(theForm.ccode.value !=260) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		case 193:
			if(theForm.ccode.value !=263) {
				errorMsg = "The selected country and corresponding country code do not match.\n Please re-enter.";
				theForm.r_country.focus();
				theForm.ccode.value="";
				noErrors = false;
			}
			break;
		default:
			errorMsg = "No telephone country code entered.\n Please enter.";
			theForm.r_country.focus();
			theForm.ccode.value="";
			noErrors = false;
	}
	if (!noErrors) {
		alert(errorMsg);
		return false;
	}

}