if (this.outerWidth<900)
	{
	document.getElementById("bbody").style.fontSize="80%";
	}	
		

this.onresize=function()
{
	if (this.outerWidth<900)
		{
		document.getElementById("bbody").style.fontSize="80%";
		}		
	if (this.outerWidth>900)
		{
		document.getElementById("bbody").style.fontSize="100%";	
		}
}

function ChangeButImg(action, id)
{
  if (action == 'down') {    
    src = id+'_down.gif';
    document.getElementById(id).style.backgroundImage = "url('/img/"+src+"')";
  } 
  else if (action == 'up') {
    src = id+'.gif';
    document.getElementById(id).style.backgroundImage = "url('/img/"+src+"')";
  }
}

function PostRequest(URL, who, post_id)
{
  //alert(who);
  var temp=document.createElement("form");
  temp.action=URL;
  temp.method="POST";
  temp.style.display="none";
  
  var opt=document.createElement("textarea");
  opt.name='who';
  opt.value=who;    
  temp.appendChild(opt);
  var opt=document.createElement("textarea");
  opt.name='post_id';
  opt.value=post_id; 
  temp.appendChild(opt);

  document.body.appendChild(temp);
  temp.submit();

  return temp;
}