function vcomments_changed(eId) {	
	//alert("eId1= " + eId);

	if ( eId === undefined ) {
		eId = "Error! No mediaID";
	} 
	
   var dataString = 'mediaId=' + eId;
	
   //update the mediaID's text field for the save function - if not, the saved text will go to the original mediaID
   var TextBoxElem= document.getElementById("mediaId");
   TextBoxElem.value = eId; 
   	

	$.ajax({
		type: "POST",
		url: "../../mod/vcomments/actions/vcomments_AJAX.php",
		data: dataString,
		//dataType: "JSON", // this is for the return data
		dataType: "HTML", // this is for the return data
		success: function(rendered_phpfile) {//
			//alert("dataString" + dataString);
			var type = typeof rendered_phpfile;
			//alert(type);
			//alert(rendered_phpfile);
			if ((rendered_phpfile) == null) {
				$("#vform_comments").html('Sorry, there was a problem loading the form');
			} else {
				$("#vform_comments").html(rendered_phpfile);
				//alert("eId1= " + eId);
			}
		},
		error: function(xhr) {
        	alert('Error!  Status vcomments_change= ' + xhr.status);
     	}
	});
	return false;
}