if (navigator.userAgent.toLowerCase().indexOf('applewebkit') == -1) { // filter out Safari, as it has it's own formfield highlighting
	// preload
	left = new Image();
	left.src = 'includes/javascript/form_highlighting/images/left.png';
	top_left = new Image();
	top_left.src = 'includes/javascript/form_highlighting/images/top_left.png';
	top_right = new Image();
	top_right.src = 'includes/javascript/form_highlighting/images/top_right.png';
	right = new Image();
	right.src = 'includes/javascript/form_highlighting/images/right.png';
	bottom_left = new Image();
	bottom_left.src = 'includes/javascript/form_highlighting/images/bottom_left.png';
	bottom_right = new Image();
	bottom_right.src = 'includes/javascript/form_highlighting/images/bottom_right.png';
	
	function setBg(elem) {
		box = elem.parentNode.parentNode;
		box.style.background = 'url(includes/javascript/form_highlighting/images/left.png) repeat-y left top';
		box.childNodes[0].style.background = 'url(includes/javascript/form_highlighting/images/top_left.png) no-repeat top left';
		box.childNodes[0].childNodes[0].style.background = 'url(includes/javascript/form_highlighting/images/top_right.png) no-repeat top right';
		box.childNodes[1].style.background = 'url(includes/javascript/form_highlighting/images/right.png) repeat-y right';
		box.childNodes[1].childNodes[0].style.border = '1px solid #fff';
		box.childNodes[2].style.background = 'url(includes/javascript/form_highlighting/images/bottom_left.png) no-repeat bottom left';
		box.childNodes[2].childNodes[0].style.background = 'url(includes/javascript/form_highlighting/images/bottom_right.png) no-repeat bottom right';
	}
	function removeBg(elem) {
		box = elem.parentNode.parentNode;
		box.style.background = 'transparent';
		box.childNodes[0].style.background = 'transparent';
		box.childNodes[0].childNodes[0].style.background = 'transparent';
		box.childNodes[1].style.background = 'transparent';
		box.childNodes[1].childNodes[0].style.border = '1px solid #b2b2b2';
		box.childNodes[2].style.background = 'transparent';
		box.childNodes[2].childNodes[0].style.background = 'transparent';
	}
}
