//<!--
	function postmessage()
	{
		// If set the function fails. :D
		var fail;
		
		// Make sure the required objects exist, kinda odd, but failsecure. :D
		if ( !fail &&  !document)
		{
			fail='Warning: No document object';
		}
		if ( !fail &&  !document.blogger )
		{
			fail='Warning: No blogger form';
		}
		if ( !fail &&  !document.blogger.title )
		{
			fail='Warning: No title input object';
		}
		if ( !fail &&  !document.blogger.forumpost )
		{
			fail='Warning: No forumpost input object';
		}
		if ( !fail &&  !document.blogger.html )
		{
			fail='Warning: No html input object';
		}
		if ( !fail &&  !document.blogger.bbcode )
		{
			fail='Warning: No bbcode input object';
		}
		
		// Check the passwords..
		if ( !fail &&  document.blogger.username )
		{
			if ( document.blogger.username.value == '' || document.blogger.username.value == undefined)
			{
				fail='Please insert your username';
				document.blogger.username.focus();
			}
		}
		if (  !fail && document.blogger.password )
		{
			if ( document.blogger.password.value == '' )
			{
				fail='Please insert your password';;
				document.blogger.password.focus();
			}
		}
		
		// Check the objects in question.
		
		if ( !fail && document.blogger.type && (document.blogger.type.value < 1 || document.blogger.type.value > 2 ) )
		{
			fail='Please select a type for your message, such as Thread / Blog, so the site knows how to threat the post.';
			document.blogger.type.focus();
		}
		if ( !fail && ( document.blogger.forumpost.value == "" || document.blogger.forumpost.value == "%Simply insert your message here%" ))
		{
			fail='Hey - I got a crazy idea, write something in the forum post field! xD';
			document.blogger.forumpost.focus();
		}
		if ( !fail && document.blogger.title.value == "")
		{
			fail='Select a title for your post. Don\'t be boring. :P';
			document.blogger.title.focus();
		}
		
		if (!fail)
		{
			document.blogger.submit();
		}
		else
		{
			alert(fail);
		}
	}
	//-->
