function updatemenus()
{
	plat=-1;
	popup=document.forms[0].elements.platform;
	if (popup)
	{
		id=document.getElementById('regel2');
		if (popup.selectedIndex>=2)
			id.style.visibility='hidden';
		else
			id.style.visibility='visible';
		plat=popup.selectedIndex+1;
	}
	html="Undetermined.";
	format="N/A.";
	submit=true;
	if (plat<3)
	{
		html="ircle 3.1.2 (released Feb 2005)";
		format="<b>Stuffit 7.0 MacBinary (.sit.bin) format.</b><br /><br />Use Stuffit Expander to unpack the file after downloading.\
                                Stuffit Expander (free!) comes with Mac OS or can be downloaded from\
                                <a target=\"_new\" href=\"http://www.stuffit.com\">Stuffit.com</a>.";
	}
	else if (plat==3)
	{
		html='<b>We are sorry, we do not have a version for your operating system. </b><br />You will need to upgrade it to Mac OS X 10.3 (or higher).</b>';
		submit=false;
	}
	else if (plat==4)
	{
		html='<select name="subversion" > \
			<option value="1" selected="selected">ircle 3.1.2 (Feb 2005), ok, but soon obsolete</option> \
			<option value="2" >ircle 3.5a6 (Sep 2006)</option> \
			<option value="3">ircle 4.0a5 (July 2009), nearly finished product, but contains bugs.</option> \
		</select>';
		format="<b>Disk Utility (.dmg, disk image) format.</b><br /><br />\
The .dmg file will be automatically unpacked and opened by Mac OS X after downloading. Drag the files from the mounted disk image to the preferred location on your hard disk.<br /><br />\
See also the <a target=\"_new\" href=\"/reference/installation.shtml\">installation guide</a> on installing and setting the correct translation.<br /><br />\
Please select one of the three available versions from the popup menu.<br />";

	}
	else if (plat==5)
	{
		html="<b>We're sorry, that version is not available yet..</b>";
		submit=false;
	}
	else if (plat==6)
	{
		html="<b>We're sorry, we do not have software for Windows.</b><br /><br />Please visit the <a href=\"http://www.mirc.co.uk\">mIRC</a> site, a popular IRC client for MS Windows.";
		submit=false;
	}
	id=document.getElementById('suggestion');
	if (id)
	{
		id.innerHTML=html;
	}
	id=document.getElementById('fileformat');
	if (id)
	{
		id.innerHTML=format;
	}
	id=document.getElementById('info');
	if (id)
	{
		if (submit)
			id.style.visibility='visible';
		else
			id.style.visibility='hidden';
	}
}
