//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 = "A74E74C5-2916-E711-812A-1289A8FDD3DA";
    if (kbarticleGUID) {
		debugger;
		var url = Xrm.Page.context.getClientUrl();
		url += "/main.aspx?etn=vhacrm_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);
    }
}
