function registerHelpTooltip(e, text) {
			
	e.onmouseover = function (e) {
		if (!e) e = window.event;
		
		var id;
		if (e.currentTarget != null)
			id = e.currentTarget.id;
		else /* IE */
			id = this.id;
		id = parseInt(id.charAt(id.length-1));
		var coords = getPageEventCoords(e);
		var imageBox = document.createElement('div');
		imageBox.id = 'helpTooltip';
		imageBox.className = 'tooltipBox';
		imageBox.style.left = (coords.left+10) + 'px';
		imageBox.style.top = (coords.top+15) + 'px';
		imageBox.innerHTML = text;
		document.getElementsByTagName('body')[0].appendChild(imageBox);
	};
	
	e.onmouseout = function (e) {
		var imageBox = document.getElementById('helpTooltip');
		if (imageBox)
			document.getElementsByTagName('body')[0].removeChild(imageBox);
	};
	
}

function carsHelpTooltip(e, text) {
			
	e.onmouseover = function (e) {
		if (!e) e = window.event;
		
		var id;
		if (e.currentTarget != null)
			id = e.currentTarget.id;
		else /* IE */
			id = this.id;
		id = parseInt(id.charAt(id.length-1));
		var coords = getPageEventCoords(e);
		var imageBox = document.createElement('div');
		imageBox.id = 'helpTooltip';
		imageBox.className = 'tooltipBox';
		imageBox.style.left = (coords.left-200) + 'px';
		imageBox.style.top = (coords.top+10) + 'px';
		imageBox.innerHTML = text;
		document.getElementsByTagName('body')[0].appendChild(imageBox);
	};
		
	e.onmouseout = function (e) {
		var imageBox = document.getElementById('helpTooltip');
		if (imageBox)
			document.getElementsByTagName('body')[0].removeChild(imageBox);
	};
}

function contactUsTooltip(e, text) {

	e.onmouseover = function (e) {

		if (!e) e = window.event;
		
		var id;
		if (e.currentTarget != null)
			id = e.currentTarget.id;
		else /* IE */
			id = this.id;
		id = parseInt(id.charAt(id.length-1));
		var coords = getPageEventCoords(e);
                //alert(coords.left+","+coords.top);
		var imageBox = document.createElement('div');
		imageBox.id = 'helpTooltip';
		imageBox.className = 'tooltipBox';
		imageBox.style.left = (coords.left+100) + 'px';
		imageBox.style.top = (coords.top-10) + 'px';
		imageBox.innerHTML = text;
		document.getElementsByTagName('body')[0].appendChild(imageBox);
	};
	
	e.onmouseout = function (e) {
		var imageBox = document.getElementById('helpTooltip');
		if (imageBox)
			document.getElementsByTagName('body')[0].removeChild(imageBox);
	};

}

function priceHelpTooltip(e, text) {
			
	e.onmouseover = function (e) {
		if (!e) e = window.event;
		
		var id;
		if (e.currentTarget != null)
			id = e.currentTarget.id;
		else /* IE */
			id = this.id;
		id = parseInt(id.charAt(id.length-1));
		var coords = getPageEventCoords(e);
		var imageBox = document.createElement('div');
		imageBox.id = 'helpTooltip';
		imageBox.className = 'tooltipBox';
		imageBox.style.left = (coords.left+35) + 'px';
		imageBox.style.top = (coords.top-5) + 'px';
		imageBox.innerHTML = text;
		document.getElementsByTagName('body')[0].appendChild(imageBox);
	};
		
	e.onmouseout = function (e) {
		var imageBox = document.getElementById('helpTooltip');
		if (imageBox)
			document.getElementsByTagName('body')[0].removeChild(imageBox);
	};
}
				
				
				



function getPageEventCoords(evt) {
	var coords = {left:0, top:0};
	if (evt.pageX) {
		coords.left = evt.pageX;
		coords.top = evt.pageY;
	} else if (evt.clientX) {
		coords.left =
		evt.clientX + document.body.scrollLeft - document.body.clientLeft;
		coords.top =
		evt.clientY + (document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop) - (document.documentElement.clientTop?document.documentElement.clientTop:document.body.clientTop);
		

	}
	return coords;
}
