// Global variable to determine if we should show SF [ServiceFinder] teasers or not
showSFTeasers=true;

// function to check for text 'a' in an article text. Returns true if text is found.
function dnseCheckArticleBodyText(a) {
	if((document.getElementById("article-content") != null) && showSFTeasers) { // only check if showSFTeasers is true (otherwise we have already checked)
	    var txt = document.getElementById("contentBody").innerHTML;
		var hit = false;
		var c = 0;
		while(!hit && c < a.length) {
			regx = new RegExp(a[c], "i");
			hit = regx.test(txt);
			c++;
		}
		if (hit) {
  			showSFTeasers=false; // set to false to avoid checking or other words in another teaser
		}
		return hit;
	}
}
// function to hide element/object
function dnseHideHTMLElement(obj) {
  obj.style.display = "none";
}
