
function focusColor(obj) {
	obj.style.backgroundColor = 'lime';
}

function lostFocusColor(obj) {
	obj.style.backgroundColor = '';
}

function showLayer(layerId)
{
	
	var layer = document.getElementById(layerId);
	
	
	
	if(layer.style.visibility == "visible")
	{
		layer.style.visibility = "hidden";	
	}
	else
	{
		layer.style.visibility = "visible";
			
	}
}



function change_color_mouse_over(obj)
{
	obj.style.backgroundColor="#00FF00";
}

function change_color_mouse_out(obj)
{
	obj.style.backgroundColor="";
}




function change_cursor(obj,cursor)
{	
	obj.style.cursor = cursor;
}

function mouseCoords(ev){
	if(ev.pageX || ev.pageY){
		return {x:ev.pageX, y:ev.pageY};
	}
	return {
		x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,
		y:ev.clientY + document.body.scrollTop  - document.body.clientTop
	};
}






