function popupMessageLayer(intWidth, intHeight, strMessageContent) {
	
	hideFields('hidden');
	
	intScreenHeight = window.getScrollHeight();	
	intMessageTopPos = (window.getHeight() / 3) - (intHeight / 2) + window.getScrollTop();
	intMessageLeftPos = (window.getWidth() / 2) - (intWidth / 2);
	
	objMessageLayerShadow = $('ownersPopLayerShadow');
	objMessageLayerWrapper = $('ownersPopLayerWrapper');	
	objMessageLayerContent = $('ownersPopLayerMessage');	
	
	objMessageLayerContent.innerHTML = strMessageContent;	
	
	objMessageLayerWrapper.setStyles({
		'height' : intHeight + 'px',
		'width' : intWidth + 'px',
		'top' : intMessageTopPos + 'px',
		'left' : intMessageLeftPos + 'px'
	});
	objMessageLayerShadow.setStyles({
		'height' : intScreenHeight + 'px',
		'display' : 'block'
	});	
}

function hidePopupMessageLayer() {
	
	hideFields('visible');
	
	$('ownersPopLayerShadow').setStyle('display', 'none');
	$('ownersPopLayerMessage').innerHTML = "";
}

function hideFields(style) {
	var cont = document.getElementById('o-my-vehicle-portlet-content');
	var select = cont.getElementsByTagName('select');
	
	for (i=0; i < select.length; i++) {
		select[i].style.visibility = style;
	}
}

function resetFooterHeight() {
	$('footer').setStyle('height', '65px');
}

onload_register('resetFooterHeight()');