function hlmenu(id,show) {
	if(show) {
		document.getElementById("mi"+id+"b").style.borderColor="#c90101";
		document.images["mi"+id+"i"].src=document.images["mmarrowh"].src;
	}
	else {
		document.getElementById("mi"+id+"b").style.borderColor="#b7bfc6";
		document.images["mi"+id+"i"].src=document.images["mmarrow"].src;
	}
}

function show_hint(object,hint,show) {
	var oCanvas=document.getElementsByTagName((document.compatMode&&document.compatMode=="CSS1Compat")?"HTML":"BODY")[0];
	document.getElementById(hint).style.left=oCanvas.scrollLeft+event.x+5+"px";
	document.getElementById(hint).style.top=oCanvas.scrollTop+event.y+5+"px";
 	document.getElementById(hint).style.display=show?"":"none";
}

function window_open(name,url,width,height,resizable,scrollbars) {
	var cwidth=(window.screen.width-width)/2;
	var cheight=(window.screen.height-height)/2;
	wnd=window.open(url,name,'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable='+resizable+',scrollbars='+scrollbars+',width='+width+',height='+height);
	wnd.moveTo(cwidth,cheight);
	wnd.blur();
	wnd.focus();
	return wnd.name;
}

function prints()
{
	window_open("",myhost+"print.htm",800,600,1,1);
}

function intro()
{
	window_open("",myhost+"/intro.htm",650,500,0,0);
}

function formarea_effect() {
	formarea.filters.blendtrans.play();
	setTimeout("document.forms.ff.submit()",1000);
}

function togglediv(id) {
	var o=document.getElementById(id);
	if(o.style.display=="none") {
		o.style.display="";
		document.images["fimg_"+id].src=document.images["fminus"].src;
	}
	else {
		o.style.display="none";
		document.images["fimg_"+id].src=document.images["fplus"].src;
	}
}
