function IsEmpty(aTextField) 
{
	if ((aTextField.value.length==0) ||(aTextField.value==null)) 
	{
  		return true;
	}
	else 
	{ 
		return false; 
	}
}	

function findPosition( oElement ) 
{
	if( typeof( oElement.offsetParent ) != 'undefined' ) 
	{
		for( var posX = 0, posY = 0; oElement; oElement = oElement.offsetParent ) 
		{
			posX += oElement.offsetLeft;
			posY += oElement.offsetTop;
		}
		return [ posX, posY ];
	}
	 else 
	 {
		return [ oElement.x, oElement.y ];
	}
}
function findPosition( oLink ) {
	if( oLink.offsetParent ) 
	{
		for( var posX = 0, posY = 0; oLink; oLink = oLink.offsetParent ) 
		{
			posX += oLink.offsetLeft;
			posY += oLink.offsetTop;
		}
		return [ posX, posY ];
	}
	else 
	{
		return [ oLink.x, oLink.y ];
	}
}
