function winstat(text)
{
  setTimeout("window.status='"+text+"';",10);
}

function swap(img, newImage, txt)
{
	img.src = newImage.src;
	window.status = txt;
	return true;
}

function change_color(elm,mode)
{
	var item;
	if(document.getElementById){
	item = document.getElementById(elm);
	if(mode)
		item.style.backgroundColor = "#D9D6CA";
	else
		item.style.backgroundColor = "";
	}
}

function goloc(url)
{
	if(url.substr(0,7) == "http://")
		{
		window.open(url);
		return false;
		}
	else
		{
		location.href = url;
		}
	
}
