function addReviewsFbUser(getComment,category,contentID,fbUID,getRecipeName,getThumbName,action)
		{
			comment = document.getElementById(getComment).value;
			recipeName = document.getElementById(getRecipeName).value;
			thumbName = document.getElementById(getThumbName).value;
				
			switch(action)
			{
				case 'submit':	//insert and display comments
				{
					http.open("GET", "registeredUser/script_page.php?action=submit&category=" + escape(category)+"&id=" + escape(contentID)+"&comment=" + escape(comment)+"&fbUID=" + escape(fbUID), true);
					document.getElementById("submitCommentBtn").disabled = true;
					setTimeout("document.getElementById('submitCommentBtn').disabled = false",5000);
					
					if (fbUID.length > 2){	//means facebook users are trying to send the comment
					
						if (document.getElementById('publish_feed').checked){
						
							if (category == "recipe"){
								var setImage = "http://www.trymasak.my/thumb/" + thumbName;
								var recipeLink = "http://www.trymasak.my/resipi " + recipeName + ".html";		
								
								var template_data = {"images":[{"src":setImage, "href":recipeLink}],"recipeName":recipeName,"reviewContent":comment};
								FB.Connect.showFeedDialog(78285285481, template_data);
								
							}
							if (category == "tipsnguides"){
								var setImage = "http://www.trymasak.my/tngthumb/" + thumbName;
								var recipeLink = "http://www.trymasak.my/tipsnguidesView.php?TGID=" + contentID;	

								var template_data = {"images":[{"src":setImage, "href":recipeLink}],"tipsName":recipeName,"reviewContent":comment,"TGID":contentID};
								FB.Connect.showFeedDialog(78286765481, template_data);
								
							}
							if (category == "glossary"){
								var setImage = "";
								var recipeLink = "http://www.trymasak.my/view-glossary.php?GID=" + contentID;	

								var template_data = {"glossaryName":recipeName,"reviewContent":comment,"GID":contentID};
								FB.Connect.showFeedDialog(78551310481, template_data);
							}
							
							
						}
					}
				}
				break;
				case 'display':	//display comments only
				{
				  http.open("GET", "registeredUser/script_page.php?action=display&category=" + escape(category)+"&id=" + escape(contentID), true);
				}
				break;
			}		

			http.onreadystatechange = handleHttpResponse;
			http.send(null);

		}