﻿/*
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 * 
 * Licensed under the terms of the GNU Lesser General Public License:
 * 		http://www.opensource.org/licenses/lgpl-license.php
 * 
 * For further information visit:
 * 		http://www.fckeditor.net/
 * * File Name: fckvalidate.js
 * 	Create the FCKeditorAPI object that is available as a global object in
 * 	the page where the editor is placed in.
 * 
 * File Authors:
 **/
var editor_name_script;
function Validate(editor_name_script)
{
	// Get the editor instance that we want to interact with.
	var oEditor = FCKeditorAPI.GetInstance(editor_name_script) ;

	// Get the editor contents in XHTML.

	if ( oEditor.GetXHTML( false ).length == 0 )
	{
		//alert( 'The "Save" command must not submit if the editor is empty' ) ;
		//alert(oEditor.GetXHTML);
		return false ;
	}
	else
	{
		return true;
	}			
}