function units(num, cases) {
    num = Math.abs(num);
    
    var word = '';
    
    if (num.toString().indexOf('.') > -1) {
        word = cases.gen;
    } else { 
        word = (
            num % 10 == 1 && num % 100 != 11 
                ? cases.nom
                : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) 
                    ? cases.gen
                    : cases.plu
        );
    }
    
    return word;
}


function read_myrss(mypipeid, div_id)
{
	var $j = jQuery.noConflict();


		var res = "";
    $j.get("http://ilyapetrov.com/potok/potok.php?json="+mypipeid, function(ohdata, textStatus) {
	if (textStatus == "success")
	{
		res = ohdata;
	} else {
            res = "Sorry, not today!";
	}

        $j("#"+div_id).html(res);

    }, 'text'); }
