<!--
function openWindow(url, name, width, height, left, top, center)
{
	var leftPos;
	var topPos;
	
	leftPos = left;
	topPos = top;

	if (center == true)
	{
		leftPos = Math.round((screen.width - width) / 2);
		topPos = Math.round((screen.height - height) / 2);
	}
	
	return window.open(url, name, 'left=' + leftPos + ',top=' + leftPos + ',height=' + height + ',width=' + width + ',status=no');
}

function checkMaxLength(Object, MaxLen)
{
	var obj = xGetElementById("lblCounter");

	if(Object.value.length > MaxLen)
	{     
		Object.value = Object.value.substring(0, MaxLen);
	}
	else
	{
		if (obj != null)
		{
			obj.innerHTML = (MaxLen - Object.value.length) + " chars left";
		}
	}
}
//-->