function showTip(objTarget, imageTxt)
{
    var positionsXY = [0, 0];
    positionsXY = getPosition(objTarget);
    //alert( positionsXY[0] );

    var tipDiv = document.createElement("span");
    tipDiv.id = "tipDiv"+objTarget.id;
    tipDiv.className = "tipDiv";
    tipDiv.style.position = "absolute";
    tipDiv.style.left = 113+"px" ;
    tipDiv.style.top = positionsXY[1]-175+"px" ;
    tipDiv.appendChild(document.createTextNode(imageTxt));
    document.getElementById("allReviews").appendChild(tipDiv);
  /*
    //show comment bar
    var comment = document.createElement("div");
    comment.id = "comment"+objTarget.id;
    comment.className = "commentsDiv";
    //comment.onclick = reviewComment;
    comment.style.position = "absolute";
    comment.style.left = 15+"px";
    comment.style.top = positionsXY[1]-120+"px";
    //comment.appendChild(document.createTextNode(imageTxt));
    document.getElementById("allReviews").appendChild(comment);
    */
}
function hideTip(objTarget)
{ 
    //var target = getEventTarget(event);
  
    var tipDiv = document.getElementById("tipDiv"+objTarget.id);
    document.getElementById("allReviews").removeChild(tipDiv);
    
    //hide comment bar
    //var comment = document.getElementById("comment"+objTarget.id);
    //document.getElementById("allReviews").removeChild(comment);
    
}

function getPosition(theElement)
{
    var positionX = 0;
    var positionY = 0;
    
    while (theElement != null)
    {
        positionX += theElement.offsetLeft;
        positionY += theElement.offsetTop;
        theElement = theElement.offsetParent;
    }
    
    return [positionX, positionY];
}
