

	function UpdatePage(url, container){
		$.get(url, function(data){
			$("#"+container).html(data);
		});
	}

	function ViewComments(id_content, container){ 
		UpdatePage('list-comments.php?id_content='+id_content, container);

		document.getElementById("activecomments").style.display = "block";
		document.getElementById("comments").style.display = "block";
		//document.getElementById("frm_comments").style.display = "none";
	}

	function HideComments(){
		//document.getElementById("frm_comments").style.display = "block";
		document.getElementById("comments").style.display = "none";
	}

	function ViewFrmComments(){ 
		document.getElementById("frm_comments").style.display = "block";
		}

	function HideFrmComments(){
		document.getElementById("frm_comments").style.display = "none";
	}

	function ShowVideo(){
		if (document.getElementById("image")){
			document.getElementById("image").style.display = "none";
		}
		if (document.getElementById("heading")){
			document.getElementById("heading").style.display = "none";
		}
		document.getElementById("multi").style.height = "270px";

		document.getElementById("video").style.display = "inline";
		
	}
	// Sustantia AB - 15/07/09
	function chequeo(){
		if($("#comment_name").val() !="" && $("#comment_content").val() !="") {
			return true;
		} else {
			alert("Please fill name and comment");
			return false;
		}
	}