function doTree(code){
//--------------------------
var theForm = document.forms[0];
theForm.tree.value = code;	
theForm.submit();
}


function doImg(obj_img){ //name_instance.extension
//---------------------------
	var obj_src_init = obj_img.src;
	if(obj_src_init.search('_off.')>0) obj_img.src = obj_src_init.replace('_off.','_on.');
	if(obj_src_init.search('_on.')>0) obj_img.src = obj_src_init.replace('_on.','_off.');
}


function chgContainer( id ){
//-----------------------------------------
	var theDiv = document.getElementById('cntDiv');
	var theImg = document.getElementById('cntImg');

	if(id==0){
		//theDiv.style.left=0;
		theImg.src = 'images/mb.gif';
	}
	if(id==1){
		theDiv.style.left=220;
		theImg.src = 'images/m1.jpg';
	}
	if(id==2){
		theDiv.style.left=255;
		theImg.src = 'images/m2.jpg';
	}
	if(id==3){
		theDiv.style.left=290;
		theImg.src = 'images/m3.jpg';
	}
	if(id==4){
		theDiv.style.left=325;
		theImg.src = 'images/m4.jpg';
	}
	if(id==5){
		theDiv.style.left=360;
		theImg.src = 'images/m5.jpg';
	}
	if(id==6){
		theDiv.style.left=395;
		theImg.src = 'images/m6.jpg';
	}
	if(id==7){
		theDiv.style.left=430;
		theImg.src = 'images/m7.jpg';
	}
 //   theImg.opacity = 100;
}
