function _LoadZip1Ex()
{
var country1 = document.Form1.ddlCountry1.options[document.Form1.ddlCountry1.selectedIndex].value
document.Form1.tbxZip1Ex.value = _loadZipEx(country1)
}

function _LoadZip2Ex()
{
var country2 = document.Form1.ddlCountry2.options[document.Form1.ddlCountry2.selectedIndex].value
document.Form1.tbxZip2Ex.value = _loadZipEx(country2)
}

function _LoadZip3Ex()
{
var country3 = document.Form1.ddlCountry3.options[document.Form1.ddlCountry3.selectedIndex].value
document.Form1.tbxZip3Ex.value = _loadZipEx(country3)
}

function _loadZipEx(country)
{
if ((country == 1012) || (country == 1015) || (country == 1022) || (country == 1023) || (country == 1026) || (country == 1031) || (country == 1032) || (country == 1038) || (country == 1045) || (country == 1047) || (country == 1052) || (country == 1059) || (country == 1064) || (country == 1067) || (country == 1068) || (country == 1069))
{
    return "12345";
          }
else if ((country == 1025) || (country == 1057) || (country == 1058))
{
    return "123456";
          }
else if ((country == 1019) || (country == 1016) || (country == 1020) || (country == 1021) || (country == 1024) || (country == 1027) || (country == 1029) || (country == 1030) || (country == 1034) || (country == 1041) || (country == 1042) || (country == 1043) || (country == 1044) || (country == 1048) || (country == 1049) || (country == 1017) || (country == 1050) || (country == 1051) || (country == 1053) || (country == 1054) || (country == 1056) || (country == 1062) || (country == 1063) || (country == 1070))
{
    return "1234";
          }
else if ((country == 1035) || (country == 1066) || (country == 1037))
{
    return "123";
          }
else if (country == 1013) //Canada
{
    return "A1B 2C3";
          }
else if (country == 1014) //UK
{
    return "HG1 5AW";
          }
else if ((country == 1028) || (country == 1033) || (country == 1061) || (country == 1065))
{
    return "123 12";
          }
else if (country == 1018)
{
    return "A1234";
          }
else if (country == 1036)
{
    return "123 123";
          }
else if (country == 1039)
{
    return "123-1234";
          }
else if (country == 1040)
{
    return "123-123";
          }
else if (country == 1046)
{
    return "first ABC only";
          }
else if (country == 1055)
{
    return "12-123";
          }
else if (country == 1060)
{
    return "12 (only sector)";
          }
else          
{
return "check help";
}
}


function _checkZip1(val1)
{
var country1 = document.Form1.ddlCountry1.options[document.Form1.ddlCountry1.selectedIndex].value
{
if (document.Form1.tbxZip1.value == "") return 1;
else if (_checkZip(country1, document.Form1.tbxZip1.value)) return 1;
else
return 0;
}
}

function _checkZip2(val2)
{
var country2 = document.Form1.ddlCountry2.options[document.Form1.ddlCountry2.selectedIndex].value
{
if (document.Form1.tbxZip2.value == "") return 1;
else if (_checkZip(country2, document.Form1.tbxZip2.value)) return 1;
else
return 0;
}
}

function _checkZip3(val3)
{
var country3 = document.Form1.ddlCountry3.options[document.Form1.ddlCountry3.selectedIndex].value
{
if (document.Form1.tbxZip3.value == "") return 1;
else if (_checkZip(country3, document.Form1.tbxZip3.value)) return 1;
else
return 0;
}
}

function _checkZip(country, zip)
{
if ((country == 1012) || (country == 1015) || (country == 1022) || (country == 1023) || (country == 1026) || (country == 1031) || (country == 1032) || (country == 1038) || (country == 1045) || (country == 1047) || (country == 1052) || (country == 1059) || (country == 1064) || (country == 1067) || (country == 1068) || (country == 1069))
{
var reZip5d =  /^\d{5}$/;
var value
    value = reZip5d.test(zip); // set to variable
    return value;
          }
else if ((country == 1025) || (country == 1057) || (country == 1058))
{
var reZip6d =  /^\d{6}$/;
var value
    value = reZip6d.test(zip); // set to variable
    return value;
          }
else if ((country == 1019) || (country == 1016) || (country == 1020) || (country == 1021) || (country == 1024) || (country == 1027) || (country == 1029) || (country == 1030) || (country == 1034) || (country == 1041) || (country == 1042) || (country == 1043) || (country == 1044) || (country == 1048) || (country == 1049) || (country == 1017) || (country == 1050) || (country == 1051) || (country == 1053) || (country == 1054) || (country == 1056) || (country == 1062) || (country == 1063) || (country == 1070))
{
var reZip4d =  /^\d{4}$/;
var value
    value = reZip4d.test(zip); // set to variable
    return value;
          }
else if ((country == 1035) || (country == 1066) || (country == 1037))
{
var reZip3d =  /^\d{3}$/;
var value
    value = reZip3d.test(zip); // set to variable
    return value;
          }
else if (country == 1013) //Canada
{
var reZipCan =  /^[ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d$/
var value
    value = reZipCan.test(zip); // set to variable
    return value;
          }
else if (country == 1014) //UK
{
var reZipUK =  /^[A-Z]{1,2}\d[A-Z\d]? \d[ABD-HJLNP-UW-Z]{2}$/
var value
    value = reZipUK.test(zip); // set to variable
    return value;
          }
else if ((country == 1028) || (country == 1033) || (country == 1061) || (country == 1065))
{
var reZip32 =  /^\d{3} \d{2}$/ 
var value
    value = reZip32.test(zip); // set to variable
    return value;
          }
else if (country == 1018)
{
var reZipArg =  /^[A-Z]\d{4}$/ 
var value
    value = reZipArg.test(zip); // set to variable
    return value;
          }
else if (country == 1036)
{
var reZipInd =  /^\d{3} \d{3}$/ 
var value
    value = reZipInd.test(zip); // set to variable
    return value;
          }
else if (country == 1039)
{
var reZipJap =  /^\d{3}-\d{4}$/ 
var value
    value = reZipJap.test(zip); // set to variable
    return value;
          }
else if (country == 1040)
{
var reZipKor =  /^\d{3}-\d{3}$/ 
var value
    value = reZipKor.test(zip); // set to variable
    return value;
          }
else if (country == 1046)
{
var reZipMlt =  /^[A-Z]{3}$/ 
var value
    value = reZipMlt.test(zip); // set to variable
    return value;
          }
else if (country == 1055)
{
var reZipPol =  /^\d{2}-\d{3}$/ 
var value
    value = reZipPol.test(zip); // set to variable
    return value;
          }
else if (country == 1060)
{
var reZipSng =  /^\d{2}$/ 
var value
    value = reZipSng.test(zip); // set to variable
    return value;
          }
else          
{
    return true;
}
}