function captcha() { 
	$.ajax({
		url: "/common/scripts/captcha.php",
		success: function(data){
			$('#captcha').html(data);
		},
		cache: false
	}); 
}
window.onload=captcha;
$(document).ready(function(){
	$("#signup").submit(function(){
	var str = $(this).serialize();
	$.ajax({
		type: "GET",
		url: mc,
		data: str,
		success: function(msg){
			$("#notes").ajaxComplete(function(event, request, settings){
				if(msg == 'OK'){ // Message Sent? Show the 'Thank You' message and hide the form
					result = '<div class="notification_ok">Thank you for your newsletter subscription request. We will send a confirmation email to you shortly.</div>';
					$("#new").hide();
					$("form")[0].reset();
				}else{
					result = msg;
					$(".eroff").addClass("eron");
				}
				$(this).html(result);
			});
		}
	}); return false; 
	});
});
