<!--
	function isMail(_email) {
		var emailReg = /^[a-z][a-z-_0-9\.]+@[a-z-_=>0-9\.]+\.[a-z]{2,3}$/i

		return emailReg.test(_email);
	}

	function putInputBad(inInput)
	{
		inInput.setAttribute('class', 'red');
	}

	function putInputOk(inInput)
	{
		inInput.setAttribute('class', 'normal');
	}

	function openWin(inUrl, inX, inY)
	{
		window.open(inUrl ,'' , 'width=' + inX + ', height=' + inY + ', scrollbars=yes, resizable=yes, scrolling=0, status=yes');
	}

	function captureMouse(inMousePos, inEvent)
	{
		if (document.all)
		{
			inMousePos['x'] = event.x;
			inMousePos['y'] = event.y;
		}
		else
		{
			inMousePos['x'] = inEvent.pageX;
			inMousePos['y'] = inEvent.pageY;
		}
	}

	function showSelTooltip(inDiv, inUrl, inMousePos, inAutHid, inLeft)
	{
		var htmlCont = loadXMLDoc(inUrl, false).responseText;

		document.getElementById(inDiv).innerHTML = htmlCont;
		if ((mousePos['y'] + 60) > window.innerHeight)
			document.getElementById(inDiv).style.top = (mousePos['y'] - 60) + 'px';
		else
			document.getElementById(inDiv).style.top = mousePos['y'] + 'px';
		document.getElementById(inDiv).style.left = (mousePos['x'] - inLeft) + 'px';

		document.getElementById(inDiv).style.display = 'block';

		if (inAutHid)
		{
			toolTipTim = setTimeout('hiddenToolTip(\'' + inDiv + '\')', 1000);
			document.getElementById(inDiv).setAttribute('onmouseout', 'window.clearTimeout(toolTipTim); toolTipTim = setTimeout(\'hiddenToolTip(\\\'' + inDiv + '\\\')\', 1000);');
		}
		else
			document.getElementById(inDiv).setAttribute('onmouseout', '');
	}

	function hiddenToolTip(inDiv)
	{
		document.getElementById(inDiv).style.display = 'none';
	}

	function setCookie(inNameOfCookie, inValue, inExpSec) 
	{
		var ExpireDate = new Date();
		ExpireDate.setTime(ExpireDate.getTime() + (inExpSec * 24 * 3600 * 1000));

  		document.cookie = inNameOfCookie + "=" + escape(inValue) + ((inExpSec == null) ? "" : "; expires=" + ExpireDate.toGMTString());
	}

	function getCookie(inNameOfCookie)
	{
		if (document.cookie.length > 0) 
		{
			begin = document.cookie.indexOf(inNameOfCookie+"="); 
		    	if (begin != -1)
				begin += inNameOfCookie.length+1; 
			end = document.cookie.indexOf(";", begin);
			if (end == -1)
				end = document.cookie.length;
			return unescape(document.cookie.substring(begin, end));       
		} 
		return null; 
	}

	function adjustTab() {
		if (parseInt(navigator.appVersion) > 3) {
			 if (navigator.appName == "Netscape") {
				if (document.getElementById('body') != undefined)
					document.getElementById('body').setAttribute('height', window.innerHeight - 120);
			}
			if (navigator.appName.indexOf("Microsoft") != -1) {
				if (document.getElementById('body') != undefined)
					document.getElementById('body').setAttribute('height', document.body.offsetHeight - 100);
			}
		}
	}

	function removeElement(inId)
        {
                mychild = document.getElementById(inId);
                mychild.parentNode.removeChild(mychild);
        }

	function calcImageWidth(inId, inDefaultWidth, inDefaultHeight)
	{
		if ((((inDefaultWidth * document.getElementById(inId).offsetHeight) / document.getElementById(inId).offsetWidth) / inDefaultWidth) < (((inDefaultHeight * document.getElementById(inId).offsetWidth) / document.getElementById(inId).offsetHeight) / inDefaultHeight))
	        {
			document.getElementById(inId).height = ((inDefaultWidth * document.getElementById(inId).offsetHeight) / document.getElementById(inId).offsetWidth);
			document.getElementById(inId).width = inDefaultWidth;
		}
		else
		{
			document.getElementById(inId).width = ((inDefaultHeight * document.getElementById(inId).offsetWidth) / document.getElementById(inId).offsetHeight);
			document.getElementById(inId).height = inDefaultHeight;
		}
	}
-->
