function loadComments(itemid, type){
	$("#comments").load("includes/comment_load.cfm",
		{
			itemid: itemid,
			type: type
		}
	);
}

function addComment(itemid, type){
		var send = new Object();
			send.itemId = itemid;
			send.type = type;
			send.comment = $("#newComment").val();
			
			 $.ajax({
	               method: 'post',
	               url : '_ajax_proxy.cfm?action=addComment',
	               dataType : 'text',
				   data : send
	              });
		$('#newComment').val(' ');
		loadComments(itemid, type);		  
		
}

function subscribeBlog(){
	var send = new Object();
		send.name =  $("#name").val();
		send.email =  $("#email").val();
		send.emailAddress = $("#emailAddress").val();
		send.bBlog =  $("#bBlog").val();
		
		$('#join').html('Processing Your Details....');
		
		
		$.ajax({method: 'get',
               url : '/_ajax_proxy.cfm?action=newSubscriber',
               dataType : 'text',
			   data : send,
			   success: function (text) { $('#join').html(jQuery.trim(text))}
	   		});
		}
		
		
		



