function rateImg(rating,imgId,totmem,totrate,catagory)
{
current_rate =rating+totrate;
mem = totmem+1;
sum = current_rate/mem;
result = sum.toFixed(1)
i = new Image();
i.src= 'https://www.floridaholidayreview.com/florida-realestate/ratings/rating_insert.php?rate='+rating+'&id='+ imgId ;
rating = result * 25;
document.getElementById('current-rating'+imgId+''+catagory+'').style.width = rating+'px';
document.getElementById('ratelinks'+imgId+''+catagory+'').style.display = 'none';
document.getElementById('showresult'+catagory+'').style.display = 'none';
document.getElementById('ratingtext'+imgId+''+catagory+'').innerHTML= 'Thank you for your vote!
'+ result +'/5 -'+ mem +'vote(s)';
}
document.write('