function LmOver(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#FFFFFF";
elem.style.cursor = 'hand'}

function LmOut(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#808080";}

function LmDown(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#FFFFFF";}

function LmUp(path)
{location.href = path;}

function createCookie(name,value,days)
{
	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	
	document.cookie = name+"="+value+expires+"; path=/";
}

function showDiv(strDiv)
{
	document.getElementById(strDiv).style.display = "BLOCK";
}

String.prototype.trim=String_trim;
function String_trim(){
	var i=0;
	var j=this.length;
	while(this.charAt(i)==" ") i++;
	while(this.charAt(j-1)==" ") j--;
	if (i >= j)
		return('');
	else
		return(this.substring(i,j));
}


