//show a error tooltip    	
function showErrorTooltip(element, message) {

	if ($(".infoBlock_2", $(element).parent()).size() == 0) {
		$("<div class=\"infoBlock_2\" title=\"" + message + "\">&nbsp;</div>").insertBefore($(element));
		addErrorTooltip($(".infoBlock_2", $(element).parent()));
	} else {
		$(element).prev().attr("title", message);
		addErrorTooltip($(".infoBlock_2", $(element).parent()));
	}
}

//add a jquery tooltip to given element
function addTooltip(element) {
	element.tooltip({ 
	    track: false, 
	    delay: 0, 
	    showURL: false, 
	    fixPNG: true, 
	    showBody: false,
	    extraClass: "pretty",
	    top: -15, 
	    left: 10
	});
}


//add a jquery tooltip to given element
function addErrorTooltip(element) {
	element.tooltip({ 
	    track: false, 
	    delay: 0, 
	    showURL: false, 
	    fixPNG: true, 
	     showBody: false,
	    extraClass: "error", 
	    top: -15, 
	    left: 10
	});
}