function formobjects(form,source) {
	switch (source) {
		// 2 ROWS
		case "t1": form.newsContent.value += '\n<table width="100%" border="0" cellspacing="0" cellpadding="1">\n'
			form.newsContent.value += '<tr>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '</tr>\n'
			form.newsContent.value += '<tr>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '</tr>\n'
			form.newsContent.value += '</table>\n';
		break;
		
		// 3 ROWS
		case "t2": form.newsContent.value += '\n<table width="100%" border="0" cellspacing="0" cellpadding="1">\n'
			form.newsContent.value += '<tr>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '</tr>\n'
			form.newsContent.value += '<tr>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '</tr>\n'
			form.newsContent.value += '<tr>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '</tr>\n'
			form.newsContent.value += '</table>\n';
		break;
		
		// 2 COLUMNS
		case "t3": form.newsContent.value += '\n<table width="100%" border="0" cellspacing="0" cellpadding="1">\n'
			form.newsContent.value += '<tr>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '</tr>\n'
			form.newsContent.value += '</table>\n';
		break;
		
		// 3 COLUMNS
		case "t4": form.newsContent.value += '\n<table width="100%" border="0" cellspacing="0" cellpadding="1">\n'
			form.newsContent.value += '<tr>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '</tr>\n'
			form.newsContent.value += '</table>\n';
		break;
		
		// 2 ROWS 3 COLUMNS
		case "t5": form.newsContent.value += '\n<table width="100%" border="0" cellspacing="0" cellpadding="1">\n'
			form.newsContent.value += '<tr>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '</tr>\n'
			form.newsContent.value += '<tr>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '<td>[CONTENT]</td>\n'
			form.newsContent.value += '</tr>\n'
			form.newsContent.value += '</table>\n';
		break;
		
		// HYPERLINK
		case "link": form.newsContent.value += '<a href="ADDRESS" target="_blank">TITLE</a>';
		break;
		
		// EMAIL LINK
		case "email_link": form.newsContent.value += '<a href="mailto:EMAIL ADDRESS">TITLE</a>';
		break;
		
		// IMAGE
		case "image": form.newsContent.value += '<img src="PATH TO IMAGE" border="0">';
		break;
		
		// OBJECT
		case "embed": form.newsContent.value += '<embed src="PATH TO OBJECT" width="300" height="300">';
		break;
		
		// BOLD
		case "bold": form.newsContent.value += '<b>CONTENT</b>';
		break;
		
		// ITALIC
		case "italic": form.newsContent.value += '<i>CONTENT</i>';
		break;
		
		// UNDERLINE
		case "underline": form.newsContent.value += '<u>CONTENT</u>';
		break;
		
		// NEW LINE
		case "newline": form.newsContent.value += '<br>';
		break;
		
		default:
		break;
	}
}

//===========================================================================
function display_description(form,button) {
	switch (button) {
		case "t1": form.description.value = 'Insert table with 2 rows';
		break;
		case "t2": form.description.value = 'Insert table with 3 rows';
		break;
		case "t3": form.description.value = 'Insert table with 2 columns';
		break;
		case "t4": form.description.value = 'Insert table with 3 columns';
		break;
		case "t5": form.description.value = 'Insert table with 2 rows and 3 columns';
		break;
		case "link": form.description.value = 'Insert a hyperlink';
		break;
		case "email_link": form.description.value = 'Insert a email hyperlink';
		break;
		case "image": form.description.value = 'Insert a picture';
		break;
		case "embed": form.description.value = 'Insert a flash, movie or audio';
		break;
		case "bold": form.description.value = 'Make the text bold';
		break;
		case "italic": form.description.value = 'Make the text italic';
		break;
		case "underline": form.description.value = 'Make the text underline';
		break;
		case "newline": form.description.value = 'Insert a new line ( <br> ).    Required when the HTML checkbox is checked';
		break;
		
		default:
		break;
	}
}
function close_description(form) {
	form.description.value = '';
}

