function DrawMarker( index, subindex, startx, color ) {
	linesize = 18;
	splicex  = 500;
	startx   = startx - 40;

	m  = GetRef("marker");
	m0 = GetRef("marker0");
	m1 = GetRef("marker1");
	m2 = GetRef("marker2");

	y0 = index * linesize + linesize/2;
	y1 = subindex * linesize + linesize/2;
	
	m.style.left  = "0px";
	m.style.display = "inline";
	m0.style.left = startx + "px";
	m0.style.width= (splicex - startx) + "px";
	m1.style.left = splicex + "px";
	m2.style.left = splicex + "px";

	m0.style.top = y0 + "px";
	if( y1 > y0 ) {
		m1.style.top = y0 + "px";
		m1.style.height = (y1 - y0) + "px";
	} else {
		m1.style.top = y1 + "px";
		m1.style.height = (y0 - y1) + "px";
	}
	m2.style.top = y1 + "px";

	if( index == subindex ) {
		m1.style.display = "none";
	} else {
		m1.style.display = "inline";
	}

/*	m0.style.backgroundColor = color;
	m1.style.backgroundColor = color;
	m2.style.backgroundColor = color;*/
}