//<!--
function jc_textcode ( t_name, t_char) {
	// check selected
	str_start = '['+t_char+']' ;
	str_stop = '[/'+t_char+']' ;
	if ( t_char =="copy" || t_char =="tm" || t_char =="reg" ) {
		str_stop = '' ;
	}
	if (document.all) {
		theSelection = document.selection.createRange() ;
		if (!theSelection.text) {
			t_name.value += str_start + str_stop;
			return;
		}else{
			theSelection.text = str_start + theSelection.text + str_stop;
			return;
		}
	} else {
		if ( t_name.selectionEnd ) {
			var selLength = t_name.textLength;
			var selStart = t_name.selectionStart;
			var selEnd = t_name.selectionEnd;
			if (selEnd == 1 || selEnd == 2)
				selEnd = selLength;

			var s1 = (t_name.value).substring(0,selStart);
			var s2 = (t_name.value).substring(selStart, selEnd)
			var s3 = (t_name.value).substring(selEnd, selLength);
			t_name.value = s1 +str_start + s2 + str_stop + s3;
			return;
		} else {
			t_name.value += str_start + str_stop;
			return;
		}
	}
}

function choose_type ( a_path ) {
	if ( document.select_type.type.value == '' || document.select_type.type.value == '----------------' ) {
		return 0 ;
	} else if ( document.select_type.type.value == 4 || document.select_type.type.value == 9 ) {
		document.select_type.action = a_path + 'prod_content.php';
	} else if ( document.select_type.type.value == '4dLINKs' ) {
		document.select_type.action = a_path + 'link_content.php';
	} else if ( document.select_type.type.value == '4dSCHEDULEs' ) {
		document.select_type.action = a_path + 'sched_content.php';
	} else if ( document.select_type.type.value == '4dSOCIETY' ) {
		document.select_type.action = a_path + 'type_content.php';
		//
	} else if ( document.select_type.type.value == 'books' ) {
		document.select_type.action = a_path + 'book_content.php';
	} else if ( document.select_type.type.value == 'subscribe' ) {
		document.select_type.action = a_path + 'subc_content.php';
		//
	} else if ( document.select_type.type.value == '4d2K' ) {
		document.select_type.action = a_path + '2k_content.php';
	} else if ( document.select_type.type.value == 'about us' ) {
		document.select_type.action = a_path + 'us_content.php';
	} else if ( document.select_type.type.value == 'site map' ) {
		document.select_type.action = a_path + 'map_content.php';
	} else {
		document.select_type.action = a_path + 'type_content.php';
	}
	document.select_type.submit() ;
}

		//++++++++++++++++++++++++++++++
		function MenuShowText ( a_div, a_text ) {
			if ( document.all ) {
				var setdiv = document.all[a_div];
			} else {
				var setdiv = document.getElementById(a_div);
			}
			setdiv.innerHTML = unescape( a_text ) ;
		}
		//++++++++++++++++++++++++++++++

//-->
