function ajaxContent(params)
{
    response=$.ajax(
    {
       type: "POST",
       url: "/index.php?p=ajax",
       data: params,
       async: false
    }).responseText;

    return response;
}

function validator(object, msgObject){
    var validatorId=object.attr("rel").replace("validation","");
    var value=object.val();
    var message_index=1;
    
    if ( !isNaN(parseInt(validation[validatorId][0])) ){
        if (parseInt(validation[validatorId][0])<=value.length){
            message_index=2;
        }
    }
    else{
        var reg_exp = new RegExp(validation[validatorId][0]);
        if (value.match(reg_exp)){
            message_index=2;
        }
    }
    msgObject.html(validation[validatorId][message_index]);
}

function redirectLink(linkObject, logged)
{
    newsLink=$(linkObject).attr("href");
    if (logged){
        return true;
    }
    else{
        tb_show('', '/index.php?p=ajax&func=login&height=290&width=240&modal=false','');
        return false;
    }
}

function changeCountry(divCounty, divPlace)
{
    
}

function changeCounty(divCounty, divPlace)
{

}