//RWH - 120816 - Used to pop Suicide Prevention Article Record from ribbon button. 
//AKC - 021517 - Updated to switch to popping open custom entity for Article for the workaround on ribbon missing.

function Popkbarticle() {
    //getArticle GUID
    var kbarticleGUID = "965A71A7-87F3-E611-9428-0050568D1C17";
    if (kbarticleGUID) {
		debugger;
		var url = Xrm.Page.context.getClientUrl();
		url += "/main.aspx?etn=hac_article&pagetype=entityrecord&id=";
		url += kbarticleGUID;
		url += "&navbar=off";
		//url += encodeURIComponent(extraqs);
		var features = "width=1000px,height=700px,location=no,menubar=no,status=no,toolbar=no";
		// Open the window
		window.open(url, "_blank", features, false);
    }
}
