// JavaScript Document

function xGetElementById(e)
{
  if (typeof(e) != 'string') return e;
  if (document.getElementById) e = document.getElementById(e);
  else if (document.all) e = document.all[e];
  else e = null;
  return e;
}

function CommentPreviewVanish()
{
	var element = xGetElementById("cmntprevvanish");
	element.style.display = "none";
	document.location.href="#cmntform";
}

function NewPopupWindow(url, width, height)
{
	var open = window.open(url, 'wndpopup', 'width=' + width + ',height=' + height + ',menubar=no,status=no,location=no');
	open.moveTo((screen.availWidth - width) / 2, (screen.availHeight - height) / 2 + 10);
	open.focus();
}

