

    function validateKeywordRegionCountryStateToSearchForm( frm ) {

        if (!checkKeywords( frm, 'keywords', "Enter a keyword" )) return false;
        if (!checkPosInt( frm, 'region_to', "Enter a region" )) return false;
        if (!checkPosInt( frm, 'country_to', "Enter a country" )) return false;
        if (!checkPosInt( frm, 'state_to', "Enter a state" )) return false;
        return true;
    }

    function validateKeywordCountryStateToSearchForm( frm ) {

        if (!checkKeywords( frm, 'keywords', "Enter a keyword" )) return false;
        if (!checkPosInt( frm, 'country_to', "Enter a country" )) return false;
        if (!checkPosInt( frm, 'state_to', "Enter a state" )) return false;
        return true;
    }

    function validateCountryStateToSearchForm( frm ) {

        if (!checkCountry( frm, 'country_to', "Enter a country" )) return false;
        if (!checkPosInt( frm, 'state_to', "Enter a state" )) return false;
        return true;
    }

    function validateStateToSearchForm( frm ) {

        if (!checkPosInt( frm, 'state_to', "Enter a state" )) return false;
        return true;
    }

    function validateStateFromSearchForm( frm ) {

        if (!checkPosInt( frm, 'state_from', "Enter a state" )) return false;
        return true;
    }

function validateRegionCountryStateFromSearchForm( frm ) {

        if (!checkRegion( frm, 'region_from', "Enter a region" )) return false;
        if (!checkPosInt( frm, 'country_from', "Enter a country" )) return false;
        if (!checkPosInt( frm, 'state_from', "Enter a state" )) return false;
        return true;
    }

    function validateKeywordSearchForm( frm ) {

        if (!checkKeywords( frm, 'keywords', "Enter a keyword" )) return false;
        return true;
    }

    function validateKeywordCountryStateToRegionCountryStateFromSearchForm( frm ) {

        if (!checkKeywords( frm, 'keywords', "Enter a keyword" )) return false;
        if (!checkPosInt( frm, 'country_to', "Enter a country" )) return false;
        if (!checkPosInt( frm, 'state_to', "Enter a state" )) return false;
        if (!checkPosInt( frm, 'region_from', "Enter a region" )) return false;
        if (!checkPosInt( frm, 'country_from', "Enter a country" )) return false;
        if (!checkPosInt( frm, 'state_from', "Enter a state" )) return false;
        return true;
    }

    function validateKeywordCountryStateToCountryStateFromSearchForm( frm ) {

        if (!checkKeywords( frm, 'keywords', "Enter a keyword" )) return false;
        if (!checkPosInt( frm, 'country_to', "Enter a country" )) return false;
        if (!checkPosInt( frm, 'state_to', "Enter a state" )) return false;
        if (!checkPosInt( frm, 'country_from', "Enter a country" )) return false;
        if (!checkPosInt( frm, 'state_from', "Enter a state" )) return false;
        return true;
    }


