function showPlanFBComments(targetid) { showFBComments("Facebook Comments for current plan"); //, targetid); } function showGeoFBComments(targetid) { showFBComments("Facebook Comments for Location", targetid); } function showFBComments(title, targetid) { var title_elem = document.getElementById("popup-title"); title_elem.innerHTML = title; //hint for the refresh from: //http://stackoverflow.com/questions/11122633/how-to-dynamically-change-facebook-comments-plugin-url-based-on-javascript-varia var fb_elem = document.getElementById("fb-content"); fb_elem.innerHTML='