	
	var previoustip;
	
	function getTip(fieldId, tipId) {
		
		if(previoustip!=null) previoustip.style.visibility = 'hidden';
		fieldElement = document.getElementById(fieldId);
//		if(fieldId=='field__userName') fieldElement.onkeyup= function(){document.getElementById('addrtip').innerHTML=document.forms.mysignup._userName.value;}
		previoustip=document.getElementById(tipId);		
		showTip(fieldId, tipId);
		
		
	}

	function showTip(fieldId, tipId) {
		if ( null == (tipElement = document.getElementById(tipId)) ) {
			return;
		}

		fieldElement = document.getElementById(fieldId);
		if (navigator.appName.indexOf('Microsoft') != -1) {
			extraOffsetLeft=121;
			extraOffsetTop=-5;
		}	
		else
		{
			extraOffsetLeft=0;
			extraOffsetTop=-7;
		}
		
		if(window.leftCorrection ) 	extraOffsetLeft = extraOffsetLeft + window.leftCorrection;
		if(window.topCorrection ) 	extraOffsetTop = extraOffsetTop + window.topCorrection;


		positionLeft = getAbsoluteLeft(fieldId) + 390 + extraOffsetLeft;
		positionTop = getAbsoluteTop(fieldId) + extraOffsetTop;

		tipElement.style.left = positionLeft + 'px';
		tipElement.style.top = positionTop + 'px';
		tipElement.style.visibility = 'visible';
		
	}

	function getAbsoluteLeft(id) {

		element = document.getElementById(id);
		posX = element.offsetLeft;
		return posX;
	
	}

	function getAbsoluteTop(id) {
		element = document.getElementById(id);
		posY = element.offsetTop;
		return posY;
	}
	
	
	function hideTip(fieldId, tipId){
		if ( null == (tipElement = document.getElementById(tipId)) ) {
			return;
		}
		tipElement.style.visibility = 'hidden';
	}

