<!--
	var userAgent = window.navigator.userAgent;
	var sis_isIE = (userAgent.indexOf("MSIE") >=0);
	var sis_isIE5 = (userAgent.indexOf("MSIE 5.0") >=0);
	var sis_isIE6 = (userAgent.indexOf("MSIE 6.0") >=0);
	var sis_isIE7 = (userAgent.indexOf("MSIE 7.0") >=0);

	var sisActiveModalWin;

	function sisModalDialogShow(url,width,height)//moz
	{
		var left = screen.availWidth/2 - width/2;
		var top = screen.availHeight/2 - height/2;
		sisActiveModalWin = window.open(url, "", "width="+width+"px,height="+height+"px,left="+left+",top="+top+",scrollbars=no,status=no;resizeable=no");
		window.onFocus = function(){if (sisActiveModalWin.closed){sisActiveModalWin.focus();};};
	}

	function sisOpenModalWindow(url, name, width, height, left, top, center)
	{
		var cent = "No";
		var ret;
		
		if (center == true)
			cent = "Yes"
		
		if(navigator.appName.indexOf('Microsoft')!=-1)
		{
			ret = window.showModalDialog(url,window,"dialogWidth:" + width + "px;dialogHeight:" + height + "px;center:" + cent + ";help:No;resizable:No;status:No;scroll:No");
			return ret;
		}
		else
		{
			sisModalDialogShow(url, width, height);
		}

	}

	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";
			}
		}
	}

	function isUndefined(elem)
	{
		return typeof elem == "undefined";
	}
//-->
