var	color = 'white';
function	ToggleSol	(id)
{
	var tdid = document.getElementById (id);
	
	if (!tdid.style.color || tdid.style.color == 'white')
		tdid.style.color = 'black';
	else
		tdid.style.color = 'white';
}



function	MailToMB (text)
{
	document.write ("<a href='mailto:marco.");
	document.write ("bonavoglia@ete");
	document.write ("roscacco.it'>");
	if (text)
		document.write (text);
	else
		document.write ("Marco Bonavoglia");
	document.write ("</a>");
}
function	MailToESP ()
{
	document.write ("<a href='mailto:marco.");
	document.write ("bonavoglia@ete");
	document.write ("roscacco.it'>Redattore <img src='img2chess/immagini/mail.gif' alt='mailto' width=40> Section Editor</a>");
}
function	WriteHeader (title, author, html, lang)
{
	document.write ("<center>");
	document.write ("<table bgcolor=#ffffcc border=0 cellpadding='0' cellspacing='0' width='800px'>");
	document.write ("<tbody><tr>");
	document.write ("<td align=center colspan=2><a href='index.html'>");
    document.write ("<img src='img2chess/immagini/homepage_01.gif' alt='home page Eteroscacco Problemi' border=0 width=798></a>");
  	document.write ("<tr><td colspan=2 class='titolo' background='img2chess/immagini/homepage_02.gif' height=30>");
	if (author)
  		document.write ("&nbsp;&nbsp;<b>" + title + "&nbsp;&nbsp;<small>(" + author + ")</small></b>&nbsp;&nbsp;");
	else
  		document.write ("&nbsp;&nbsp;<b>" + title + "</b>&nbsp;&nbsp;");
  	if (html)
  	{
  		document.write ("<a href='" + html + "_" + (lang == 'ita'? 'eng' : 'ita') + ".html'>");
  		if (lang == 'eng')
  			document.write ("<img alt='italiano' src='img2chess/immagini/italiano.png' height='20'></a>");
  		else	
  			document.write ("<img alt='English' src='img2chess/immagini/inglese.png' height='20'></a>");
	}
  	document.write ("</table>");
}

function	WriteFooter (date)
{
	document.write ("<br><div class='footer'>");
	document.write ("Ultimo aggiornamento " + date + "&nbsp;Latest update<br>");
	MailToESP ();
	document.write ("<br><a href='index.html'>Prima pagina problemi - Problems Home Page</a>");
	document.write ("</div><br></center>");
}