function validateGuestbookForm()
{
	var Name = document.getElementById('guestBookName');
	var message_content =document.getElementById('guestBookComment')
	var captcha_code = document.getElementById('captcha_code');	
	if (Name.value.length == 0)
		{
			alert('Your name is too short!');	
			Name.focus();
			return false;
		}		
	
	if (message_content.value.length < 5)
		{
			alert('Your comment is too short!');
			message_content.focus();
			return false;
		}

	if (captcha_code.value.length != 4)
		{
			alert('Verification is incorrect!');
			captcha_code.focus();
			return false;
		}		
		return true;
}

function InsertEmoticon(Shortcut)
{
	var guestBookCommentBox = document.getElementById("guestBookComment");
	var guestBookCommentBoxValue = guestBookCommentBox.value;
	var fixedtext = guestBookCommentBoxValue + Shortcut;
	guestBookCommentBox.value = fixedtext;
}
