function showInfoBox(title,content) 
{
	$('infoBox').style.visibility='visible';
	$('infoBoxHeadingText').innerHTML=title;
	$('infoBoxContent').innerHTML=content;
	setInfoBox();
}

function closeInfoBox() 
{
	$('infoBox').style.visibility='hidden';
	setInfoBox();
}

window.onscroll = function()
{
	setInfoBox();
}

function setInfoBox()
{
	if( window.XMLHttpRequest )
	{
		var xtop = 131;
		
		if($('infoBox'))
		{
			var top = Number(String($('infoBox').style.marginTop).substring(0, String($('infoBox').style.marginTop).indexOf('px')));
			
			try {
				if(document.body.scrollTop > 0) {
					var difference = (document.body.scrollTop + xtop);
				} else if(document.documentElement.scrollTop > 0) {
					var difference = (document.documentElement.scrollTop + xtop);
				} else {
					var difference = xtop;
				}
			} catch(e) {
				var difference = xtop;
			}
			
			difference = difference - top;
			$('infoBox').style.marginTop=top+difference+'px';
/*			if(difference > 0) {
				$('infoBox').style.marginTop = (top + Math.abs(Math.ceil(difference / 10))) + 'px';
			} else if(difference < 0) {
				$('infoBox').style.marginTop = (top - Math.abs(Math.ceil(difference / 10))) + 'px';
			}
*/		}
	}


}


function showCommentEdit(status) 
{
    $('commentfooterWrite').style.visibility='visible';
	$('commentfooterWrite').style.display='block';
	
}