
/*function spam_bt()
{						    
		obj=document.getElementById('divc');	
		if(obj.style.display==\"block\")obj.style.display=\"none\";
		else obj.style.display=\"block\";											
}
*/						
function getClientWidth()
{
		return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight()
{
		return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}
function getBodyScrollTop()
{
		return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
}

function getBodyScrollLeft()
{
		return self.pageXOffset || (document.documentElement && document.documentElement.scrollLeft) || (document.body && document.body.scrollLeft);
}
						
function getClientCenterX()
{
		return parseInt(getClientWidth()/2)+getBodyScrollLeft();
}
function getClientCenterY()
{
		return parseInt(getClientHeight()/2)+getBodyScrollTop();
}
/*function getDocumentHeight()
{
		return (document.body.scrollHeight > document.body.offsetHeight)?document.body.scrollHeight:document.body.offsetHeight;
}
*/						
/*function getDocumentWidth()
{
		return (document.body.scrollWidth > document.body.offsetWidth)?document.body.scrollWidth:document.body.offsetWidth;
}
*/
function setdiv(a)
{
		x=getClientCenterX();
		y=getClientCenterY();
		obj=document.getElementById('div_spam');	
		if(a)
		{
			obj.style.display="none";
			return 0;
		}
		if(obj.style.display=="block")obj.style.display="none";
		else obj.style.display="block";		
		obj.style.top=y-80;
		obj.style.left=x-220;
		obj.style.width=493;								
}