$(document).ready(function() 
{
	$(document).pngFix(); 
	$("#frm-cnt").submit
	(
		function()
		{
			$("#msg-status").html('');
			$("#msg-status").html('<p><span class="msg-stat">Sending Message, Please wait.</span></p>');
			var str = $(this).serialize();
			$.ajax(
			{
				type: "POST",
				url: "sendmail.php",
				data: str,
				success: 
				function(msgStatus)
				{
					$("#msg-status").ajaxComplete(function(event, request, settings)
					{
						$(this).html(msgStatus);
					});
				}
			});
			$("#securecode").attr("src", "securecode.php?" +  Math.floor(Math.random()*100));
			return false;
		}
	);
});
