function ExpandNewsItem(ItemID){
  HImage=document.getElementById('msg_expander_'+ItemID);
  HRow=document.getElementById('news_body_row_'+ItemID);
  if (!HRow){
    return;
  }
  if (HRow.style.display == "block"){
    HRow.style.display = 'none';
    if (!HImage){
      return;
    }
    HImage.src="/img/expand.gif";
  } else {
    HRow.style.display = 'block';
    if (!HImage){
      return;
    }
    HImage.src="/img/collapse.gif";
  }
}

function ServPageWin(h,w,page){
	myin=open(page,'ServPageWin1','height='+h+',width='+w+',fullscreen=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=0,top=0');
	if(!myin.opener) {myin.opener=self;}
	myin.focus();
}
function x_window(imgSrc) {
	margin = 20;
	x_win = open("", "x_win", "resizable,width=100,height=100,top=0,left=0");
	img = new Image();
	img.onload = function() {
		x_win.resizeTo(w = img.width + margin, h = img.height + margin*3);
		x_win.moveTo( (document.body.clientWidth - w) / 2 , (document.body.clientHeight - h) / 2);
		if( img.outerHTML ) x_win.document.write( img.outerHTML );
		else x_win.document.body.appendChild(img);
	}
	img.src = imgSrc;
}


