function show_hide(_id)
{
	var i=document.getElementById(_id);
	if (i.style.display=='inline') 
		i.style.display='none';
	else 
		i.style.display='inline';
}

function restore_colors(_id)
{
	var i=document.getElementById(_id);
	i.style.background='#ffffff';
	i.style.borderColor='#ffffff';
}

function change_colors(_id)
{
	var i=document.getElementById(_id);
	i.style.background='#E5E5E5';
	i.style.borderColor='#ad1919';
}

function change_link_color(_id)
{
	document.getElementById(_id).style.color='#ad1919';
}

function restore_link_color(_id)
{
	document.getElementById(_id).style.color='#175f9c';
}

function setCookie(name,value,time) {
	if (time) 
	{
		var date = new Date();
		date.setTime(date.getTime()+time);
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) 
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}