
function setmainmenu(strmenu)
{
var parentdoc;
var fmemenu;
var doc;
var intmenuold;
var intmenunew;

	parentdoc=window.parent.document;
	intmenuold=new Number(0);
	intmenunew=new Number(0);
	if (parentdoc!=null)
	{
		fmemenu=parentdoc.getElementById("frame_menu");
		if (fmemenu!=null)
		{
			doc=parent.frame_menu.document;
			intmenuold=doc.getElementById("mnu").value;
			if  (intmenuold!=null)
			{
				switch (strmenu)
				{
					case 'log':
						intmenunew=4;
						break;
				}
				if ((intmenuold!=intmenunew) && (intmenunew!=0))
				{
					doc.location.href=doc.location.pathname + "?mnu=" + intmenunew;
				}
			}
		}
	}
}

function showsubnav(strname, intshow)
{
var imgsrc; 
	
	// intshow=number(intshow);
	switch  (intshow)
	{
		case 2:
			strsrc="/images/subnavs/subnav_currpage.png";
			break;
		case 1:
			strsrc="/images/subnavs/subnav_nextpage.png";
			break;
		default:
			strsrc="/images/subnavs/subnav_blank.png";
			break;
	};			
	document.getElementById(strname).src=strsrc;
}

function openmail(strusr, strdomain)
{
var strml;
var strurl;

	strml=new String("");
	strurl=new String("");
	if (strdomain=='') strdomain=String.fromCharCode(98, 114, 101, 110, 110, 116, 97, 103, 46, 105, 116);
	strml=String.fromCharCode(109, 97, 105, 108, 116, 111, 58);
	strurl=strml + strusr + String.fromCharCode(64) + strdomain;
	window.location=strurl;
}

function writeinfo()
{
var strinfo;
var strext;

	strinfo=new String("");
	strext=new String("");
	
	strinfo=String.fromCharCode(98, 114, 101, 110, 110, 116, 97, 103);
	strext=String.fromCharCode(46, 105, 116);
	strinfo='info' + strinfo + String.fromCharCode(64) + strinfo + strext;
	document.write(strinfo);
}



