function BASIC_Switch(prefix,command,type_or_id,value){
	switch(prefix){
		
		case 'knw':/* id = BASIC_..... */
			switch(command){
				case 'bbcode': BASIC_BBCode(type_or_id); // type_or_id = bold,italic,...
					break;
				case 'ajax': 
					//changecss('bcv','tabactive');
					BASIC_Ajax(type_or_id,value); //type_or_id = id, value = url
					//alert(value);
					break;
				case 'hide': BASIC_Display(type_or_id,'none'); // type_or_id = id, style.display = none
					break;
				case 'show': BASIC_Display(type_or_id,'');// type_or_id = id, style.display = ''
					break;
				case 'decrease': BASIC_Height_TextArea(type_or_id,'-'); 
					break;
				case 'increase': BASIC_Height_TextArea(type_or_id,'+'); 
					break;	
				case 'bgcolor': BASIC_BgColor(type_or_id,'#eee')
					break;
				default: 
					break;
			}		
			break;
		
		default: return false;
			break;
	}
	return true;
}
function BASIC_Focus(id) {
	$getId(id).focus();
}
function BASIC_Ajax(id,url) { 
	BASIC_Display(id,''); // Display available
	switch(id){
		case 'comment':$(url,id,'BASIC_Focus("'+id+'");BASIC_Onload();BASIC_LoadCacheAuthor();');
				break;
		case 'content':$(url,id,'BASIC_Focus("'+id+'");BASIC_Onload();');
			break;
		default: $(url,id,'BASIC_Focus("'+id+'");BASIC_Onload();');
			break;
	}
	
}

function BASIC_Display(id,display_style){ 
	$getId(id).style.display = display_style;
}
