//<!--
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 ) {
	/*
		stat1 = inc.stat.about.php = "About Us"
		stat2 = inc.stat.subscribe.php = "Subscribe the Magazine"
		stat3 = inc.stat.sitemap.php = "Site Map"
		stat4 = inc.stat.corp4d.php = "Corporation 4d Ltd."
	*/
	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 + 'schd_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 the Magazine' ) {
		document.select_type.action = a_path + 'stat_content.php?stat=2';
		//
	} else if ( document.select_type.type.value == '4d2K' ) {
		document.select_type.action = a_path + '2k_content.php';
	} else if ( document.select_type.type.value == 'theBlog' ) {
		document.select_type.action = 'http://www.art4d.com/blog/';
		document.select_type.target = '_blank';
	} else if ( document.select_type.type.value == 'About Us' ) {
		document.select_type.action = a_path + 'stat_content.php?stat=1';
	} else if ( document.select_type.type.value == 'Site Map' ) {
		document.select_type.action = a_path + 'stat_content.php?stat=3';
	} else if ( document.select_type.type.value == 'Corporation 4d Ltd.' ) {
		document.select_type.action = a_path + 'stat_content.php?stat=4';
	} 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 ) ;
		}
		//++++++++++++++++++++++++++++++

//-->
