// Function to display Add Comment Box
function show_add_comment()
{

   if(typeof(window.innerWidth)=="number")
   {
    //Non-IE
    commentWidth=window.innerWidth;
    commentHeight=window.innerHeight;
  }
  else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
  {
    //IE 6+ in 'standards compliant mode'
    commentWidth=document.documentElement.clientWidth;
    commentHeight=document.documentElement.clientHeight;
  }
  else if(document.body && (document.body.clientWidth || document.body.clientHeight))
  {
    //IE 4 compatible
    commentWidth=document.body.clientWidth;
    commentHeight=document.body.clientHeight;
  }

  commentWidth=parseInt(commentWidth/2);
  commentHeight=parseInt(commentHeight/2);
  commentWidth=commentWidth-180;
  commentHeight=commentHeight-190;
  document.getElementById("comment").style.position="fixed";
  document.getElementById("comment").style.top=commentHeight+"px";
  document.getElementById("comment").style.left=commentWidth+"px";
  document.getElementById("comment").style.background="#ffffff";
  document.getElementById("comment").style.visibility="visible";
}
function cancel_add_comment()
{
  document.getElementById("comment").style.position="absolute";
  document.getElementById("comment").style.visibility="hidden";
}
