﻿function GiveFocus(obj) {
	ob = document.getElementById(obj);
	if (ob.className=='') {
		ob.className = 'highlight';
	} else if (ob.className=='hoverlight') {
		ob.className = 'highlight_hover';
	} else if (ob.className=='check') {
	    ob.className = 'checkhighlight';
	}
}

function TakeFocus(obj) {
	ob = document.getElementById(obj);
	if (ob.className=='highlight') {
		ob.className = '';
	} else if (ob.className=='highlight_hover') {
		ob.className = 'hoverlight';
	} else if (ob.className=='checkhighlight') {
	    ob.className = 'check';
	}
}

function dofocus2(e, obj) {
	if(e.srcElement!=document.getElementById(obj)) {
		setTimeout('document.getElementById("'+obj+'").focus();', 0);
	}
}

function dofocus(obj) {
	setTimeout('document.getElementById("'+obj+'").focus();', 0);
}

function mouseOver(obj) {
	if (obj.className=='highlight') {
		obj.className = 'highlight_hover';
	} else if (obj.className=='') {
	    obj.className = 'hoverlight';
	}
}

function mouseOut(obj) {
	if (obj.className=='hoverlight') {
		obj.className = '';
	} else if (obj.className=='highlight_hover') {
	    obj.className = 'highlight';
	}
}

