// JavaScript Document
function checkChangeStyleGuide(form)
{
	var fouten = "The following error(s) were found:\n\n";
	var fout = false;
	var fckIntro = FCKeditorAPI.GetInstance('intro');
	
		if (form.title.value == "")
		{
	   fout = true;
	   fouten = fouten + "The title is missing\n";
    }
    
		if (fckIntro.GetHTML() == "<br type=\"_moz\" />")
		{
        fout = true;
        fouten = fouten + "The intro is missing\n";	   
    }
    
    if (form.SEO_URL.value == "")
    {
    		fout = true;
    		fouten = fouten + "The Rewrite URL is missing\n";
		} else
		if (form.SEO_URL.value.match(" ") == " ")
		{
				fout = true;
				fouten = fouten + "Don't use spaces in the Rewrite URL\n";
		}
    
	if (fout)
		alert(fouten);
	else
		form.submit();
}

function checkManageText(form)
{
	var fouten = "The following error(s) were found:\n\n";
	var fout = false;
	var fckText = FCKeditorAPI.GetInstance('text');

	if (fckText.GetHTML() == "<br type=\"_moz\" />")
	{
        fout = true;
        fouten = fouten + "The content is missing\n";	   
    }
    	
	if (fout)
		alert(fouten);
	else
		form.submit();
}
