function check()
{
    var fnm = "";
    function checkf(fid)
    {
        fnm = document.getElementById(fid);
        if (fnm)
        {
            if (fnm.value.length < 2)
            {
                fnm.focus();
                return false;
            }
            else
            {
                return true;
            }
        }
    }
    return 
    checkf("country") && 
    checkf("city") &&
    checkf("address") &&
    checkf("post");
}
function check()
{
    var fnm = "";
    function checkf(fid)
    {
        fnm = document.getElementById(fid);
        if (fnm)
        {
            if (fnm.value.length < 2)
            {
                fnm.focus();
                return false;
            }
            else
            {
                return true;
            }
        }
    }
    if !checkf("country") return false;
    if !checkf("city") return false;
    if !checkf("address") return false;
    if !checkf("post") return false;
    return true;
}