function OpenWindow( URL, WinName, Features )
{
	popup = window.open( URL, WinName, Features );
	popup.focus();
}

function OpenWindowThisReturn( URL, WinName, Features )
{
	popup = window.open( URL, WinName, Features );
	popup.focus();
	return popup;
}

function getEl(nm)
{
	var el = document.getElementById?document.getElementById(nm):document.all(nm);
	if (el && el.tagName.toUpperCase() == "META"){
   		var els = document.getElementsByName(nm);
   		for (var i = 0; i < els.length; i++)
   		if (els[i].tagName.toUpperCase() != "META")
   			return els[i];
  	}
	return el;
}
function htmlspecialchars(v)
{
	v = v.replace(/&/g,"&amp;");
	v = v.replace(/\"/g, "&quot;");
	v = v.replace(/\'/g, "&#039;");
	v = v.replace(/</g, "&lt;");
	v = v.replace(/>/g, "&gt;");
	return v;
}